orcoperhttp.h

来自「同样自己做的 还不错哦 Symbian的 上面没找到分类」· C头文件 代码 · 共 55 行

H
55
字号
/* Copyright (c) 2007, Nokia. All rights reserved */

#ifndef __ORCOPERHTTP_H__
#define __ORCOPERHTTP_H__

#include "common.h"
#include "HTTPEngine.h"
#include "timeouttimer.h"

/*! 
  @class CORCOperHttp
  
  @discussion An instance of this class is the Application View object
  for the FreeSMS example application
  */

class CORCOperHttp: public CBase, public MViewToHttpNotify , public MHTTPEngineObserver	,
					public MBookToHttpNotify, public MTimeOutNotifier		 
{
public:
//new info
    static CORCOperHttp* NewL();
    static CORCOperHttp* NewLC();
	void   SendUrl(const TDesC& aType, const TDesC& aName,const TDesC& aPsw);
	TInt   GetResponse();
	void   ParseResponse(const TDesC& aResponse);
	void   SetOperBookPointer(MHTTPToBook* aOperBook){m_pOperBook = aOperBook;}
	void   SetFunViewPointer(MHttpToFunViewNotify* aFunView){m_pFunView = aFunView;}
	void   SetLoginViewPointer(MHttpToLoginViewNotify* aLoginView){m_pLoginView = aLoginView;}
	void   ResponseStatusL(TInt aStatusCode, const TDesC& aStatusText);
	void   ResponseReceivedL(const TDesC& aResponseBuffer);
	void   DoSentBodyPost(const TDesC& aBody);
    ~CORCOperHttp();
//from timer
	virtual void TimerExpired();
// from CCoeControl
private:
	CORCOperHttp();
	void	ConstructL();
private:
	TInt		 m_iType;
	HBufC*		 m_psRturnText;
	TBuf<10> sType;
	TBuf<10>  sResult;
	CHTTPEngine* m_pHttpEngine;
	MHTTPToBook* m_pOperBook;
	MHttpToFunViewNotify*   m_pFunView;
	MHttpToLoginViewNotify* m_pLoginView;
	CTimeOutTimer * m_pTime;

};


#endif // __FREESMS_HELPView_H__

⌨️ 快捷键说明

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