⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cleanup.h

📁 Symbian OS C++ 手机应用开发(第一卷)部分事例代码
💻 H
字号:
// cleanup.h
//
// Copyright (c) 2004 Symbian Software Ltd.  All rights reserved.
//

#ifndef __CLEANUP_H
#define __CLEANUP_H

#include <coecntrl.h>
#include <coeccntx.h>
#include <coemain.h>

#include <aknappui.h>
#include <aknapp.h>
#include <akndoc.h>
#include <eikon.hrh>

#include <cleanup.rsg>
#include "cleanup.hrh"

const TUid KUidExample = { 0x101f74ac };

// cleanup demo classes

class CX : public CBase
	{
public:
	void UseL();
public:
	TInt iInt;
	};

class CY : public CBase
	{
public:
	CY();
	~CY();
public:
	CX* iX;
	};

class CZ : public CBase
	{
public:
	static CZ* NewL();
	static CZ* NewLC();
	void ConstructL();
	~CZ();
public:
	CX* iX;
	};

// standard EIKON application classes

class CExampleDocument; // forward declaration

class CExampleAppView : public CCoeControl, public MCoeControlBrushContext
    {
public:
	~CExampleAppView();
    void ConstructL(const TRect& aRect);
private: // from CCoeControl
	void Draw(const TRect&) const;
    };

class CExampleAppUi : public CAknAppUi
    {
public:
    void ConstructL();
	~CExampleAppUi();
private: // from CEikAppUi
	void HandleCommandL(TInt aCommand);
private:
    CExampleAppView* iAppView;
	// cleanup members
	CX* iObject1;
	CX* iObject2;
	CZ* iObject6;
    };

class CExampleDocument : public CAknDocument
	{
public:
	// construct/destruct
	CExampleDocument(CAknApplication& aApp);
private: // from CEikDocument
	CEikAppUi* CreateAppUiL();
	};

class CExampleApplication : public CAknApplication
	{
private: // from CApaApplication
	CApaDocument* CreateDocumentL();
	TUid AppDllUid() const;
	};

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -