MythTV  0.26-pre
Functions
remoteutil.h File Reference

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 (const ProgramInfo *pginfo, bool checkSlaves=true)
MPUBLIC bool RemoteDeleteRecording (uint chanid, const QDateTime &recstartts, bool forceMetadataDelete, bool forgetHistory)
MPUBLIC bool RemoteUndeleteRecording (uint chanid, const QDateTime &recstartts)
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.
MPUBLIC bool RemoteFillProgramInfo (ProgramInfo &pginfo, const QString &playbackhostname)
MPUBLIC QStringList RemoteRecordings (void)
MPUBLIC int RemoteGetRecordingMask (void)
MPUBLIC int RemoteGetFreeRecorderCount (void)
MPUBLIC int RemoteCheckForRecording (const ProgramInfo *pginfo)
 Get recorder for a programme.
MPUBLIC int RemoteGetRecordingStatus (const ProgramInfo *pginfo, int overrecsecs, int underrecsecs)
 Get status of an individual programme (with pre-post roll?).
MPUBLIC vector< ProgramInfo * > * RemoteGetCurrentlyRecordingList (void)
 return list of currently recording shows
MPUBLIC bool RemoteGetFileList (QString host, QString path, QStringList *list, QString sgroup, bool fileNamesOnly=false)
MPUBLIC bool RemoteGetActiveBackends (QStringList *list)
 return list of backends currently connected to the master

Function Documentation

MPUBLIC vector<ProgramInfo *>* RemoteGetRecordedList ( int  sort)
MPUBLIC bool RemoteGetLoad ( float  load[3])

Definition at line 39 of file remoteutil.cpp.

Referenced by StatusBox::doMachineStatus().

MPUBLIC bool RemoteGetUptime ( time_t &  uptime)

Definition at line 54 of file remoteutil.cpp.

Referenced by StatusBox::doMachineStatus().

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

Definition at line 74 of file remoteutil.cpp.

Referenced by StatusBox::doMachineStatus().

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

Definition at line 90 of file remoteutil.cpp.

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

MPUBLIC bool RemoteDeleteRecording ( uint  chanid,
const QDateTime &  recstartts,
bool  forceMetadataDelete,
bool  forgetHistory 
)

Definition at line 110 of file remoteutil.cpp.

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

MPUBLIC bool RemoteUndeleteRecording ( uint  chanid,
const QDateTime &  recstartts 
)

Definition at line 138 of file remoteutil.cpp.

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

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

Definition at line 165 of file remoteutil.cpp.

Referenced by StatusBox::doAutoExpireList().

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

Definition at line 199 of file remoteutil.cpp.

Referenced by ScheduleCommon::ShowNotRecordingDialog().

MPUBLIC QDateTime RemoteGetPreviewLastModified ( const ProgramInfo pginfo)

Definition at line 211 of file remoteutil.cpp.

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

Referenced by PreviewGeneratorQueue::GeneratePreviewImage().

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

Definition at line 347 of file remoteutil.cpp.

MPUBLIC QStringList RemoteRecordings ( void  )

Definition at line 366 of file remoteutil.cpp.

Definition at line 380 of file remoteutil.cpp.

Referenced by main(), and reloadTheme().

Definition at line 420 of file remoteutil.cpp.

Referenced by TV::FillOSDMenuPlayback(), isLiveTVAvailable(), and TV::StartTV().

MPUBLIC int RemoteCheckForRecording ( const ProgramInfo pginfo)

Get recorder for a programme.

Returns:
recordernum if pginfo recording in progress, else 0

Definition at line 495 of file remoteutil.cpp.

Referenced by 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 514 of file remoteutil.cpp.

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

return list of currently recording shows

Definition at line 544 of file remoteutil.cpp.

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

Definition at line 441 of file remoteutil.cpp.

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

MPUBLIC bool RemoteGetActiveBackends ( QStringList *  list)

return list of backends currently connected to the master

Definition at line 588 of file remoteutil.cpp.

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

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends