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

📄 mysettinglist.h

📁 《基于Symbian OS的手机开发与应用实践》这本书的配套源码。
💻 H
字号:
/*
* ============================================================================
*  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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -