noteinfomanage.h

来自「symbian 2rd 备忘录」· C头文件 代码 · 共 30 行

H
30
字号
#ifndef _NOTEINFOMANAGE_H_
#define _NOTEINFOMANAGE_H_

#include <e32base.h>
#include <s32strm.h>
#include "common.h"
#include "NoteInfo.h"

class CNoteInfoManage:public CBase
{
public:
	static CNoteInfoManage* NewL();
	static CNoteInfoManage* NewLC();
	~CNoteInfoManage();
	void Add(const TDesC& aDate,const TDesC& aTitle,const TDesC& aContent);
	void Delete(TInt aIndex);
	void Modify(TInt aIndex, const TDesC& aTitle, const TDesC& aContent);
	TInt GetCount();
	void GetNoteInfo(TInt aIndex, TDes& aDate,TDes& aTitle,TDes& aContent);
	void SaveNoteInfo();
private:
	CNoteInfoManage();
	void ConstructL();
	void ReadFile();
	void WriteFile();

	RPointerArray<CNoteInfo> m_NoteInfoArray;
};

#endif

⌨️ 快捷键说明

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