📄 slidlg.h
字号:
#ifndef __SLIDLG_H
#define __SLIDLG_H
#include <akndoc.h>
#include <aknapp.h>
#include <aknappui.h>
#include <coecntrl.h>
/*!
@class CSLIDlgDocument
@discussion An instance of class CSLIDlgDocument is the Document part of the AVKON
application framework for the HelloWorldPlus example application
*/
class CSLIDlgDocument : public CAknDocument
{
public:
/*!
@function NewL
@discussion Construct a CSLIDlgDocument for the AVKON application aApp
using two phase construction, and return a pointer to the created object
@param aApp application creating this document
@result a pointer to the created instance of CSLIDlgDocument
*/
static CSLIDlgDocument* NewL(CEikApplication& aApp);
/*!
@function NewLC
@discussion Construct a CSLIDlgDocument for the AVKON application aApp
using two phase construction, and return a pointer to the created object
@param aApp application creating this document
@result a pointer to the created instance of CSLIDlgDocument
*/
static CSLIDlgDocument* NewLC(CEikApplication& aApp);
/*!
@function ~CSLIDlgDocument
@discussion Destroy the object
*/
~CSLIDlgDocument();
/*!
@function CreateAppUiL
@discussion Create a CHelloWorldPlusAppUi object and return a pointer to it
@result a pointer to the created instance of the AppUi created
*/
CEikAppUi* CreateAppUiL();
private:
/*!
@function ConstructL
@discussion Perform the second phase construction of a CSLIDlgDocument object
*/
void ConstructL();
/*!
@function CSLIDlgDocument
@discussion Perform the first phase of two phase construction
@param aApp application creating this document
*/
CSLIDlgDocument(CEikApplication& aApp);
};
/*!
@class CSLIDlgApplication
@discussion An instance of CSLIDlgApplication is the application part of the AVKON
application framework for the HelloWorldPlus example application
*/
class CSLIDlgApplication : public CAknApplication
{
public: // from CApaApplication
/*!
@function AppDllUid
@discussion Return the application DLL UID value
@result the UID of this Application/Dll
*/
TUid AppDllUid() const;
protected: // from CEikApplication
/*!
@function CreateDocumentL
@discussion Create a CApaDocument object and return a pointer to it
@result a pointer to the created document
*/
CApaDocument* CreateDocumentL();
};
/*!
@class CSLIDlgAppUi
@discussion An instance of class CSLIDlgAppUi is the UserInterface part of the AVKON
application framework for the HelloWorldPlus example application
*/
class CSLIDlgAppView;
class CSLIDlgAppUi : public CAknAppUi
{
public:
/*!
@function ConstructL
@discussion Perform the second phase construction of a CSLIDlgAppUi object
this needs to be public due to the way the framework constructs the AppUi
*/
void ConstructL();
/*!
@function CSLIDlgAppUi
@discussion Perform the first phase of two phase construction.
This needs to be public due to the way the framework constructs the AppUi
*/
CSLIDlgAppUi();
/*!
@function ~CSLIDlgAppUi
@discussion Destroy the object
*/
~CSLIDlgAppUi();
public: // from CAknAppUi
/*!
@function HandleCommandL
@discussion Handle user menu selections
@param aCommand the enumerated code for the option selected
*/
void HandleCommandL(TInt aCommand);
private:
/*! @var iAppView The application view */
CSLIDlgAppView* iAppView;
};
/*!
@class CSLIDlgAppView
@discussion An instance of the Application View object for the HelloWorldPlus
example application
*/
class CSLIDlgAppView : public CCoeControl
{
public:
/*!
@function NewL
@discussion Create a CSLIDlgAppView object, which will draw itself to aRect
@param aRect the rectangle this view will be drawn to
@result a pointer to the created instance of CSLIDlgAppView
*/
static CSLIDlgAppView* NewL(const TRect& aRect);
/*!
@function NewLC
@discussion Create a CSLIDlgAppView object, which will draw itself to aRect
@param aRect the rectangle this view will be drawn to
@result a pointer to the created instance of CSLIDlgAppView
*/
static CSLIDlgAppView* NewLC(const TRect& aRect);
/*!
@function ~CSLIDlgAppView
@discussion Destroy the object
*/
~CSLIDlgAppView();
public: // from CCoeControl
/*!
@function Draw
@discussion Draw this CSLIDlgAppView to the screen
@param aRect the rectangle of this view that needs updating
*/
void Draw(const TRect& aRect) const;
private:
/*!
@function ConstructL
@discussion Perform the second phase construction of a CSLIDlgAppView object
@param aRect the rectangle this view will be drawn to
*/
void ConstructL(const TRect& aRect);
/*!
@function CSLIDlgAppView
@discussion Perform the first phase of two phase construction
*/
CSLIDlgAppView();
};
#endif // __SLIDLG_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -