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

📄 weathershow.h

📁 手机天气预报系统
💻 H
字号:
/*
 ============================================================================
 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -