📄 logexampleview.h
字号:
/*
* ============================================================================
* Name : CLogExampleView from LogExampleView.h
* Part of : LogExample
* Created : 26.05.2005 by Forum Nokia
* Description:
* Declares view for application.
* Version : 1.0
* Copyright: Nokia Corporation
* ============================================================================
*/
#ifndef __LOGEXAMPLEVIEW_H__
#define __LOGEXAMPLEVIEW_H__
// INCLUDE FILES
#include <aknview.h>
// CONSTANTS
// UID of view
const TUid KViewId = {1};
// FORWARD DECLARATIONS
class CLogExampleContainer;
class CLogExEngine;
class CLogExampleAppUi;
class MEventsObserver;
// CLASS DECLARATION
/**
* CLogExampleView view class.
*
*/
class CLogExampleView : public CAknView
{
public: // Constructors and destructor
/**
* Symbian default constructor.
*/
void ConstructL();
/**
* Destructor.
*/
~CLogExampleView();
public: // New functions
/**
* Gets observer
*/
MEventsObserver* GetObserver();
/**
* Refreshes the events.
*/
void RefreshL();
public: // Functions from base classes
/**
* From CAknView returns Uid of view
* @return TUid uid of the view
*/
TUid Id() const;
/**
* From MEikMenuObserver delegate commands from the menu
* @param aCommand a command emitted by the menu
*/
void HandleCommandL(TInt aCommand);
/**
* From CAknView reaction if size change
*/
void HandleClientRectChange();
/**
* From MEikMenuObserver
*/
void DynInitMenuPaneL(TInt aResourceId, CEikMenuPane* aMenuPane);
private:
/**
* From CAknView activates the view
* @param aPrevViewId
* @param aCustomMessageId
* @param aCustomMessage
*/
void DoActivateL(const TVwsViewId& aPrevViewId,TUid aCustomMessageId,
const TDesC8& aCustomMessage);
/**
* From CAknView deactivates the view (free resources)
*/
void DoDeactivate();
/**
* Returns appUI:s model
* @return appUI:s model
*/
CLogExEngine* Model();
/**
* Makes the container visible or invisible. Changes the CBA to match the containers visibility.
* @param aVisible defines whether the container should be visible or not.
*/
void MakeContainerVisible(TBool& aVisible);
private: // Data members
CLogExampleContainer* iContainer;
TInt iCurrentEvents;
};
#endif
// End of File
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -