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

📄 cmmslmodel.h

📁 The MMS List example demonstrates how to: List the MMS messages in the Inbox and sort them by sen
💻 H
字号:
/* Copyright (c) 2003, Nokia. All rights reserved */

#ifndef __CMMSLMODEL_H__
#define __CMMSLMODEL_H__

// INCLUDE FILES
#include <e32def.h>
#include <badesca.h>

// CONSTANTS
const TInt KGranularityOfArray = 4; // Granularity of the array

/**
* Application model class.
* This class is model of MMS List example program.
* This class uses a CDesCArray object.
*
*/
class CMmslModel : public CBase
    {
    public: // Constructors and destructor
        /**
        * NewL
        * Two-phased constructor.
        * @return A pointer to the created instance of CMmslModel
        */
        static CMmslModel* NewL();

        /**
        * ~CMmslModel
        * Destructor.
        * Destructor is always virtual.
        */
        virtual ~CMmslModel();

    public:

        /**
        * ItemArray
        * @return A pointer to the array
        */
        MDesCArray* ItemArray() const;

        /**
        * SortArray
        * Sort array.
        */
        void SortArray();

        /**
        * AddItemL
        * Add item into model (array).
        * @param aItem Item to be inserted to the model
        */
        void AddItemL( const TDesC& aItem );

        /**
        * Delete
        * Delete item from model (array).
        * @param aPos A index of item
        */
        void Delete( TInt aPos );

    private:
        /**
        * CMmslModel
        * C++ default constructor.
        */
        CMmslModel();

        /**
        * ConstructL
        * By default Symbian 2nd phase constructor is private.
        */
        void ConstructL();

    private: // Data
        /**
        * The model is based on CDesCArray.
        * Owned by this object.
        */
        CDesCArray* iArray;
    };

#endif	// __CMMSLMODEL_H__

// End of File

⌨️ 快捷键说明

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