mysettinglist.h
来自「基于Symbian OS的手机开发与应用实践第11章代码。主要讲编辑框的使用。」· C头文件 代码 · 共 82 行
H
82 行
/*
* ============================================================================
* Name : CMySettingList from MySettingList.h
* Part of : SettingList
* Created : 16.03.2006 by ToBeReplacedByAuthor
* Description:
* Declares container control for application.
* Version :
* Copyright: ToBeReplacedByCopyright
* ============================================================================
*/
#ifndef MYSETTINGLIST_H
#define MYSETTINGLIST_H
// INCLUDES
#include <aknsettingitemlist.h>
#include "MySettings.h"
// FORWARD DECLARATIONS
//class CMySettings;
// CLASS DECLARATION
/**
* CMySettingList, The setting view
*
*/
class CMySettingList : public CAknSettingItemList
{
public: // interface
/**
* Observer interface
*/
class MObserver
{
public:
/**
* Called when setting is changed
*/
virtual void OnChangedL() = 0;
};
public: // Constructor and destructor
// Constructor
CMySettingList(CMySettings& aSettings, MObserver& aObserver);
// Destructor
~CMySettingList();
public: // New functions
void EditL();
public: // Functions from CAknSettingItemList
/**
* EditItemL
* This method launches the setting page for the current item
* by calling EditItemL on it. Because the items' EditItemL method is
* modal, we can save new setting after the calling of this method's
* return.
*/
void EditItemL(TInt aIndex, TBool aCalledFromMenu);
protected: // Functions from CAknSettingItemList
/**
* CreateSettingItemL
* This is a FRAMEWORK method, it to create a setting
* item based upon the user id aSettingId. The client code decides
* what type to contruct. new (ELeave) must then be used and the
* resulting pointer returned. Ownership is thereafter base class's
* responsiblity.
*/
CAknSettingItem * CreateSettingItemL(TInt aSettingId);
private: // data
// The settings
CMySettings& iSettings;
MObserver& iObserver;
};
#endif // MYSETTINGLIST_H
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?