Proper error handling for reading databases.

This commit is contained in:
Felix Geyer 2012-01-06 20:03:13 +01:00
parent fea148803c
commit 007a901dba
9 changed files with 62 additions and 48 deletions

View file

@ -33,7 +33,7 @@ public:
KeePass2Reader();
Database* readDatabase(QIODevice* device, const CompositeKey& key);
Database* readDatabase(const QString& filename, const CompositeKey& key);
bool error();
bool hasError();
QString errorString();
void setSaveXml(bool save);
QByteArray xmlData();