📄 todolist.h
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -