MythTV  master
remoteutil.h
Go to the documentation of this file.
1 #ifndef REMOTEUTIL_H_
2 #define REMOTEUTIL_H_
3 
4 #include <array>
5 #include <ctime>
6 #include <vector>
7 
8 #include <QDateTime>
9 #include <QStringList>
10 
11 #include "libmythbase/mythchrono.h"
12 
13 #include "mythexp.h"
14 
15 class ProgramInfo;
16 class MythEvent;
17 
18 using system_load_array = std::array<double,3>;
19 
20 MPUBLIC std::vector<ProgramInfo *> *RemoteGetRecordedList(int sort);
22 MPUBLIC bool RemoteGetUptime(std::chrono::seconds &uptime);
23 MPUBLIC
24 bool RemoteGetMemStats(int &totalMB, int &freeMB, int &totalVM, int &freeVM);
26  ProgramInfo *pginfo, bool checkSlaves = true);
27 MPUBLIC bool RemoteDeleteRecording( uint recordingID, bool forceMetadataDelete,
28  bool forgetHistory);
29 MPUBLIC
30 bool RemoteUndeleteRecording(uint recordingID);
31 MPUBLIC
32 void RemoteGetAllScheduledRecordings(std::vector<ProgramInfo *> &scheduledlist);
33 MPUBLIC
34 void RemoteGetAllExpiringRecordings(std::vector<ProgramInfo *> &expiringlist);
35 MPUBLIC uint RemoteGetRecordingList(std::vector<ProgramInfo *> &reclist,
36  QStringList &strList);
37 MPUBLIC std::vector<ProgramInfo *> *RemoteGetConflictList(const ProgramInfo *pginfo);
38 MPUBLIC QDateTime RemoteGetPreviewLastModified(const ProgramInfo *pginfo);
40  const ProgramInfo &pginfo, const QString &cachefile);
42  ProgramInfo &pginfo, const QString &playbackhostname);
43 MPUBLIC QStringList RemoteRecordings(void);
45 
47 MPUBLIC int RemoteGetRecordingStatus(const ProgramInfo *pginfo, int overrecsecs,
48  int underrecsecs);
49 MPUBLIC std::vector<ProgramInfo *> *RemoteGetCurrentlyRecordingList(void);
50 
51 MPUBLIC bool RemoteGetFileList(const QString& host, const QString& path, QStringList* list,
52  QString sgroup, bool fileNamesOnly = false);
53 MPUBLIC bool RemoteGetActiveBackends(QStringList *list);
54 
55 #endif
56 
57 /* vim: set expandtab tabstop=4 shiftwidth=4: */
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...
Definition: remoteutil.cpp:234
MPUBLIC
#define MPUBLIC
Definition: mythexp.h:10
RemoteGetConflictList
MPUBLIC std::vector< ProgramInfo * > * RemoteGetConflictList(const ProgramInfo *pginfo)
Definition: remoteutil.cpp:203
RemoteRecordings
MPUBLIC QStringList RemoteRecordings(void)
Definition: remoteutil.cpp:376
mythexp.h
MythEvent
This class is used as a container for messages.
Definition: mythevent.h:16
RemoteCheckForRecording
MPUBLIC int RemoteCheckForRecording(const ProgramInfo *pginfo)
Get recorder for a programme.
Definition: remoteutil.cpp:480
RemoteGetAllScheduledRecordings
MPUBLIC void RemoteGetAllScheduledRecordings(std::vector< ProgramInfo * > &scheduledlist)
Definition: remoteutil.cpp:163
RemoteGetCurrentlyRecordingList
MPUBLIC std::vector< ProgramInfo * > * RemoteGetCurrentlyRecordingList(void)
return list of currently recording shows
Definition: remoteutil.cpp:529
system_load_array
std::array< double, 3 > system_load_array
Definition: remoteutil.h:18
RemoteGetRecordingList
MPUBLIC uint RemoteGetRecordingList(std::vector< ProgramInfo * > &reclist, QStringList &strList)
Definition: remoteutil.cpp:175
RemoteGetUptime
MPUBLIC bool RemoteGetUptime(std::chrono::seconds &uptime)
Definition: remoteutil.cpp:55
RemoteGetRecordingMask
MPUBLIC int RemoteGetRecordingMask(void)
Definition: remoteutil.cpp:390
RemoteGetActiveBackends
MPUBLIC bool RemoteGetActiveBackends(QStringList *list)
return list of backends currently connected to the master
Definition: remoteutil.cpp:570
RemoteGetFileList
MPUBLIC bool RemoteGetFileList(const QString &host, const QString &path, QStringList *list, QString sgroup, bool fileNamesOnly=false)
Definition: remoteutil.cpp:427
RemoteGetRecordingStatus
MPUBLIC int RemoteGetRecordingStatus(const ProgramInfo *pginfo, int overrecsecs, int underrecsecs)
Get status of an individual programme (with pre-post roll?).
Definition: remoteutil.cpp:499
uint
unsigned int uint
Definition: compat.h:79
RemoteDeleteRecording
MPUBLIC bool RemoteDeleteRecording(uint recordingID, bool forceMetadataDelete, bool forgetHistory)
Definition: remoteutil.cpp:111
ProgramInfo
Holds information on recordings and videos.
Definition: programinfo.h:67
RemoteGetAllExpiringRecordings
MPUBLIC void RemoteGetAllExpiringRecordings(std::vector< ProgramInfo * > &expiringlist)
Definition: remoteutil.cpp:169
mythchrono.h
RemoteGetPreviewLastModified
MPUBLIC QDateTime RemoteGetPreviewLastModified(const ProgramInfo *pginfo)
Definition: remoteutil.cpp:215
RemoteUndeleteRecording
MPUBLIC bool RemoteUndeleteRecording(uint recordingID)
Definition: remoteutil.cpp:140
RemoteGetLoad
MPUBLIC bool RemoteGetLoad(system_load_array &load)
Definition: remoteutil.cpp:40
RemoteGetMemStats
MPUBLIC bool RemoteGetMemStats(int &totalMB, int &freeMB, int &totalVM, int &freeVM)
Definition: remoteutil.cpp:75
RemoteCheckFile
MPUBLIC bool RemoteCheckFile(ProgramInfo *pginfo, bool checkSlaves=true)
Definition: remoteutil.cpp:91
RemoteGetRecordedList
MPUBLIC std::vector< ProgramInfo * > * RemoteGetRecordedList(int sort)
Definition: remoteutil.cpp:17
RemoteFillProgramInfo
MPUBLIC bool RemoteFillProgramInfo(ProgramInfo &pginfo, const QString &playbackhostname)
Definition: remoteutil.cpp:357