diff options
author | Arno <arno@disconnect.de> | 2018-01-02 23:10:08 +0100 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2018-01-02 23:10:08 +0100 |
commit | aab351093e3ba713f1179a797d0f5929bdb4c92c (patch) | |
tree | 512b6858491e209f4d7be1f9fe46a0921c8523df /cachedfiledata.h | |
parent | b5dc8c10367537aec8ce7c061f608ca896ec9f36 (diff) | |
download | ShemovCleaner-aab351093e3ba713f1179a797d0f5929bdb4c92c.tar.gz ShemovCleaner-aab351093e3ba713f1179a797d0f5929bdb4c92c.tar.bz2 ShemovCleaner-aab351093e3ba713f1179a797d0f5929bdb4c92c.zip |
Save CachedFileData to disk
Since we already have the data, save it to speed up the start.
Surprisingly, the hardest part was to figure out how to use
QStandardPaths to find a location where to save the file. I went with
the semi-hardcoded path HomeLocation/.shemovcleaner, even though we're
on windows.
Diffstat (limited to 'cachedfiledata.h')
-rw-r--r-- | cachedfiledata.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cachedfiledata.h b/cachedfiledata.h index 9b5fe48..4aa1e20 100644 --- a/cachedfiledata.h +++ b/cachedfiledata.h @@ -2,6 +2,7 @@ #define CACHEDFILEDATA_H #include <QString> +#include <QDataStream> struct CachedFileData { explicit CachedFileData(); @@ -16,4 +17,7 @@ struct CachedFileData { bool copied; }; +QDataStream &operator<<(QDataStream &out, const CachedFileData &cfd); +QDataStream &operator>>(QDataStream &in, CachedFileData &cfd); + #endif // CACHEDFILEDATA_H |