blob: 773f41155a9dfd8eb697d67db5e558744796f39d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#include "cachedfiledata.h"
CachedFileData::CachedFileData() : seconds(0), size(0), attr(-1), copied(false) {}
QDataStream &operator<<(QDataStream &out, const CachedFileData &cfd){
out << cfd.fullPath << cfd.name << cfd.mimeType << cfd.duration << cfd.md5Sum << cfd.seconds << cfd.size << cfd.attr << cfd.copied;
return out;
}
QDataStream &operator>>(QDataStream &in, CachedFileData &cfd){
in >> cfd.fullPath >> cfd.name >> cfd.mimeType >> cfd.duration >> cfd.md5Sum >> cfd.seconds >> cfd.size >> cfd.attr >> cfd.copied;
return in;
}
|