📄 s60v22hello.h
字号:
/*
============================================================================
Name : s60v22hello.h
Author :
Version :
Copyright : Your copyright notice
Description : Application header file
============================================================================
Note! Normally you would have a separate file for each of these classes, but
here, for the sake of simplicity, they are all put in the same file. Having
the classes defined in separate files makes the source code easier to maintain.
*/
#ifndef __S60V22HELLO_H__
#define __S60V22HELLO_H__
// INCLUDES
// System includes, found under %EPOCROOT%\epoc32\include
#include <eikapp.h> // CEikApplication
#include <eikdoc.h> // CEikDocument
#include <coecntrl.h> // CCoeControl
#include <uikon.hrh> // Command codes
#include <eikenv.h> // CEikonEnv
#include <eiklabel.h> // CEikLabel
#include <aknappui.h> // CAknAppUi
#include <aknnotewrappers.h> // CAknInformationNote
// FORWARD DECLARATIONS
class Cs60v22hello;
class Cs60v22helloContainer;
// CLASS DEFINITIONS
//----------------------------------------------------------------------------
// Cs60v22helloApplication
//----------------------------------------------------------------------------
class Cs60v22helloApplication : public CEikApplication
{
private: // From CEikApplication
CApaDocument* CreateDocumentL();
private: // From CApaApplication (via CEikApplication)
TUid AppDllUid() const;
};
//----------------------------------------------------------------------------
// Cs60v22helloDocument (Model)
//----------------------------------------------------------------------------
class Cs60v22helloDocument : public CEikDocument
{
public: // Constructor
Cs60v22helloDocument(CEikApplication& aApp);
private: // From CEikDocument
CEikAppUi* CreateAppUiL();
};
//----------------------------------------------------------------------------
// Cs60v22helloAppUi (Controller)
//----------------------------------------------------------------------------
class Cs60v22helloAppUi : public CAknAppUi
{
public: // Constructors and destructor
void ConstructL(void);
~Cs60v22helloAppUi();
private: // From CEikAppUi
void HandleCommandL(TInt aCommand);
private: // Data
Cs60v22helloContainer* iAppContainer;
};
//----------------------------------------------------------------------------
// Cs60v22helloContainer (View)
//----------------------------------------------------------------------------
class Cs60v22helloContainer : public CCoeControl, MCoeControlObserver
{
public: // Constructors and destructor
void ConstructL(const TRect& aRect);
~Cs60v22helloContainer();
public: // New functions
public: // From CCoeControl
void SizeChanged();
TInt CountComponentControls() const;
CCoeControl* ComponentControl(TInt aIndex) const;
void Draw(const TRect& aRect) const;
public: // From MCoeControlObserver
void HandleControlEventL(CCoeControl* aControl,TCoeEvent aEventType);
private: // Data
CEikLabel* iLabel; // example label
CEikLabel* iToDoLabel; // example label
};
#endif // __S60V22HELLO_H__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -