brctlsampleappsoftkeysobserver.h
来自「S60上实现嵌入式浏览器,可以在应用程序中嵌入浏览器,实现IE功能」· C头文件 代码 · 共 78 行
H
78 行
/*
* ==============================================================================
* Name : BrCtlSampleAppSoftkeysObserver.h
* Part of : Browser Engine
* Interface : Browser Control API
* Description : Handle soft key events
* Version :
*
* Copyright (c) 2005-2006 Nokia Corporation.
* This material, including documentation and any related
* computer programs, is protected by copyright controlled by
* Nokia Corporation.
* ==============================================================================
*/
#ifndef BRCTLSAMPLEAPPSOFTKEYSOBSERVER_H
#define BRCTLSAMPLEAPPSOFTKEYSOBSERVER_H
// INCLUDES
#include <BrCtlSoftkeysObserver.h>
#include <BrCtlInterface.h>
// FORWARD DECLARATIONS
class CBrCtlSampleAppContainer;
// CLASS DECLARATION
/**
* CBrCtlSampleAppSoftkeysObserver class.
* This class inherits from the MBrCtlSoftkeysObserver interface that handles requests
* from the Browser Control to change the softkeys.
*/
class CBrCtlSampleAppSoftkeysObserver : public CBase, public MBrCtlSoftkeysObserver
{
public: // Constructors and destructor
/**
* Two-phased constructor.
*/
static CBrCtlSampleAppSoftkeysObserver* NewL(CBrCtlSampleAppContainer* aContainer);
/**
* Destructor.
*/
~CBrCtlSampleAppSoftkeysObserver();
/**
* Browser Control requests to update a softkey
* @since 2.8
* @param aKeySoftkey Update the left softkey or the right softkey
* @param aLabel The label associated with the softkey update
* @param aCommandId The command to use if the softkey is selected by the user
* @param aBrCtlSoftkeyChangeReason The reason for the softkey change
* @return void
*/
void UpdateSoftkeyL(TBrCtlKeySoftkey /*aKeySoftkey*/,
const TDesC& /*aLabel*/,
TUint32 /*aCommandId*/,
TBrCtlSoftkeyChangeReason /*aBrCtlSoftkeyChangeReason*/) ;
private:
/**
* By default Symbian 2nd phase constructor is private.
*/
void ConstructL(CBrCtlSampleAppContainer* aContainer);
private: // data
// Pointer to the container class associated with this observer
CBrCtlSampleAppContainer* iContainer;
};
#endif // BRCTLSAMPLEAPPSOFTKEYSOBSERVER_H
// End of File
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?