Add Tools::readAllFromDevice().

Make KeePass2XmlReader::readCompressedBinary() use the new function.
This commit is contained in:
Felix Geyer 2012-05-02 11:06:24 +02:00
parent f8f52419c8
commit f89ffa10e6
3 changed files with 30 additions and 16 deletions

View file

@ -21,10 +21,13 @@
#include <QtCore/QObject>
#include <QtCore/QString>
class QIODevice;
namespace Tools {
QString humanReadableFileSize(qint64 bytes);
bool hasChild(const QObject* parent, const QObject* child);
bool readAllFromDevice(QIODevice* device, QByteArray& data);
} // namespace Tools