|
MythTV master
|
#include "remoteutil.h"#include <unistd.h>#include <QFileInfo>#include <QFile>#include <QDir>#include <QList>#include "libmythbase/compat.h"#include "libmythbase/mythcorecontext.h"#include "libmythbase/mythevent.h"#include "libmythbase/mythlogging.h"#include "libmythbase/mythsocket.h"#include "libmythbase/storagegroup.h"#include "programinfo.h"Go to the source code of this file.
Functions | |
| std::vector< ProgramInfo * > * | RemoteGetRecordedList (int sort) |
| bool | RemoteGetLoad (system_load_array &load) |
| bool | RemoteGetUptime (std::chrono::seconds &uptime) |
| bool | RemoteGetMemStats (int &totalMB, int &freeMB, int &totalVM, int &freeVM) |
| bool | RemoteCheckFile (ProgramInfo *pginfo, bool checkSlaves) |
| bool | RemoteDeleteRecording (uint recordingID, bool forceMetadataDelete, bool forgetHistory) |
| bool | RemoteUndeleteRecording (uint recordingID) |
| void | RemoteGetAllScheduledRecordings (std::vector< ProgramInfo * > &scheduledlist) |
| void | RemoteGetAllExpiringRecordings (std::vector< ProgramInfo * > &expiringlist) |
| uint | RemoteGetRecordingList (std::vector< ProgramInfo * > &reclist, QStringList &strList) |
| std::vector< ProgramInfo * > * | RemoteGetConflictList (const ProgramInfo *pginfo) |
| QDateTime | RemoteGetPreviewLastModified (const ProgramInfo *pginfo) |
| 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... | |
| bool | RemoteFillProgramInfo (ProgramInfo &pginfo, const QString &playbackhost) |
| QStringList | RemoteRecordings (void) |
| int | RemoteGetRecordingMask (void) |
| bool | RemoteGetFileList (const QString &host, const QString &path, QStringList *list, QString sgroup, bool fileNamesOnly) |
| int | RemoteCheckForRecording (const ProgramInfo *pginfo) |
| Get recorder for a programme. More... | |
| int | RemoteGetRecordingStatus (const ProgramInfo *pginfo, int overrecsecs, int underrecsecs) |
| Get status of an individual programme (with pre-post roll?). More... | |
| std::vector< ProgramInfo * > * | RemoteGetCurrentlyRecordingList (void) |
| return list of currently recording shows More... | |
| bool | RemoteGetActiveBackends (QStringList *list) |
| return list of backends currently connected to the master More... | |
| 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) |
|
static |
Definition at line 588 of file remoteutil.cpp.
Referenced by RemoteDownloadFile(), and RemoteDownloadFileNow().
| bool RemoteCheckFile | ( | ProgramInfo * | pginfo, |
| bool | checkSlaves | ||
| ) |
Definition at line 93 of file remoteutil.cpp.
Referenced by ProgramInfo::GetPlaybackURL(), and ProgramInfo::IsFileReadable().
| int RemoteCheckForRecording | ( | const ProgramInfo * | pginfo | ) |
Get recorder for a programme.
Definition at line 486 of file remoteutil.cpp.
Referenced by RemoteGetRecordingStatus().
Definition at line 113 of file remoteutil.cpp.
Referenced by StatusBox::customEvent(), and PBHEventHandler::event().
| QString RemoteDownloadFile | ( | const QString & | url, |
| const QString & | storageGroup, | ||
| const QString & | filename | ||
| ) |
Definition at line 609 of file remoteutil.cpp.
Referenced by VideoSetupWizard::DownloadSample(), NetBase::DownloadVideo(), and ThemeChooser::saveAndReload().
| QString RemoteDownloadFileNow | ( | const QString & | url, |
| const QString & | storageGroup, | ||
| const QString & | filename | ||
| ) |
Definition at line 616 of file remoteutil.cpp.
| bool RemoteFillProgramInfo | ( | ProgramInfo & | pginfo, |
| const QString & | playbackhost | ||
| ) |
Definition at line 359 of file remoteutil.cpp.
| bool RemoteGetActiveBackends | ( | QStringList * | list | ) |
return list of backends currently connected to the master
Definition at line 576 of file remoteutil.cpp.
Referenced by VideoScanner::doScan(), and MetadataFactory::VideoScan().
| void RemoteGetAllExpiringRecordings | ( | std::vector< ProgramInfo * > & | expiringlist | ) |
Definition at line 171 of file remoteutil.cpp.
Referenced by StatusBox::doAutoExpireList().
| void RemoteGetAllScheduledRecordings | ( | std::vector< ProgramInfo * > & | scheduledlist | ) |
Definition at line 165 of file remoteutil.cpp.
Referenced by ProgramRecPriority::FillList(), LookerUpper::HandleAllArtwork(), and LookerUpper::HandleAllRecordingRules().
| std::vector< ProgramInfo * > * RemoteGetConflictList | ( | const ProgramInfo * | pginfo | ) |
Definition at line 205 of file remoteutil.cpp.
Referenced by ScheduleCommon::EditRecording().
| std::vector< ProgramInfo * > * RemoteGetCurrentlyRecordingList | ( | void | ) |
return list of currently recording shows
Definition at line 535 of file remoteutil.cpp.
| bool RemoteGetFileList | ( | const QString & | host, |
| const QString & | path, | ||
| QStringList * | list, | ||
| QString | sgroup, | ||
| bool | fileNamesOnly | ||
| ) |
Definition at line 429 of file remoteutil.cpp.
Referenced by VideoDialog::GetCoverImage(), anonymous_namespace{videodlg.cpp}::GetLocalVideoImage(), and anonymous_namespace{dirscan.cpp}::scan_sg_dir().
| bool RemoteGetLoad | ( | system_load_array & | load | ) |
Definition at line 42 of file remoteutil.cpp.
Referenced by StatusBox::doMachineStatus().
| bool RemoteGetMemStats | ( | int & | totalMB, |
| int & | freeMB, | ||
| int & | totalVM, | ||
| int & | freeVM | ||
| ) |
Definition at line 77 of file remoteutil.cpp.
Referenced by StatusBox::doMachineStatus().
| 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().
| QDateTime RemoteGetPreviewLastModified | ( | const ProgramInfo * | pginfo | ) |
Definition at line 217 of file remoteutil.cpp.
| std::vector< ProgramInfo * > * RemoteGetRecordedList | ( | int | sort | ) |
Definition at line 19 of file remoteutil.cpp.
Referenced by CheckRecordings(), TV::FillOSDMenuJumpRec(), RecordingSelector::getRecordingList(), and ProgramInfoCache::Load().
| uint RemoteGetRecordingList | ( | std::vector< ProgramInfo * > & | reclist, |
| QStringList & | strList | ||
| ) |
Definition at line 177 of file remoteutil.cpp.
Referenced by RemoteGetAllExpiringRecordings(), RemoteGetAllScheduledRecordings(), RemoteGetConflictList(), RemoteGetCurrentlyRecordingList(), and RemoteGetRecordedList().
| int RemoteGetRecordingMask | ( | void | ) |
Definition at line 392 of file remoteutil.cpp.
Referenced by main(), and reloadTheme().
| 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 505 of file remoteutil.cpp.
Referenced by StartPrompter::backendRunningPrompt(), isRecording(), LCDProcClient::updateRecordingList(), WelcomeDialog::updateRecordingList(), and IdleScreen::UpdateStatus().
| bool RemoteGetUptime | ( | std::chrono::seconds & | uptime | ) |
Definition at line 57 of file remoteutil.cpp.
Referenced by StatusBox::doMachineStatus().
| QStringList RemoteRecordings | ( | void | ) |
Definition at line 378 of file remoteutil.cpp.
Definition at line 142 of file remoteutil.cpp.
Referenced by StatusBox::customEvent(), and PBHEventHandler::event().