MythTV  master
Functions
remoteutil.cpp File Reference
#include <unistd.h>
#include <QFileInfo>
#include <QFile>
#include <QDir>
#include <QList>
#include "compat.h"
#include "remoteutil.h"
#include "programinfo.h"
#include "mythcorecontext.h"
#include "storagegroup.h"
#include "mythevent.h"
#include "mythsocket.h"
Include dependency graph for remoteutil.cpp:

Go to the source code of this file.

Functions

vector< ProgramInfo * > * RemoteGetRecordedList (int sort)
 
bool RemoteGetLoad (float load[3])
 
bool RemoteGetUptime (time_t &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 (vector< ProgramInfo * > &scheduledlist)
 
void RemoteGetAllExpiringRecordings (vector< ProgramInfo * > &expiringlist)
 
uint RemoteGetRecordingList (vector< ProgramInfo * > &reclist, QStringList &strList)
 
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...
 
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...
 

Function Documentation

◆ RemoteGetRecordedList()

vector<ProgramInfo *>* RemoteGetRecordedList ( int  sort)

◆ RemoteGetLoad()

bool RemoteGetLoad ( float  load[3])

Definition at line 39 of file remoteutil.cpp.

Referenced by StatusBox::doMachineStatus().

◆ RemoteGetUptime()

bool RemoteGetUptime ( time_t &  uptime)

Definition at line 54 of file remoteutil.cpp.

Referenced by StatusBox::doMachineStatus().

◆ RemoteGetMemStats()

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

Definition at line 74 of file remoteutil.cpp.

Referenced by StatusBox::doMachineStatus().

◆ RemoteCheckFile()

bool RemoteCheckFile ( ProgramInfo pginfo,
bool  checkSlaves 
)

Definition at line 90 of file remoteutil.cpp.

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

◆ RemoteDeleteRecording()

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

Definition at line 110 of file remoteutil.cpp.

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

◆ RemoteUndeleteRecording()

bool RemoteUndeleteRecording ( uint  recordingID)

Definition at line 139 of file remoteutil.cpp.

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

◆ RemoteGetAllScheduledRecordings()

void RemoteGetAllScheduledRecordings ( vector< ProgramInfo * > &  scheduledlist)

◆ RemoteGetAllExpiringRecordings()

void RemoteGetAllExpiringRecordings ( vector< ProgramInfo * > &  expiringlist)

Definition at line 168 of file remoteutil.cpp.

Referenced by StatusBox::doAutoExpireList().

◆ RemoteGetRecordingList()

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

◆ RemoteGetConflictList()

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

Definition at line 202 of file remoteutil.cpp.

Referenced by ScheduleCommon::EditRecording().

◆ RemoteGetPreviewLastModified()

QDateTime RemoteGetPreviewLastModified ( const ProgramInfo pginfo)

Definition at line 214 of file remoteutil.cpp.

◆ RemoteGetPreviewIfModified()

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

bool RemoteFillProgramInfo ( ProgramInfo pginfo,
const QString &  playbackhost 
)

Definition at line 362 of file remoteutil.cpp.

◆ RemoteRecordings()

QStringList RemoteRecordings ( void  )

Definition at line 381 of file remoteutil.cpp.

◆ RemoteGetRecordingMask()

int RemoteGetRecordingMask ( void  )

Definition at line 395 of file remoteutil.cpp.

Referenced by main(), and reloadTheme().

◆ RemoteGetFileList()

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

Definition at line 432 of file remoteutil.cpp.

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

◆ RemoteCheckForRecording()

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

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

vector<ProgramInfo *>* RemoteGetCurrentlyRecordingList ( void  )

return list of currently recording shows

Definition at line 534 of file remoteutil.cpp.

◆ RemoteGetActiveBackends()

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