Add ability to grab the raw xml string of kdbx databases.

This commit is contained in:
Felix Geyer 2011-07-06 20:21:40 +02:00
parent a104e859cf
commit ef8935431c
2 changed files with 29 additions and 0 deletions

View file

@ -31,10 +31,13 @@ class KeePass2Reader
Q_DECLARE_TR_FUNCTIONS(KeePass2Reader);
public:
KeePass2Reader();
Database* readDatabase(QIODevice* device, const CompositeKey& key);
Database* readDatabase(const QString& filename, const CompositeKey& key);
bool error();
QString errorString();
void setSaveXml(bool save);
QByteArray xmlData();
private:
void raiseError(const QString& str);
@ -55,6 +58,8 @@ private:
bool m_error;
QString m_errorStr;
bool m_headerEnd;
bool m_saveXml;
QByteArray m_xmlData;
Database* m_db;
QByteArray m_masterSeed;