📄 shapelistmanager.h
字号:
#ifndef __SHAPELISTMANAGER_H
#define __SHAPELISTMANAGER_H
//INCLUDES
//System Includes
#include <e32std.h>
#include <w32std.h>
//User Includes
#include "shape.h"
/**
*
* @class CShapesDrawerListViewContainer ShapeDrawerListViewContainer.h
* @brief This class is the engine that manages and persists user
* input. Used in the SHAPEDRAWER example application.
*
* Copyright (c) EMCC Software Ltd 2003
* @version 1.0
*/
class CShapeListManager : public CBase
{
public:
IMPORT_C static CShapeListManager* NewLC();
IMPORT_C static CShapeListManager* NewL();
IMPORT_C ~CShapeListManager();
IMPORT_C void Clear();
IMPORT_C void AddShapeL(NShapes::TShape* aShape); //takes ownership
IMPORT_C void RemoveShapeL(NShapes::TShape* aShape);
IMPORT_C NShapes::TShape* GetNextShape(); // no ownership xfer
IMPORT_C TStreamId StoreL(CStreamStore& aStore) const;
IMPORT_C void ExternalizeL(RWriteStream& aStream) const;
IMPORT_C void RestoreL(const CStreamStore& aStore, const TStreamId& aStreamId);
IMPORT_C void InternalizeL(RReadStream& aStream);
IMPORT_C TInt DataSize();
protected:
IMPORT_C CShapeListManager();
IMPORT_C void ConstructL();
private:
TInt iNextShapeIndex;
RPointerArray<NShapes::TShape> iShapeList;
};
#endif // __SHAPELISTMANAGER_H
//End of File
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -