📄 httpmanager.h
字号:
#ifndef _HTTPMANAGER_H_
#define _HTTPMANAGER_H_
#include <e32base.h>
#include "HttpEngine.h"
//#include "BookEngine.h"
#include <s32strm.h>
#include <badesca.h >
#include "Mem_free.h"
#include "PBInfo.h"
#include <AknWaitDialog.h>
class CHttpManager : public CBase, MHTTPEngineObserver
{
public:
static CHttpManager* NewL( );
static CHttpManager* NewLC( );
~CHttpManager( );
void UpLoad( );//全部上传
void UpLoad( const TInt aIndex );//单条上传
void DownLoad( );//下载
void Register( );//注册
void Login( );//登录
void ResponseStatusL(TInt aStatusCode, const TDesC& aStatusText);
void ResponseReceivedL(const TDesC& aResponseBuffer);//接收服务器结果
void SetReisterPtr( MResultShow* aPtr );
void SetLoginPtr( MResultShow* aPtr );
void SetBookPtr( MResultShow* aPtr );
void SetName( const TDesC& aName );
void SetPassWord( const TDesC& aPsw );
void StartWaitDialogL();
private:
CHttpManager( );
void ConstructL( );
void DownLoadParse( );//下载解析
TInt ResuiltParse( );//结果解析
void AddressPakge( );//地址打包
CDesC16ArrayFlat* PakgeXML( );//把XML格式符放入数组
void BodyPakge( );//全部打包
void BodyPakge( const TInt aIndex );//单条打包
CHTTPEngine* m_pHttpEngine;
HBufC* m_pStatus;
HBufC* m_pAddress;
HBufC* m_pContent;
HBufC8* m_pConutf8;
HBufC* m_pName;
HBufC* m_pPassWord;
MResultShow* m_pRegister;
MResultShow* m_pLogin;
MResultShow* m_pBook;
CAknWaitDialog* dlg;
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -