📄 cmmslmodel.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 + -