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

📄 qiqiweatherappui.h

📁 手机天气预报系统
💻 H
字号:
/*
 ============================================================================
 Name		: QiQiWeatherAppUi.h
 Author	  : Richie Chyi
 Copyright   : Copyright?2008
 Description : Declares UI class for application.
 ============================================================================
 */

#ifndef __QIQIWEATHERAPPUI_h__
#define __QIQIWEATHERAPPUI_h__

// INCLUDES
#include <aknappui.h>

#include "WeatherDetail.h"

// FORWARD DECLARATIONS
class CQiQiWeatherAppView;
class CAknNavigationDecorator;

// CONSTANT
const TInt KTabCount = 4;

// CLASS DECLARATION

/**
 * CQiQiWeatherAppUi application UI class.
 * Interacts with the user through the UI and request message processing
 * from the handler class
 */
class CQiQiWeatherAppUi : public CAknAppUi
	{
public:
	// Constructors and destructor

	/**
	 * ConstructL.
	 * 2nd phase constructor.
	 */
	void ConstructL();

	/**
	 * CQiQiWeatherAppUi.
	 * C++ default constructor. This needs to be public due to
	 * the way the framework constructs the AppUi
	 */
	CQiQiWeatherAppUi();

	/**
	 * ~CQiQiWeatherAppUi.
	 * Virtual Destructor.
	 */
	virtual ~CQiQiWeatherAppUi();
	
	/**
	 * 获取天气详情数组引用,用于在View中更新内容
	 */
	inline RArray<TWeatherDetail>& WeatherDetails();
	
	/**
	 * 更新Tab文本
	 */
	void UpdateTabText();
	
	/**
	 * 更新天气
	 */
	void UpdataWeather();
	
	/*
	 * 隐藏界面
	 */
	void SetHidden(TBool aHide);
	
public:
	/**
	 * 用于定时器回调
	 */
	static TInt ShowWeatherInfoL(TAny* aArgument = NULL);

private:
	// Functions from base classes

	/**
	 * From CEikAppUi, HandleCommandL.
	 * Takes care of command handling.
	 * @param aCommand Command to be handled.
	 */
	void HandleCommandL(TInt aCommand);
	
	TKeyResponse HandleKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType);

	/**
	 *  HandleStatusPaneSizeChange.
	 *  Called by the framework when the application status pane
	 *  size is changed.
	 */
	void HandleStatusPaneSizeChange();

	/**
	 *  From CCoeAppUi, HelpContextL.
	 *  Provides help context for the application.
	 *  size is changed.
	 */
	CArrayFix<TCoeHelpContext>* HelpContextL() const;

private:
	// Data
	CQiQiWeatherAppView* iAppView;
	CAknNavigationDecorator* iNaviDecorator;
	TInt iCurrentTabIndex;
	
	CPeriodic* iPeriodic;
	
	// 天气详情数组
	RArray<TWeatherDetail> iWeatherDetails;
	};


RArray<TWeatherDetail>& CQiQiWeatherAppUi::WeatherDetails()
	{
	return iWeatherDetails;
	}

#endif // __QIQIWEATHERAPPUI_h__
// End of File

⌨️ 快捷键说明

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