Add repair functionality to strip invalid XML chars.

Refs #392
This commit is contained in:
Felix Geyer
2016-01-28 23:07:04 +01:00
parent 93585aded7
commit eb56bd8973
13 changed files with 393 additions and 3 deletions

View File

@@ -31,12 +31,13 @@ class KeePass2Reader
public:
KeePass2Reader();
Database* readDatabase(QIODevice* device, const CompositeKey& key);
Database* readDatabase(QIODevice* device, const CompositeKey& key, bool keepDatabase = false);
Database* readDatabase(const QString& filename, const CompositeKey& key);
bool hasError();
QString errorString();
void setSaveXml(bool save);
QByteArray xmlData();
QByteArray streamKey();
private:
void raiseError(const QString& errorMessage);