-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtodo.h
54 lines (37 loc) · 855 Bytes
/
todo.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#ifndef TODO_H
#define TODO_H
#include <QString>
#include "../Lib/encryption.h"
enum TodoOverviewType {
todoAsText = 0,
todoAsHTML = 1
};
class Todo
{
public:
QString idName ;
QString todoText ;
bool dirty ;
private:
QString getOverviewResult ;
QString cachedPath ;
public:
Todo();
~Todo() ;
private:
// Unused copy construct
Todo(const Todo& other) ;
public:
bool save(QString path = QString("")) ;
bool load(QString path, QString idname) ;
bool createNew(QString idname) ;
bool isdirty() ;
bool isEmpty() ;
Todo * getThis() ;
int find(QString text, int startline=0) ;
const QString& getText() ;
bool setText(QString& newtext) ;
const QString& getOverview(enum TodoOverviewType overviewtype) ;
Todo &operator=(const Todo &rhs);
};
#endif // TODO_H