📄 simpleex.h
字号:
// SimpleEx.h
//
// Copyright (c) Symbian Software Ltd 1999 - 2007. All rights reserved.
//
#ifndef __SIMP_H
#define __SIMP_H
/*==========================================
S60 SimpleEx Header File
==========================================*/
#include <eikenv.h>
#include <eikon.hrh>
#include "SimpleEx.hrh"
#include <akndoc.h>
#include <aknapp.h>
#include <aknappui.h>
#include "SimpleExUid.h"
#include "weatherinfo.h"
const TUid KUidSimpleExApp = {SIMPLEEXUID};
// The Application Class
class CSimpleExApplication : public CAknApplication
{
private:
CApaDocument* CreateDocumentL();
TUid AppDllUid() const;
};
// 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);
private:
void Draw(const TRect&) const;
};
// The UI Class
class CSimpleExAppUi : public CAknAppUi, public MWeatherObserver
{
public:
void ConstructL();
~CSimpleExAppUi();
// from MWeatherObserver
virtual void TemperatureReport(TDesC& aCity, TDesC& aTemperature);
virtual void TemperatureError(TDesC& aErrorStr,TInt aErrCode);
private:
void HandleCommandL(TInt aCommand);
CSimpleExAppView* iAppView;
CWeatherInfo *iWeather;
};
// 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 + -