22 #ifndef MYTHPROTOMONITOR_H 23 #define MYTHPROTOMONITOR_H 25 #include "mythprotobase.h" 26 #include "mythprotorecorder.h" 30 #define PROTO_MONITOR_RCVBUF 64000 39 ProtoMonitor(
const std::string& server,
unsigned port,
bool frontend);
43 virtual bool IsOpen();
45 ProtoRecorderPtr GetRecorderFromNum(
int rnum)
47 return GetRecorderFromNum75(rnum);
49 bool QueryFreeSpaceSummary(int64_t *total, int64_t *used)
51 return QueryFreeSpaceSummary75(total, used);
53 std::string GetSetting(
const std::string& hostname,
const std::string& setting)
55 return GetSetting75(hostname, setting);
57 bool SetSetting(
const std::string& hostname,
const std::string& setting,
const std::string& value)
59 return SetSetting75(hostname, setting, value);
61 bool QueryGenpixmap(
const Program& program)
63 return QueryGenpixmap75(program);
65 bool DeleteRecording(
const Program& program,
bool force =
false,
bool forget =
false)
67 return DeleteRecording75(program, force, forget);
69 bool UndeleteRecording(
const Program& program)
71 return UndeleteRecording75(program);
73 bool StopRecording(
const Program& program)
75 return StopRecording75(program);
77 bool CancelNextRecording(
int rnum,
bool cancel)
79 return CancelNextRecording75(rnum, cancel);
81 StorageGroupFilePtr QuerySGFile(
const std::string& hostname,
const std::string& sgname,
const std::string& filename)
83 return QuerySGFile75(hostname, sgname, filename);
85 MarkListPtr GetCutList(
const Program& program)
87 return GetCutList75(program);
89 MarkListPtr GetCommBreakList(
const Program& program)
91 return GetCommBreakList75(program);
95 return BlockShutdown75();
99 return AllowShutdown75();
108 if (m_protoVersion >= 91)
return GetFreeInputs91(rnum);
109 if (m_protoVersion >= 90)
return GetFreeInputs90(rnum);
110 if (m_protoVersion >= 89)
return GetFreeInputs89(rnum);
111 if (m_protoVersion >= 87)
return GetFreeInputs87(rnum);
112 if (m_protoVersion >= 81)
return GetFreeInputs81();
113 if (m_protoVersion >= 79)
return GetFreeInputs79();
114 return GetFreeInputs75();
122 ProtoRecorderPtr GetRecorderFromNum75(
int rnum);
123 bool QueryFreeSpaceSummary75(int64_t *total, int64_t *used);
124 std::string GetSetting75(
const std::string& hostname,
const std::string& setting);
125 bool SetSetting75(
const std::string& hostname,
const std::string& setting,
const std::string& value);
126 bool QueryGenpixmap75(
const Program& program);
127 bool DeleteRecording75(
const Program& program,
bool force,
bool forget);
128 bool UndeleteRecording75(
const Program& program);
129 bool StopRecording75(
const Program& program);
130 bool CancelNextRecording75(
int rnum,
bool cancel);
131 StorageGroupFilePtr QuerySGFile75(
const std::string& hostname,
const std::string& sgname,
const std::string& filename);
132 MarkListPtr GetCutList75(
const Program& program);
133 MarkListPtr GetCommBreakList75(
const Program& program);
134 bool BlockShutdown75();
135 bool AllowShutdown75();
136 std::vector<int> GetFreeCardIdList75();
137 CardInputListPtr GetFreeInputs75();
138 CardInputListPtr GetFreeInputs79();
139 CardInputListPtr GetFreeInputs81();
140 CardInputListPtr GetFreeInputs87(
int rnum);
141 CardInputListPtr GetFreeInputs89(
int rnum);
142 CardInputListPtr GetFreeInputs90(
int rnum);
143 CardInputListPtr GetFreeInputs91(
int rnum);
CardInputListPtr GetFreeInputs(int rnum=0)
Asks the backend for a list of free inputs. A free input is one that is connected but not busy...
This is the main namespace that encloses all public classes.