shapesmodel.h

来自「s60源码」· C头文件 代码 · 共 42 行

H
42
字号
#ifndef SHAPESMODEL_H
#define SHAPESMODEL_H

// INCLUDES
#include <e32base.h>	// CBase

// CLASS DECLARATION

/**
 *
 * @class	CShapesModel ShapesModel.h 
 * @brief	This is a class for holding the value data for the Shapes application
 * 
 * Copyright (c) EMCC Software Ltd 2003
 * @version	1.0
 *  
 */
class CShapesModel : public CBase
	{
public:	// Construction and destruction
	static CShapesModel* NewL();
	static CShapesModel* NewLC();
	~CShapesModel();

public:	// Member functions.
	const TInt NumElements() const;
	const TInt ElementAt(TInt aIndex);
	void SetElement(TInt aValue, TInt aIndex);
	const TInt GetMaxValue() const;
	const TInt SumOfElements() const;

private:	// Construction
	CShapesModel();
	void ConstructL();

private:	// Data
	RArray<TInt> iData;
};

#endif	// SHAPESMODEL_H

// End of File

⌨️ 快捷键说明

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