Added history limits enforcement

This commit is contained in:
jacek81
2012-05-04 22:45:34 +01:00
committed by Florian Geyer
parent 860a2131b3
commit 8c87a87da6
6 changed files with 63 additions and 1 deletions

View File

@@ -108,10 +108,14 @@ public:
void setNotes(const QString& notes);
void setExpires(const bool& value);
void setExpiryTime(const QDateTime& dateTime);
int getHistSize();
int getSize();
QList<Entry*> historyItems();
const QList<Entry*>& historyItems() const;
void addHistoryItem(Entry* entry);
void truncateHistory();
/**
* Call before and after set*() methods to create a history item
* if the entry has been changed.