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

📄 dynamicsettinglistappview.h

📁 Symbian 中动态生成SettingList
💻 H
字号:
/*
* ============================================================================
*  Name     : CDynamicSettingListAppView from DynamicSettingListAppView.cpp
*  Part of  : Dynamic Setting List
*  Created  : 09/21/2005 by Forum Nokia
*  Version  : 1.0
*  Copyright: Nokia Corporation
* ============================================================================
*/

#ifndef __DYNAMICSETTINGLIST_APPVIEW_H__
#define __DYNAMICSETTINGLIST_APPVIEW_H__

// INCLUDE FILES
#include "dynamicsettinglist.hrh"
#include <coecntrl.h>
#include <aknsettingitemlist.h> 

// CLASS DECLARATION

/**
* A view class for a dynamic setting list.
*/
class CDynamicSettingListAppView : public CCoeControl
    {
public: // Constructor and destructor
	
    /**
    * Symbian OS default constructor.
    */      
	void ConstructL(const TRect& aRect);
	
	/**
	* Constructor
	*/
	CDynamicSettingListAppView();
	
	/**
	* Destructor
	*/
     ~CDynamicSettingListAppView();
          
private: // Functions from base classes

	/**
    * From CCoeControl,Draw.
    */
    void Draw(const TRect& aRect) const;

	/**
    * From CoeControl,CountComponentControls.
    */        
    TInt CountComponentControls() const;

	/**
    * From CCoeControl,ComponentControl.
    */
    CCoeControl* ComponentControl(TInt aIndex) const;

	/**
    * From CCoeControl,OfferKeyEventL.
    */
	TKeyResponse OfferKeyEventL(	const TKeyEvent& aKeyEvent, TEventCode aType );
	

private: // New Functions

	/**
	* Loads the setting list dynamically.
	*/	
	void LoadListL();

	/**
	* Stores the settings of the setting list.
	*/	
    void StoreSettingsL();


private: // Data members

	CAknSettingItemList* iItemList;
	
	TBuf<KMaxTextLength>		iText;
	TBuf<KMaxPasswordLength>	iPassword;
	TInt						iNumber;
	TInt						iVolume;
	TInt						iSlider;
	TTime						iDate;
	TTimeIntervalSeconds		iTime;
	TInetAddr					iIp;
	TInt						iEnumText;
	TBool						iBinary;
	
    };


#endif // __DYNAMICSETTINGLIST_APPVIEW_H__

// End of file

⌨️ 快捷键说明

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