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

📄 markablelistcontainer.h

📁 Symbian 第二版平台
💻 H
字号:
#ifndef MARKABLELISTCONTAINER_H
#define MARKABLELISTCONTAINER_H

// INCLUDES

// System includes
#include <badesca.h> // CDesCArray
#include <coecntrl.h> // CCoeControl
#include <eiklbo.h> // MEikListBoxObserver

// FORWARD DECLARATIONS
class CAknColumnListBox;

// CLASS DECLARATION

/**
*
* @class    CMarkableListContainer MarkableListContainer.h 
* @brief    This is the container class for a list example based on the
* standard Symbian OS architecture.  
*
* Copyright (c) EMCC Software Ltd 2003
* @version    1.0
* 
*/
class CMarkableListContainer : public CCoeControl, MEikListBoxObserver
{
public: // Constructors and destructor

    static CMarkableListContainer* NewL(const TRect& aRect);
    static CMarkableListContainer* NewLC(const TRect& aRect);
    ~CMarkableListContainer();

public: // members
    void PlaySelectedGame();
    void DeleteSelectedL();
    void HandleMarkCommandL(TInt aCommand);

private: // members
    void SetupListItemsL();
    void LoadSavedGamesL(CDesCArray& aSavedGamesArray);
    void CreateListL();
    void SetupListIconsL();
    void SetupScrollBarsL();

private: // constructor

    void ConstructL(const TRect& aRect);

private: // from MEikListBoxObserver
    void HandleListBoxEventL(CEikListBox* aListBox, TListBoxEvent aListBoxEvent);

private: // from CoeControl

    void SizeChanged();
    TInt CountComponentControls() const;
    CCoeControl* ComponentControl(TInt aIndex) const;
    void Draw(const TRect& aRect) const;
    TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);

private: //data

    CAknColumnListBox* iSavedGamesListBox; // the saved games list
};

#endif    // #ifndef MARKABLELISTCONTAINER_H

// End of File

⌨️ 快捷键说明

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