MythTV  master
mythcoreutil.h
Go to the documentation of this file.
1 #ifndef COREUTIL_H_
2 #define COREUTIL_H_
3 
4 #include <cstdint>
5 
6 #include <QString>
7 
8 #include "mythbaseexp.h"
9 
10  MBASE_PUBLIC int64_t getDiskSpace(const QString &file_on_disk, int64_t &total, int64_t &used);
11 
12  MBASE_PUBLIC bool extractZIP(const QString &zipFile, const QString &outDir);
13 
14  MBASE_PUBLIC bool gzipFile(const QString &inFilename, const QString &zipFilename);
15  MBASE_PUBLIC bool gunzipFile(const QString &zipFilename, const QString &outFilename);
16 
17  MBASE_PUBLIC QByteArray gzipCompress(const QByteArray &data);
18  MBASE_PUBLIC QByteArray gzipUncompress(const QByteArray &data);
19 
20  MBASE_PUBLIC QString RemoteDownloadFile(const QString &url,
21  const QString &storageGroup,
22  const QString &filename = "");
23  MBASE_PUBLIC QString RemoteDownloadFileNow(const QString &url,
24  const QString &storageGroup,
25  const QString &filename = "");
26 
27 #endif // COREUTIL_H_
gzipFile
MBASE_PUBLIC bool gzipFile(const QString &inFilename, const QString &zipFilename)
Definition: mythcoreutil.cpp:102
mythbaseexp.h
RemoteDownloadFileNow
MBASE_PUBLIC QString RemoteDownloadFileNow(const QString &url, const QString &storageGroup, const QString &filename="")
Definition: mythcoreutil.cpp:306
MBASE_PUBLIC
#define MBASE_PUBLIC
Definition: mythbaseexp.h:15
gzipCompress
MBASE_PUBLIC QByteArray gzipCompress(const QByteArray &data)
Definition: mythcoreutil.cpp:172
getDiskSpace
MBASE_PUBLIC int64_t getDiskSpace(const QString &file_on_disk, int64_t &total, int64_t &used)
Definition: mythcoreutil.cpp:43
extractZIP
MBASE_PUBLIC bool extractZIP(const QString &zipFile, const QString &outDir)
Definition: mythcoreutil.cpp:74
gunzipFile
MBASE_PUBLIC bool gunzipFile(const QString &zipFilename, const QString &outFilename)
Definition: mythcoreutil.cpp:137
RemoteDownloadFile
MBASE_PUBLIC QString RemoteDownloadFile(const QString &url, const QString &storageGroup, const QString &filename="")
Definition: mythcoreutil.cpp:299
filename
QString filename
Definition: mythplugins/mytharchive/mytharchivehelper/main.cpp:634
gzipUncompress
MBASE_PUBLIC QByteArray gzipUncompress(const QByteArray &data)
Definition: mythcoreutil.cpp:229