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

📄 httpclient.h

📁 This application is explain how to Test http connection in symbian c++
💻 H
字号:
/***************************************************************************** 
COPYRIGHT All rights reserved Sony Ericsson Mobile Communications AB 2006. 
The software is the copyrighted work of Sony Ericsson Mobile Communications AB. 
The use of the software is subject to the terms of use or of the end-user license 
agreement which accompanies or is included with the software. The software is 
provided "as is" and Sony Ericsson specifically disclaim any warranty or 
condition whatsoever regarding merchantability or fitness for a specific 
purpose, title or non-infringement. No warranty of any kind is made in 
relation to the condition, suitability, availability, accuracy, reliability, 
merchantability and/or non-infringement of the software provided herein. 
*****************************************************************************/

// HttpClient.h

#ifndef __HTTPCLIENT_H__
#define __HTTPCLIENT_H__


#include <http\rhttpsession.h>


class CHttpEventHandler;
class MResultObs;


class CHttpClient : public CBase
{
public:
  virtual ~CHttpClient();
  static CHttpClient* NewL(MResultObs& aResObs);

  void StartClientL();

protected:
  CHttpClient(MResultObs& aResObs);

private:
  static CHttpClient* NewLC(MResultObs& aResObs);
  void ConstructL();

  void InvokeHttpMethodL(const TDesC8& aUri, RStringF aMethod);
  void SetHeaderL(RHTTPHeaders aHeaders, TInt aHdrField, const TDesC8& aHdrValue);

private:
  RHTTPSession iSession;
  CHttpEventHandler* iTransObs;

  MResultObs& iResObs;

};


#endif

⌨️ 快捷键说明

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