shapelistmanager.h

来自「series60 应用程序开发的源代码 series60 应用程序开发的源代码」· C头文件 代码 · 共 50 行

H
50
字号
#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 + =
减小字号Ctrl + -
显示快捷键?