MythTV master
Functions | Variables
remotefile.cpp File Reference
#include <iostream>
#include <QFile>
#include <QFileInfo>
#include <QRegularExpression>
#include <QUrl>
#include <unistd.h>
#include <fcntl.h>
#include "mythconfig.h"
#include "mythdb.h"
#include "remotefile.h"
#include "mythcorecontext.h"
#include "mythsocket.h"
#include "compat.h"
#include "mythtimer.h"
#include "mythdate.h"
#include "mythmiscutil.h"
#include "mythlogging.h"
#include "threadedfilewriter.h"
#include "storagegroup.h"
Include dependency graph for remotefile.cpp:

Go to the source code of this file.

Functions

static bool RemoteSendReceiveStringList (const QString &host, QStringList &strlist)
 
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)
 

Variables

static constexpr int8_t O_LARGEFILE { 0 }
 
static constexpr std::chrono::milliseconds MAX_FILE_CHECK { 500ms }
 

Function Documentation

◆ downloadRemoteFile()

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

Definition at line 1458 of file remotefile.cpp.

Referenced by RemoteDownloadFile(), and RemoteDownloadFileNow().

◆ 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 1486 of file remotefile.cpp.

◆ RemoteSendReceiveStringList()

static bool RemoteSendReceiveStringList ( const QString &  host,
QStringList &  strlist 
)
static

Definition at line 32 of file remotefile.cpp.

Referenced by RemoteFile::Exists(), and RemoteFile::GetFileHash().

Variable Documentation

◆ MAX_FILE_CHECK

constexpr std::chrono::milliseconds MAX_FILE_CHECK { 500ms }
staticconstexpr

Definition at line 30 of file remotefile.cpp.

Referenced by RemoteFile::GetRealFileSize().

◆ O_LARGEFILE

constexpr int8_t O_LARGEFILE { 0 }
staticconstexpr

Definition at line 15 of file remotefile.cpp.

Referenced by RemoteFile::OpenInternal().