MythTV  master
tvremoteutil.h
Go to the documentation of this file.
1 #ifndef TV_REMOTE_UTIL_H
2 #define TV_REMOTE_UTIL_H
3 
4 #include <QStringList>
5 #include <QDateTime>
6 
7 #include <vector>
8 
9 #include "mythtvexp.h"
10 
11 class ProgramInfo;
12 class RemoteEncoder;
13 class InputInfo;
14 
17 {
18  public:
19  uint id {0};
20  bool isRecording {false};
21  QString channame;
22  QString title;
23  QString subtitle;
24  QDateTime startTime;
25  QDateTime endTime;
26 };
27 
31  uint inputid, const ProgramInfo *pginfo, std::chrono::seconds secsleft, bool hasLater);
32 MTV_PUBLIC bool RemoteStopLiveTV(uint inputid);
33 MTV_PUBLIC bool RemoteStopRecording(uint inputid);
34 MTV_PUBLIC void RemoteStopRecording(const ProgramInfo *pginfo);
35 MTV_PUBLIC void RemoteCancelNextRecording(uint inputid, bool cancel);
36 std::vector<InputInfo>
37 RemoteRequestFreeInputInfo(uint excluded_input);
42 (const QStringList &qualifiedRecorders, uint excluded_input);
45 MTV_PUBLIC std::vector<uint>
46 RemoteRequestFreeRecorderList(uint excluded_input);
47 MTV_PUBLIC std::vector<uint>
48 RemoteRequestFreeInputList(uint excluded_input);
49 MTV_PUBLIC bool RemoteIsBusy(uint inputid, InputInfo &busy_input);
50 
52  std::vector<TunerStatus> *tunerList = nullptr, bool list_inactive = false);
53 
54 #endif // TV_REMOTE_UTIL_H
55 
56 /* vim: set expandtab tabstop=4 shiftwidth=4: */
RemoteRequestFreeRecorderList
MTV_PUBLIC std::vector< uint > RemoteRequestFreeRecorderList(uint excluded_input)
Definition: tvremoteutil.cpp:226
TunerStatus::title
QString title
Definition: tvremoteutil.h:22
RemoteGetFlags
MTV_PUBLIC uint RemoteGetFlags(uint inputid)
Definition: tvremoteutil.cpp:12
mythtvexp.h
RemoteGetState
MTV_PUBLIC uint RemoteGetState(uint inputid)
Definition: tvremoteutil.cpp:30
TunerStatus::endTime
QDateTime endTime
Definition: tvremoteutil.h:25
RemoteRequestFreeInputList
MTV_PUBLIC std::vector< uint > RemoteRequestFreeInputList(uint excluded_input)
Definition: tvremoteutil.cpp:244
RemoteEncoder
Definition: remoteencoder.h:24
TunerStatus::channame
QString channame
Definition: tvremoteutil.h:21
RemoteStopRecording
MTV_PUBLIC bool RemoteStopRecording(uint inputid)
Definition: tvremoteutil.cpp:97
RemoteGetFreeRecorderCount
MTV_PUBLIC int RemoteGetFreeRecorderCount(void)
Definition: tvremoteutil.cpp:167
TunerStatus
recording status stuff
Definition: tvremoteutil.h:16
RemoteIsBusy
MTV_PUBLIC bool RemoteIsBusy(uint inputid, InputInfo &busy_input)
Definition: tvremoteutil.cpp:361
RemoteStopLiveTV
MTV_PUBLIC bool RemoteStopLiveTV(uint inputid)
Definition: tvremoteutil.cpp:75
uint
unsigned int uint
Definition: compat.h:140
RemoteRequestFreeRecorderFromList
MTV_PUBLIC RemoteEncoder * RemoteRequestFreeRecorderFromList(const QStringList &qualifiedRecorders, uint excluded_input)
Definition: tvremoteutil.cpp:263
RemoteCancelNextRecording
MTV_PUBLIC void RemoteCancelNextRecording(uint inputid, bool cancel)
Definition: tvremoteutil.cpp:127
RemoteRecordPending
MTV_PUBLIC bool RemoteRecordPending(uint inputid, const ProgramInfo *pginfo, std::chrono::seconds secsleft, bool hasLater)
Definition: tvremoteutil.cpp:49
MTV_PUBLIC
#define MTV_PUBLIC
Definition: mythtvexp.h:15
ProgramInfo
Holds information on recordings and videos.
Definition: programinfo.h:67
RemoteRequestRecorder
MTV_PUBLIC RemoteEncoder * RemoteRequestRecorder(void)
Definition: tvremoteutil.cpp:290
RemoteGetExistingRecorder
MTV_PUBLIC RemoteEncoder * RemoteGetExistingRecorder(const ProgramInfo *pginfo)
Definition: tvremoteutil.cpp:311
RemoteRequestFreeInputInfo
std::vector< InputInfo > RemoteRequestFreeInputInfo(uint excluded_input)
Definition: tvremoteutil.cpp:136
InputInfo
Definition: inputinfo.h:14
TunerStatus::startTime
QDateTime startTime
Definition: tvremoteutil.h:24
TunerStatus::isRecording
bool isRecording
Definition: tvremoteutil.h:20
RemoteGetRecordingStatus
MTV_PUBLIC bool RemoteGetRecordingStatus(std::vector< TunerStatus > *tunerList=nullptr, bool list_inactive=false)
Definition: tvremoteutil.cpp:399
RemoteRequestNextFreeRecorder
MTV_PUBLIC RemoteEncoder * RemoteRequestNextFreeRecorder(int curr)
Definition: tvremoteutil.cpp:179
TunerStatus::subtitle
QString subtitle
Definition: tvremoteutil.h:23