Add Database::verifyKey().

And make Database::hasKey() const.
This commit is contained in:
Felix Geyer
2012-10-12 12:10:41 +02:00
parent b8b4d35763
commit 7286b1847d
2 changed files with 10 additions and 2 deletions

View File

@@ -86,7 +86,8 @@ public:
* Sets the database key and generates a random transform seed.
*/
void setKey(const CompositeKey& key);
bool hasKey();
bool hasKey() const;
bool verifyKey(const CompositeKey& key) const;
void recycleEntry(Entry* entry);
void recycleGroup(Group* group);
void setEmitModified(bool value);