📄 simpleex.h
字号:
#ifndef __SIMP_H
#define __SIMP_H
/*==========================================
Series 60 SimpleEx Header File
==========================================*/
#include <eikenv.h>
#include <eikon.hrh>
#include "simpleEx.hrh"
#include <akndoc.h>
#include <aknapp.h>
#include <aknappui.h>
_LIT(KSimpleExText,"Simple Example AO");
class CSimpleExAppView;
class CCountdown : public CActive
{
public:
static CCountdown* NewL(CSimpleExAppView* aAppView);
CCountdown();
~CCountdown();
void ConstructL(CSimpleExAppView* aAppView);
void StartCountdown();
void Stop();
void RunL();
void DoCancel();
private:
TInt iCount;
RTimer iTimer;
TInt iInterval;
CSimpleExAppView* iAppView;
};
// The Application Class
class CSimpleExApplication : public CAknApplication
{
private:
CApaDocument* CreateDocumentL();
TUid AppDllUid() const;
};
// The UI Class
class CSimpleExAppUi : public CAknAppUi
{
public:
void ConstructL();
~CSimpleExAppUi();
private:
void HandleCommandL(TInt aCommand);
CSimpleExAppView* iAppView;
CCountdown *iCountdown;
};
// The Application View Class
class CSimpleExAppView : public CCoeControl
{
public:
static CSimpleExAppView* NewL(const TRect& aRect);
static CSimpleExAppView* CSimpleExAppView::NewLC(const TRect& aRect);
void ConstructL(const TRect& aRect);
void UpdateScreenText(const TDesC16& aText);
private:
TBuf<100> iScreenText;
void Draw(const TRect&) const;
};
// The Application Document Class
class CSimpleExDocument : public CAknDocument
{
public:
CSimpleExDocument(CEikApplication& aApp): CAknDocument(aApp) { }
private:
CEikAppUi* CreateAppUiL();
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -