MythTV  master
Go to the documentation of this file.
1 #ifndef REMOTEUTIL_H_
2 #define REMOTEUTIL_H_
4 #include <ctime>
6 #include <QStringList>
7 #include <QDateTime>
9 #include <vector>
10 using std::vector;
12 #include "mythexp.h"
14 class ProgramInfo;
15 class MythEvent;
17 MPUBLIC vector<ProgramInfo *> *RemoteGetRecordedList(int sort);
18 MPUBLIC bool RemoteGetLoad(double load[3]);
19 MPUBLIC bool RemoteGetUptime(time_t &uptime);
21 bool RemoteGetMemStats(int &totalMB, int &freeMB, int &totalVM, int &freeVM);
23  ProgramInfo *pginfo, bool checkSlaves = true);
24 MPUBLIC bool RemoteDeleteRecording( uint recordingID, bool forceMetadataDelete,
25  bool forgetHistory);
27 bool RemoteUndeleteRecording(uint recordingID);
29 void RemoteGetAllScheduledRecordings(vector<ProgramInfo *> &scheduledlist);
31 void RemoteGetAllExpiringRecordings(vector<ProgramInfo *> &expiringlist);
32 MPUBLIC uint RemoteGetRecordingList(vector<ProgramInfo *> &reclist,
33  QStringList &strList);
34 MPUBLIC vector<ProgramInfo *> *RemoteGetConflictList(const ProgramInfo *pginfo);
35 MPUBLIC QDateTime RemoteGetPreviewLastModified(const ProgramInfo *pginfo);
37  const ProgramInfo &pginfo, const QString &cachefile);
39  ProgramInfo &pginfo, const QString &playbackhostname);
40 MPUBLIC QStringList RemoteRecordings(void);
44 MPUBLIC int RemoteGetRecordingStatus(const ProgramInfo *pginfo, int overrecsecs,
45  int underrecsecs);
46 MPUBLIC vector<ProgramInfo *> *RemoteGetCurrentlyRecordingList(void);
48 MPUBLIC bool RemoteGetFileList(const QString& host, const QString& path, QStringList* list,
49  QString sgroup, bool fileNamesOnly = false);
50 MPUBLIC bool RemoteGetActiveBackends(QStringList *list);
52 #endif
54 /* vim: set expandtab tabstop=4 shiftwidth=4: */
MPUBLIC vector< ProgramInfo * > * RemoteGetConflictList(const ProgramInfo *pginfo)
Definition: remoteutil.cpp:202
MPUBLIC vector< ProgramInfo * > * RemoteGetCurrentlyRecordingList(void)
return list of currently recording shows
Definition: remoteutil.cpp:536
MPUBLIC void RemoteGetAllScheduledRecordings(vector< ProgramInfo * > &scheduledlist)
Definition: remoteutil.cpp:162
#define MPUBLIC
Definition: mythexp.h:10
MPUBLIC bool RemoteGetLoad(double load[3])
Definition: remoteutil.cpp:39
MPUBLIC uint RemoteGetRecordingList(vector< ProgramInfo * > &reclist, QStringList &strList)
Definition: remoteutil.cpp:174
MPUBLIC int RemoteGetRecordingMask(void)
Definition: remoteutil.cpp:397
MPUBLIC bool RemoteGetActiveBackends(QStringList *list)
return list of backends currently connected to the master
Definition: remoteutil.cpp:577
MPUBLIC bool RemoteGetFileList(const QString &host, const QString &path, QStringList *list, QString sgroup, bool fileNamesOnly=false)
Definition: remoteutil.cpp:434
MPUBLIC vector< ProgramInfo * > * RemoteGetRecordedList(int sort)
Definition: remoteutil.cpp:16
MPUBLIC bool RemoteDeleteRecording(uint recordingID, bool forceMetadataDelete, bool forgetHistory)
Definition: remoteutil.cpp:110
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...
Definition: remoteutil.cpp:238
MPUBLIC bool RemoteFillProgramInfo(ProgramInfo &pginfo, const QString &playbackhostname)
Definition: remoteutil.cpp:364
Holds information on recordings and videos.
Definition: programinfo.h:67
This class is used as a container for messages.
Definition: mythevent.h:16
MPUBLIC QDateTime RemoteGetPreviewLastModified(const ProgramInfo *pginfo)
Definition: remoteutil.cpp:214
MPUBLIC bool RemoteCheckFile(ProgramInfo *pginfo, bool checkSlaves=true)
Definition: remoteutil.cpp:90
MPUBLIC bool RemoteUndeleteRecording(uint recordingID)
Definition: remoteutil.cpp:139
MPUBLIC bool RemoteGetUptime(time_t &uptime)
Definition: remoteutil.cpp:54
unsigned int uint
Definition: compat.h:140
MPUBLIC QStringList RemoteRecordings(void)
Definition: remoteutil.cpp:383
MPUBLIC bool RemoteGetMemStats(int &totalMB, int &freeMB, int &totalVM, int &freeVM)
Definition: remoteutil.cpp:74
MPUBLIC void RemoteGetAllExpiringRecordings(vector< ProgramInfo * > &expiringlist)
Definition: remoteutil.cpp:168
MPUBLIC int RemoteCheckForRecording(const ProgramInfo *pginfo)
Get recorder for a programme.
Definition: remoteutil.cpp:487
MPUBLIC int RemoteGetRecordingStatus(const ProgramInfo *pginfo, int overrecsecs, int underrecsecs)
Get status of an individual programme (with pre-post roll?).
Definition: remoteutil.cpp:506