todolist.h

来自「symbian手机上记事本的程序」· C头文件 代码 · 共 39 行

H
39
字号
#ifndef TODOLIST_H_
#define TODOLIST_H_

class CToDoList : public CBase
	{
public:
    static CToDoList* NewLC(TInt aGranularity);
    static CToDoList* NewL(TInt aGranularity);
	~CToDoList();
	void Print() const;
	
public:
    TInt Count() const;
    void AddToDoL(CToDo* aToDo );
    void InsertL( TInt aIndex, CToDo* aToDo );
    void ModifyL(CToDo* aToDo , TInt aIndex );
    void RemoveToDo(TInt aIndex );
    TInt Find( TDesC& aTitle );
// 	TInt Find(TDesC& aTitle, TInt index);
    CArrayPtr<CToDo>* ToDoList();
    CToDo* At( TInt aIndex );
    CToDo* operator[](TInt index);
    const CToDo* operator[](TInt index) const;
	
public:
    void ExternalizeL( RWriteStream& aStream ) const;
    void InternalizeL( RReadStream& aStream );
    
protected:
    CToDoList(TInt aGranularity);
    void ConstructL();
		
private:
    CArrayPtrFlat<CToDo>* iArray;
	TInt iGranularity;
	};

#endif /*TODOLIST_H_*/

⌨️ 快捷键说明

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