MythTV  master
Functions
remoteutil.h File Reference
#include <ctime>
#include <QStringList>
#include <QDateTime>
#include <vector>
#include "mythexp.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.

Functions

MPUBLIC vector< ProgramInfo * > * RemoteGetRecordedList (int sort)
 
MPUBLIC bool RemoteGetLoad (float load[3])
 
MPUBLIC bool RemoteGetUptime (time_t &uptime)
 
MPUBLIC bool RemoteGetMemStats (int &totalMB, int &freeMB, int &totalVM, int &freeVM)
 
MPUBLIC bool RemoteCheckFile (ProgramInfo *pginfo, bool checkSlaves=true)
 
MPUBLIC bool RemoteDeleteRecording (uint recordingID, bool forceMetadataDelete, bool forgetHistory)
 
MPUBLIC bool RemoteUndeleteRecording (uint recordingID)
 
MPUBLIC void RemoteGetAllScheduledRecordings (vector< ProgramInfo * > &scheduledlist)
 
MPUBLIC void RemoteGetAllExpiringRecordings (vector< ProgramInfo * > &expiringlist)
 
MPUBLIC uint RemoteGetRecordingList (vector< ProgramInfo * > &reclist, QStringList &strList)
 
MPUBLIC vector< ProgramInfo * > * RemoteGetConflictList (const ProgramInfo *pginfo)
 
MPUBLIC QDateTime RemoteGetPreviewLastModified (const ProgramInfo *pginfo)
 
MPUBLIC 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...
 
MPUBLIC bool RemoteFillProgramInfo (ProgramInfo &pginfo, const QString &playbackhostname)
 
MPUBLIC QStringList RemoteRecordings (void)
 
MPUBLIC int RemoteGetRecordingMask (void)
 
MPUBLIC int RemoteCheckForRecording (const ProgramInfo *pginfo)
 Get recorder for a programme. More...
 
MPUBLIC int RemoteGetRecordingStatus (const ProgramInfo *pginfo, int overrecsecs, int underrecsecs)
 Get status of an individual programme (with pre-post roll?). More...
 
MPUBLIC vector< ProgramInfo * > * RemoteGetCurrentlyRecordingList (void)
 return list of currently recording shows More...
 
MPUBLIC bool RemoteGetFileList (const QString &host, const QString &path, QStringList *list, QString sgroup, bool fileNamesOnly=false)
 
MPUBLIC bool RemoteGetActiveBackends (QStringList *list)
 return list of backends currently connected to the master More...
 

Function Documentation

◆ RemoteGetRecordedList()

MPUBLIC vector<ProgramInfo *>* RemoteGetRecordedList ( int  sort)

◆ RemoteGetLoad()

MPUBLIC bool RemoteGetLoad ( float  load[3])

Definition at line 39 of file remoteutil.cpp.

Referenced by StatusBox::doMachineStatus().

◆ RemoteGetUptime()

MPUBLIC bool RemoteGetUptime ( time_t &  uptime)

Definition at line 54 of file remoteutil.cpp.

Referenced by StatusBox::doMachineStatus().

◆ RemoteGetMemStats()

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

Definition at line 74 of file remoteutil.cpp.

Referenced by StatusBox::doMachineStatus().

◆ RemoteCheckFile()

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

Definition at line 90 of file remoteutil.cpp.

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

◆ RemoteDeleteRecording()

MPUBLIC bool RemoteDeleteRecording ( uint  recordingID,
bool  forceMetadataDelete,
bool  forgetHistory 
)

Definition at line 110 of file remoteutil.cpp.

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

◆ RemoteUndeleteRecording()

MPUBLIC bool RemoteUndeleteRecording ( uint  recordingID)

Definition at line 139 of file remoteutil.cpp.

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

◆ RemoteGetAllScheduledRecordings()

MPUBLIC void RemoteGetAllScheduledRecordings ( vector< ProgramInfo * > &  scheduledlist)

◆ RemoteGetAllExpiringRecordings()

MPUBLIC void RemoteGetAllExpiringRecordings ( vector< ProgramInfo * > &  expiringlist)

Definition at line 168 of file remoteutil.cpp.

Referenced by StatusBox::doAutoExpireList().

◆ RemoteGetRecordingList()

MPUBLIC uint RemoteGetRecordingList ( vector< ProgramInfo * > &  reclist,
QStringList &  strList 
)

◆ RemoteGetConflictList()

MPUBLIC vector<ProgramInfo *>* RemoteGetConflictList ( const ProgramInfo pginfo)

Definition at line 202 of file remoteutil.cpp.

Referenced by ScheduleCommon::EditRecording().

◆ RemoteGetPreviewLastModified()

MPUBLIC QDateTime RemoteGetPreviewLastModified ( const ProgramInfo pginfo)

Definition at line 214 of file remoteutil.cpp.

◆ RemoteGetPreviewIfModified()

MPUBLIC 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 238 of file remoteutil.cpp.

Referenced by PreviewGeneratorQueue::GeneratePreviewImage().

◆ RemoteFillProgramInfo()

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

Definition at line 362 of file remoteutil.cpp.

◆ RemoteRecordings()

MPUBLIC QStringList RemoteRecordings ( void  )

Definition at line 381 of file remoteutil.cpp.

◆ RemoteGetRecordingMask()

MPUBLIC int RemoteGetRecordingMask ( void  )

Definition at line 395 of file remoteutil.cpp.

Referenced by main(), and reloadTheme().

◆ RemoteCheckForRecording()

MPUBLIC int RemoteCheckForRecording ( const ProgramInfo pginfo)

Get recorder for a programme.

Returns
recordernum if pginfo recording in progress, else 0

Definition at line 485 of file remoteutil.cpp.

Referenced by RemoteGetRecordingStatus().

◆ RemoteGetRecordingStatus()

MPUBLIC 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 504 of file remoteutil.cpp.

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

◆ RemoteGetCurrentlyRecordingList()

MPUBLIC vector<ProgramInfo *>* RemoteGetCurrentlyRecordingList ( void  )

return list of currently recording shows

Definition at line 534 of file remoteutil.cpp.

◆ RemoteGetFileList()

MPUBLIC bool RemoteGetFileList ( const QString &  host,
const QString &  path,
QStringList *  list,
QString  sgroup,
bool  fileNamesOnly = false 
)

Definition at line 432 of file remoteutil.cpp.

Referenced by VideoDialog::GetCoverImage(), and VideoDialog::GetImageFromFolder().

◆ RemoteGetActiveBackends()

MPUBLIC bool RemoteGetActiveBackends ( QStringList *  list)

return list of backends currently connected to the master

Definition at line 578 of file remoteutil.cpp.

Referenced by VideoScanner::doScan(), and MetadataFactory::VideoScan().