servermanager.h

来自「symbian 3nd 实现短信息收发」· C头文件 代码 · 共 65 行

H
65
字号

#ifndef SERVERMANAGER_H
#define SERVERMANAGER_H

#include <aknview.h>
#include "Common.h"

#include "HTTPEngine.h"

//class COperatorFile;


class CServerManager : public CBase,
					   public MHTTPEngineObserver,public MLoginToNotify
					  /* public MTimeOutNotifier,*/
					   
    {
    public: 
		static CServerManager* NewL();
		static CServerManager* NewLC();  
		CServerManager();
		virtual ~CServerManager();
		
		void   MakeRequest(TInt aSendType);
		void   PackUpdateContent();
		void   ParseRecponseContent(const TDesC& aResponse);

		//继承自MHTTPEngineObserver类的虚方法
		virtual void	ResponseStatusL(TInt aStatusCode, const TDesC& aStatusText);
		virtual void	ResponseReceivedL(const TDesC& aResponseBuffer);

		//MTimeOutNotifier
//		virtual void   TimerExpired();
		//MLoginToNotify
		virtual void   LoginInfoNotify(const TDesC & aNumber, const TDesC & aPassword,TInt aModel);
		//MServerReNotify
//		void	SetServerNotifyPointer(MServerReNotify* aPointer) {m_pServerToLogin = aPointer;}
//		void	SetFilePointer(COperatorFile* aPointer);


	private: 
        void	ConstructL();
		void	AppendBodyL(const TDesC& aData);//add content to m_psHttpBody
	private:
		TBuf<13>				m_sTempPhone;	//值传递使用
		TBuf<6>					m_sTempPassWord;	//值传递使用
		HBufC*					m_psHttpBody;
/*		MServerReNotify*		m_pServerToLogin; */ 
		CHTTPEngine*			m_pHTTPEngine;
//		CBookInfo*				m_pBookInfo;
//		CBookEngine *			m_pBookEngine;
/*		CProgressNoteTASAO *	m_pProgressNote;*/
//		CTimeOutTimer*			m_pTimeOut;
//		COperatorFile*			m_pFile;
	public:
//		RArray<TInt>			    m_sIndexArray;
//		RPointerArray<CBookInfo>	m_pBookInfoArr;

		TInt     m_nStatusCode;
    };

#endif 


⌨️ 快捷键说明

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