-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhistory.h
57 lines (40 loc) · 972 Bytes
/
history.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
55
56
57
#ifndef HISTORY_H
#define HISTORY_H
#include <QString>
#include "../Lib/encryption.h"
enum HistoryOverviewType {
historyAsText = 0,
historyAsHTML = 1,
historyTopLinesAsHTML
};
class History
{
public:
QString idName ;
QString HistoryText ;
bool dirty ;
private:
QString getOverviewResult ;
QString cachedPath ;
private:
bool createNew(QString idname) ;
public:
History();
~History() ;
private:
// Unused copy construct
History(History& other) ;
public:
bool save(QString path = QString("")) ;
bool load(QString path, QString idname) ;
bool isdirty() ;
bool isEmpty() ;
History * getThis() ;
int find(QString text, int startline=0) ;
const QString& getHistory() ;
bool addEntry(QString Entry) ;
bool updateHistory(QString newhistory) ;
QString getOverview(enum HistoryOverviewType overviewtype) ;
History &operator=(const History &rhs);
};
#endif // HISTORY_H