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&,int64_t&,int64_t&);
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_
MBASE_PUBLIC int64_t getDiskSpace(const QString &, int64_t &, int64_t &)
MBASE_PUBLIC bool gzipFile(const QString &inFilename, const QString &zipFilename)
#define MBASE_PUBLIC
Definition: mythbaseexp.h:15
MBASE_PUBLIC QString RemoteDownloadFileNow(const QString &url, const QString &storageGroup, const QString &filename="")
MBASE_PUBLIC bool extractZIP(const QString &zipFile, const QString &outDir)
MBASE_PUBLIC QByteArray gzipUncompress(const QByteArray &data)
MBASE_PUBLIC QString RemoteDownloadFile(const QString &url, const QString &storageGroup, const QString &filename="")
MBASE_PUBLIC QByteArray gzipCompress(const QByteArray &data)
MBASE_PUBLIC bool gunzipFile(const QString &zipFilename, const QString &outFilename)