📄 servermanager.h
字号:
/* Copyright (c) 2007, Nokia. All rights reserved */
#ifndef __SERVERMANAGER_H__
#define __SERVERMANAGER_H__
#include <aknview.h>
#include "Common.h"
#include "ASSISTANTAppUi.h"
#include "BookEngine.h"
#include "timeouttimer.h"
#include "HTTPEngine.h"
class CBookEngine;
class CProgressNoteTASAO;
/*!
@class CServerManager
@discussion An instance of this class is the Application View object
for the FreeSMS example application
*/
class CServerManager : public CBase,
public MLoginToNotify,
public MHTTPEngineObserver,
public MTimeOutNotifier
{
public:
//new info
static CServerManager* NewL(/*CHTTPEngine * aHttpPointer*/);
static CServerManager* NewLC();
~CServerManager();
void MakeRequest(TInt aSendType);
void ParseRecponseContent(const TDesC& aResponse);
void PackUpdateContent();
// void GetContactInfo(); //get select information从book引擎中读取名片信息
void LoginInfoNotify(const TDesC & aNumber, const TDesC & aPassword, TInt aModel);
//set M-class point to login
void SetServerReNotifyPointer(MServerReNotify* aPointer) {m_pServerToLogin = aPointer;}
//observer
virtual void ResponseStatusL(TInt aStatusCode, const TDesC& aStatusText);
virtual void ResponseReceivedL(const TDesC& aResponseBuffer);
//MTimeOutNotifier
virtual void TimerExpired();
private:
CServerManager();
void ConstructL();
//Add by tommy 2008-05-05
void AppendBodyL(const TDesC& aData);
private:
TBuf<13> m_sTempPhone; //值传递使用
TBuf<6> m_sTempPassWord; //值传递使用
HBufC* m_pHttpBody;
MServerReNotify* m_pServerToLogin;
CHTTPEngine* m_pHTTPEngine;
CBookInfo* m_pBookInfo;
CBookEngine * m_pBookEngine;
CProgressNoteTASAO * m_pProgressNote;
TRequestStatus iStatus;
CTimeOutTimer* m_pTimeOut;
public:
RPointerArray<CBookInfo> m_BookInfoArr;
};
#endif // __FREESMS_SERVERMANAGER_H__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -