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

📄 common.h

📁 symbian和旗下的HTTPENGINE的相关代码
💻 H
字号:
#ifndef __COMMON_H__
#define __COMMON_H__
class CBookInfo;
class BookEngine;
class Http;

//Free Memory
#define		MEMORY_FREE(a)	if(a){delete a; a=NULL;}
/*
class MCoverNotify
{
public:
	
	virtual void CoverNotify(TInt aState) = 0;
};

class MHelpNotify
{
public:
	
	virtual void HelpNotify(TInt aState) = 0;
};

class MInfoBookNotify
{
public:
	virtual void InfoBookNotify(CBookInfo* aBookInfo) = 0;
};

class MHTTPEngineObserver
{
public:
	virtual void ResponseStatusL(TInt aStatusCode, const TDesC& aStatusText) = 0;
	
	virtual void ResponseReceivedL(const TDesC& aResponseBuffer) = 0;
};

class MUserNotify
{
public:
	virtual void GetUserNameNotify(TDesC& aName) = 0; 
};

*/
enum	{ ERegister = 1, ELogin, EUpdate, EDownload};
enum	{ EMaxUrlLength = 128, EMaxNameLength = 3200};

class MLoginToNotify
{
public:
	virtual void LoginInfoNotify(const TDesC & aNumber, const TDesC & aPassword,TInt aModel) = 0;
};

class MServerReNotify
{
public:
	virtual void ServerReNotify(TInt aStatusCode, TInt aModel) = 0;
};

class MHTTPEngineObserver
{
public:
	virtual void ResponseStatusL(TInt aStatusCode, const TDesC& aStatusText) = 0;

	virtual void ResponseReceivedL(const TDesC& aResponseBuffer) = 0;
};

class MServerUpNotify    //Server to Main
{
public:
	virtual void ServerUpNotify(const RPointerArray<CBookInfo>& aBookArray) = 0;
};

//将值从Main函数传递到Server中
class MMainReNotify      //Main to Server
{
public:
	virtual void MainReNotify(const RPointerArray<CBookInfo>& aBookArray) = 0;
};

#endif //__COMMON_H__

⌨️ 快捷键说明

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