Add Tools::readFromDevice() and make FileKey use it.

This commit is contained in:
Felix Geyer 2012-05-10 19:00:36 +02:00
parent 6eebd95de1
commit cc6f524168
4 changed files with 38 additions and 7 deletions

View file

@ -28,6 +28,7 @@ namespace Tools {
QString humanReadableFileSize(qint64 bytes);
bool hasChild(const QObject* parent, const QObject* child);
bool readFromDevice(QIODevice* device, QByteArray& data, int size = 16384);
bool readAllFromDevice(QIODevice* device, QByteArray& data);
QDateTime currentDateTimeUtc();
QString imageReaderFilter();