MythTV
master
|
#include <array>
#include <ctime>
#include <vector>
#include <QDateTime>
#include <QString>
#include <QStringList>
#include "libmythbase/mythchrono.h"
#include "mythbaseexp.h"
Go to the source code of this file.
Typedefs | |
using | system_load_array = std::array< double, 3 > |
Functions | |
MBASE_PUBLIC std::vector< ProgramInfo * > * | RemoteGetRecordedList (int sort) |
MBASE_PUBLIC bool | RemoteGetLoad (system_load_array &load) |
MBASE_PUBLIC bool | RemoteGetUptime (std::chrono::seconds &uptime) |
MBASE_PUBLIC bool | RemoteGetMemStats (int &totalMB, int &freeMB, int &totalVM, int &freeVM) |
MBASE_PUBLIC bool | RemoteCheckFile (ProgramInfo *pginfo, bool checkSlaves=true) |
MBASE_PUBLIC bool | RemoteDeleteRecording (uint recordingID, bool forceMetadataDelete, bool forgetHistory) |
MBASE_PUBLIC bool | RemoteUndeleteRecording (uint recordingID) |
MBASE_PUBLIC void | RemoteGetAllScheduledRecordings (std::vector< ProgramInfo * > &scheduledlist) |
MBASE_PUBLIC void | RemoteGetAllExpiringRecordings (std::vector< ProgramInfo * > &expiringlist) |
MBASE_PUBLIC uint | RemoteGetRecordingList (std::vector< ProgramInfo * > &reclist, QStringList &strList) |
MBASE_PUBLIC std::vector< ProgramInfo * > * | RemoteGetConflictList (const ProgramInfo *pginfo) |
MBASE_PUBLIC QDateTime | RemoteGetPreviewLastModified (const ProgramInfo *pginfo) |
MBASE_PUBLIC QDateTime | RemoteGetPreviewIfModified (const ProgramInfo &pginfo, const QString &cachefile) |
Download preview & get timestamp if newer than cachefile's last modified time, otherwise just get the timestamp. More... | |
MBASE_PUBLIC bool | RemoteFillProgramInfo (ProgramInfo &pginfo, const QString &playbackhostname) |
MBASE_PUBLIC QStringList | RemoteRecordings (void) |
MBASE_PUBLIC int | RemoteGetRecordingMask (void) |
MBASE_PUBLIC int | RemoteCheckForRecording (const ProgramInfo *pginfo) |
Get recorder for a programme. More... | |
MBASE_PUBLIC int | RemoteGetRecordingStatus (const ProgramInfo *pginfo, int overrecsecs, int underrecsecs) |
Get status of an individual programme (with pre-post roll?). More... | |
MBASE_PUBLIC std::vector< ProgramInfo * > * | RemoteGetCurrentlyRecordingList (void) |
return list of currently recording shows More... | |
MBASE_PUBLIC bool | RemoteGetFileList (const QString &host, const QString &path, QStringList *list, QString sgroup, bool fileNamesOnly=false) |
MBASE_PUBLIC bool | RemoteGetActiveBackends (QStringList *list) |
return list of backends currently connected to the master More... | |
MBASE_PUBLIC QString | RemoteDownloadFile (const QString &url, const QString &storageGroup, const QString &filename="") |
MBASE_PUBLIC QString | RemoteDownloadFileNow (const QString &url, const QString &storageGroup, const QString &filename="") |
using system_load_array = std::array<double,3> |
Definition at line 19 of file remoteutil.h.
MBASE_PUBLIC std::vector<ProgramInfo *>* RemoteGetRecordedList | ( | int | sort | ) |
Definition at line 19 of file remoteutil.cpp.
Referenced by CheckRecordings(), TV::FillOSDMenuJumpRec(), RecordingSelector::getRecordingList(), and ProgramInfoCache::Load().
MBASE_PUBLIC bool RemoteGetLoad | ( | system_load_array & | load | ) |
Definition at line 42 of file remoteutil.cpp.
Referenced by StatusBox::doMachineStatus().
MBASE_PUBLIC bool RemoteGetUptime | ( | std::chrono::seconds & | uptime | ) |
Definition at line 57 of file remoteutil.cpp.
Referenced by StatusBox::doMachineStatus().
MBASE_PUBLIC bool RemoteGetMemStats | ( | int & | totalMB, |
int & | freeMB, | ||
int & | totalVM, | ||
int & | freeVM | ||
) |
Definition at line 77 of file remoteutil.cpp.
Referenced by StatusBox::doMachineStatus().
MBASE_PUBLIC bool RemoteCheckFile | ( | ProgramInfo * | pginfo, |
bool | checkSlaves = true |
||
) |
Definition at line 93 of file remoteutil.cpp.
Referenced by ProgramInfo::GetPlaybackURL(), and ProgramInfo::IsFileReadable().
MBASE_PUBLIC bool RemoteDeleteRecording | ( | uint | recordingID, |
bool | forceMetadataDelete, | ||
bool | forgetHistory | ||
) |
Definition at line 113 of file remoteutil.cpp.
Referenced by StatusBox::customEvent(), and PBHEventHandler::event().
MBASE_PUBLIC bool RemoteUndeleteRecording | ( | uint | recordingID | ) |
Definition at line 142 of file remoteutil.cpp.
Referenced by StatusBox::customEvent(), and PBHEventHandler::event().
MBASE_PUBLIC void RemoteGetAllScheduledRecordings | ( | std::vector< ProgramInfo * > & | scheduledlist | ) |
Definition at line 165 of file remoteutil.cpp.
Referenced by ProgramRecPriority::FillList(), LookerUpper::HandleAllArtwork(), and LookerUpper::HandleAllRecordingRules().
MBASE_PUBLIC void RemoteGetAllExpiringRecordings | ( | std::vector< ProgramInfo * > & | expiringlist | ) |
Definition at line 171 of file remoteutil.cpp.
Referenced by StatusBox::doAutoExpireList().
MBASE_PUBLIC uint RemoteGetRecordingList | ( | std::vector< ProgramInfo * > & | reclist, |
QStringList & | strList | ||
) |
Definition at line 177 of file remoteutil.cpp.
Referenced by RemoteGetAllExpiringRecordings(), RemoteGetAllScheduledRecordings(), RemoteGetConflictList(), RemoteGetCurrentlyRecordingList(), and RemoteGetRecordedList().
MBASE_PUBLIC std::vector<ProgramInfo *>* RemoteGetConflictList | ( | const ProgramInfo * | pginfo | ) |
Definition at line 205 of file remoteutil.cpp.
Referenced by ScheduleCommon::EditRecording().
MBASE_PUBLIC QDateTime RemoteGetPreviewLastModified | ( | const ProgramInfo * | pginfo | ) |
Definition at line 217 of file remoteutil.cpp.
MBASE_PUBLIC QDateTime RemoteGetPreviewIfModified | ( | const ProgramInfo & | pginfo, |
const QString & | cachefile | ||
) |
Download preview & get timestamp if newer than cachefile's last modified time, otherwise just get the timestamp.
Definition at line 236 of file remoteutil.cpp.
Referenced by PreviewGeneratorQueue::GeneratePreviewImage().
MBASE_PUBLIC bool RemoteFillProgramInfo | ( | ProgramInfo & | pginfo, |
const QString & | playbackhostname | ||
) |
Definition at line 359 of file remoteutil.cpp.
MBASE_PUBLIC QStringList RemoteRecordings | ( | void | ) |
Definition at line 378 of file remoteutil.cpp.
MBASE_PUBLIC int RemoteGetRecordingMask | ( | void | ) |
Definition at line 392 of file remoteutil.cpp.
Referenced by main(), and reloadTheme().
MBASE_PUBLIC int RemoteCheckForRecording | ( | const ProgramInfo * | pginfo | ) |
Get recorder for a programme.
Definition at line 482 of file remoteutil.cpp.
Referenced by RemoteGetRecordingStatus().
MBASE_PUBLIC int RemoteGetRecordingStatus | ( | const ProgramInfo * | pginfo, |
int | overrecsecs, | ||
int | underrecsecs | ||
) |
Get status of an individual programme (with pre-post roll?).
0 | Not Recording |
1 | Recording |
2 | Under-Record |
3 | Over-Record |
Definition at line 501 of file remoteutil.cpp.
Referenced by StartPrompter::backendRunningPrompt(), isRecording(), WelcomeDialog::updateRecordingList(), LCDProcClient::updateRecordingList(), and IdleScreen::UpdateStatus().
MBASE_PUBLIC std::vector<ProgramInfo *>* RemoteGetCurrentlyRecordingList | ( | void | ) |
return list of currently recording shows
Definition at line 531 of file remoteutil.cpp.
MBASE_PUBLIC bool RemoteGetFileList | ( | const QString & | host, |
const QString & | path, | ||
QStringList * | list, | ||
QString | sgroup, | ||
bool | fileNamesOnly = false |
||
) |
Definition at line 429 of file remoteutil.cpp.
Referenced by VideoDialog::GetCoverImage().
MBASE_PUBLIC bool RemoteGetActiveBackends | ( | QStringList * | list | ) |
return list of backends currently connected to the master
Definition at line 572 of file remoteutil.cpp.
Referenced by VideoScanner::doScan(), and MetadataFactory::VideoScan().
MBASE_PUBLIC QString RemoteDownloadFile | ( | const QString & | url, |
const QString & | storageGroup, | ||
const QString & | filename = "" |
||
) |
Definition at line 605 of file remoteutil.cpp.
Referenced by VideoSetupWizard::DownloadSample(), NetBase::DownloadVideo(), and ThemeChooser::saveAndReload().
MBASE_PUBLIC QString RemoteDownloadFileNow | ( | const QString & | url, |
const QString & | storageGroup, | ||
const QString & | filename = "" |
||
) |
Definition at line 612 of file remoteutil.cpp.