MythTV  master
Functions
mythcoreutil.cpp File Reference
#include "mythcoreutil.h"
#include <unistd.h>
#include <fcntl.h>
#include "compat.h"
#include <QByteArray>
#include <QStringList>
#include <QFile>
#include "mythcorecontext.h"
#include "mythlogging.h"
#include "unzip.h"
Include dependency graph for mythcoreutil.cpp:

Go to the source code of this file.

Functions

int64_t getDiskSpace (const QString &file_on_disk, int64_t &total, int64_t &used)
 
bool extractZIP (const QString &zipFile, const QString &outDir)
 
bool gzipFile (const QString &inFilename, const QString &gzipFilename)
 
bool gunzipFile (const QString &gzipFilename, const QString &outFilename)
 
QByteArray gzipCompress (const QByteArray &data)
 
QByteArray gzipUncompress (const QByteArray &data)
 
static QString downloadRemoteFile (const QString &cmd, const QString &url, const QString &storageGroup, const QString &filename)
 
QString RemoteDownloadFile (const QString &url, const QString &storageGroup, const QString &filename)
 
QString RemoteDownloadFileNow (const QString &url, const QString &storageGroup, const QString &filename)
 

Function Documentation

◆ getDiskSpace()

int64_t getDiskSpace ( const QString &  file_on_disk,
int64_t &  total,
int64_t &  used 
)

◆ extractZIP()

bool extractZIP ( const QString &  zipFile,
const QString &  outDir 
)

◆ gzipFile()

bool gzipFile ( const QString &  inFilename,
const QString &  gzipFilename 
)

Definition at line 100 of file mythcoreutil.cpp.

◆ gunzipFile()

bool gunzipFile ( const QString &  gzipFilename,
const QString &  outFilename 
)

Definition at line 135 of file mythcoreutil.cpp.

◆ gzipCompress()

QByteArray gzipCompress ( const QByteArray &  data)

Definition at line 170 of file mythcoreutil.cpp.

Referenced by gzipFile(), and HTTPRequest::SendResponse().

◆ gzipUncompress()

QByteArray gzipUncompress ( const QByteArray &  data)

Definition at line 228 of file mythcoreutil.cpp.

Referenced by gunzipFile(), and MusicMetadata::updateStreamList().

◆ downloadRemoteFile()

static QString downloadRemoteFile ( const QString &  cmd,
const QString &  url,
const QString &  storageGroup,
const QString &  filename 
)
static

◆ RemoteDownloadFile()

QString RemoteDownloadFile ( const QString &  url,
const QString &  storageGroup,
const QString &  filename 
)

◆ RemoteDownloadFileNow()

QString RemoteDownloadFileNow ( const QString &  url,
const QString &  storageGroup,
const QString &  filename 
)

Definition at line 306 of file mythcoreutil.cpp.