MythTV  master
Typedefs | Functions
remoteutil.h File Reference
#include <array>
#include <ctime>
#include <vector>
#include <QDateTime>
#include <QString>
#include <QStringList>
#include "libmythbase/mythchrono.h"
#include "mythbaseexp.h"
Include dependency graph for remoteutil.h:
This graph shows which files directly or indirectly include this file:

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="")
 

Typedef Documentation

◆ system_load_array

using system_load_array = std::array<double,3>

Definition at line 19 of file remoteutil.h.

Function Documentation

◆ RemoteGetRecordedList()

MBASE_PUBLIC std::vector<ProgramInfo *>* RemoteGetRecordedList ( int  sort)

◆ RemoteGetLoad()

MBASE_PUBLIC bool RemoteGetLoad ( system_load_array load)

Definition at line 42 of file remoteutil.cpp.

Referenced by StatusBox::doMachineStatus().

◆ RemoteGetUptime()

MBASE_PUBLIC bool RemoteGetUptime ( std::chrono::seconds &  uptime)

Definition at line 57 of file remoteutil.cpp.

Referenced by StatusBox::doMachineStatus().

◆ RemoteGetMemStats()

MBASE_PUBLIC bool RemoteGetMemStats ( int &  totalMB,
int &  freeMB,
int &  totalVM,
int &  freeVM 
)

Definition at line 77 of file remoteutil.cpp.

Referenced by StatusBox::doMachineStatus().

◆ RemoteCheckFile()

MBASE_PUBLIC bool RemoteCheckFile ( ProgramInfo pginfo,
bool  checkSlaves = true 
)

Definition at line 93 of file remoteutil.cpp.

Referenced by ProgramInfo::GetPlaybackURL(), and ProgramInfo::IsFileReadable().

◆ RemoteDeleteRecording()

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().

◆ RemoteUndeleteRecording()

MBASE_PUBLIC bool RemoteUndeleteRecording ( uint  recordingID)

Definition at line 142 of file remoteutil.cpp.

Referenced by StatusBox::customEvent(), and PBHEventHandler::event().

◆ RemoteGetAllScheduledRecordings()

MBASE_PUBLIC void RemoteGetAllScheduledRecordings ( std::vector< ProgramInfo * > &  scheduledlist)

◆ RemoteGetAllExpiringRecordings()

MBASE_PUBLIC void RemoteGetAllExpiringRecordings ( std::vector< ProgramInfo * > &  expiringlist)

Definition at line 171 of file remoteutil.cpp.

Referenced by StatusBox::doAutoExpireList().

◆ RemoteGetRecordingList()

MBASE_PUBLIC uint RemoteGetRecordingList ( std::vector< ProgramInfo * > &  reclist,
QStringList &  strList 
)

◆ RemoteGetConflictList()

MBASE_PUBLIC std::vector<ProgramInfo *>* RemoteGetConflictList ( const ProgramInfo pginfo)

Definition at line 205 of file remoteutil.cpp.

Referenced by ScheduleCommon::EditRecording().

◆ RemoteGetPreviewLastModified()

MBASE_PUBLIC QDateTime RemoteGetPreviewLastModified ( const ProgramInfo pginfo)

Definition at line 217 of file remoteutil.cpp.

◆ RemoteGetPreviewIfModified()

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().

◆ RemoteFillProgramInfo()

MBASE_PUBLIC bool RemoteFillProgramInfo ( ProgramInfo pginfo,
const QString &  playbackhostname 
)

Definition at line 359 of file remoteutil.cpp.

◆ RemoteRecordings()

MBASE_PUBLIC QStringList RemoteRecordings ( void  )

Definition at line 378 of file remoteutil.cpp.

◆ RemoteGetRecordingMask()

MBASE_PUBLIC int RemoteGetRecordingMask ( void  )

Definition at line 392 of file remoteutil.cpp.

Referenced by main(), and reloadTheme().

◆ RemoteCheckForRecording()

MBASE_PUBLIC int RemoteCheckForRecording ( const ProgramInfo pginfo)

Get recorder for a programme.

Returns
recordernum if pginfo recording in progress, else 0

Definition at line 482 of file remoteutil.cpp.

Referenced by RemoteGetRecordingStatus().

◆ RemoteGetRecordingStatus()

MBASE_PUBLIC int RemoteGetRecordingStatus ( const ProgramInfo pginfo,
int  overrecsecs,
int  underrecsecs 
)

Get status of an individual programme (with pre-post roll?).

Return values
0Not Recording
1Recording
2Under-Record
3Over-Record

Definition at line 501 of file remoteutil.cpp.

Referenced by StartPrompter::backendRunningPrompt(), isRecording(), WelcomeDialog::updateRecordingList(), LCDProcClient::updateRecordingList(), and IdleScreen::UpdateStatus().

◆ RemoteGetCurrentlyRecordingList()

MBASE_PUBLIC std::vector<ProgramInfo *>* RemoteGetCurrentlyRecordingList ( void  )

return list of currently recording shows

Definition at line 531 of file remoteutil.cpp.

◆ RemoteGetFileList()

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().

◆ RemoteGetActiveBackends()

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().

◆ RemoteDownloadFile()

MBASE_PUBLIC QString RemoteDownloadFile ( const QString &  url,
const QString &  storageGroup,
const QString &  filename = "" 
)

◆ RemoteDownloadFileNow()

MBASE_PUBLIC QString RemoteDownloadFileNow ( const QString &  url,
const QString &  storageGroup,
const QString &  filename = "" 
)

Definition at line 612 of file remoteutil.cpp.