weathershow.h

来自「手机天气预报系统」· C头文件 代码 · 共 63 行

H
63
字号
/*
 ============================================================================
 Name		: WeatherShow.h
 Author	  : Richie Chyi
 Copyright   : Copyright?2008
 Description : 
 ============================================================================
 */

#ifndef WEATHERSHOW_H_
#define WEATHERSHOW_H_

#include <e32base.h>
#include <aknprogressdialog.h> // For MProgressDialogCallback
#include "HttpEngine.h"
#include "XmlHandler.h"
#include "WeatherDetail.h"

// CLASS DECLARATION
class CQiQiHTTPEngine;
class CAknWaitDialog;
class CXmlHandler;

class CWeatherShow : public CBase, public MHTTPEngineObserver,
				public MProgressDialogCallback, public MXmlParseObserver
	{
public:
	static CWeatherShow* NewL();
	static CWeatherShow* NewLC();
	~CWeatherShow();
	
protected:
	void ConstructL();
	CWeatherShow();
	
	void RemoveWaitDialogL();
	
public: // From MHTTPTransactionCallback
	void ResponseStatusL(TInt aStatusCode, const TDesC8& aSessionId);
	void ResponseBodyDataL(const TDesC& aBuffer);
	void ResponseReceivedL(); 
	
public: // From MProgressDialogCallback
	void DialogDismissedL(TInt aButtonId);
	
public: // From MXmlParseObserver
	void ParseCompleted();
	
public:
	void ShowWeatherL();
	
private:
	CQiQiHTTPEngine* iHttpEngine;
	
	CAknWaitDialog* iWaitDialog;
	
	HBufC* iXMLBuffer;
	RArray<TWeatherDetail>& iWeatherDetails;
	
	CXmlHandler* iXMLHandler;
	};
#endif /*WEATHERSHOW_H_*/

⌨️ 快捷键说明

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