22 #ifndef MYTHPROTORECORDER_H 23 #define MYTHPROTORECORDER_H 25 #include "mythprotoplayback.h" 31 typedef MYTH_SHARED_PTR<ProtoRecorder> ProtoRecorderPtr;
36 ProtoRecorder(
int num,
const std::string& server,
unsigned port);
40 bool IsPlaying()
const;
41 bool IsTunable(
const Channel& channel);
42 void DoneRecordingCallback();
44 bool SpawnLiveTV(
const std::string& chainid,
const std::string& channum)
46 return SpawnLiveTV75(chainid, channum);
50 return StopLiveTV75();
52 bool CheckChannel(
const std::string& channum)
54 return CheckChannel75(channum);
56 ProgramPtr GetCurrentRecording()
58 return GetCurrentRecording75();
60 int64_t GetFilePosition()
62 return GetFilePosition75();
64 CardInputListPtr GetFreeInputs()
66 if (m_protoVersion >= 91)
return GetFreeInputs91();
67 if (m_protoVersion >= 90)
return GetFreeInputs90();
68 if (m_protoVersion >= 89)
return GetFreeInputs89();
69 if (m_protoVersion >= 87)
return GetFreeInputs87();
70 if (m_protoVersion >= 81)
return GetFreeInputs81();
71 if (m_protoVersion >= 79)
return GetFreeInputs79();
72 return GetFreeInputs75();
74 bool IsLiveRecording();
75 bool SetLiveRecording(
bool keep)
77 bool ret = SetLiveRecording75(keep);
79 m_liveRecording = keep;
82 bool FinishRecording()
84 return FinishRecording75();
89 volatile bool m_playing;
90 volatile bool m_liveRecording;
92 bool SpawnLiveTV75(
const std::string& chainid,
const std::string& channum);
94 bool CheckChannel75(
const std::string& channum);
95 ProgramPtr GetCurrentRecording75();
96 int64_t GetFilePosition75();
97 CardInputListPtr GetFreeInputs75();
98 CardInputListPtr GetFreeInputs79();
99 CardInputListPtr GetFreeInputs81();
100 CardInputListPtr GetFreeInputs87();
101 CardInputListPtr GetFreeInputs89();
102 CardInputListPtr GetFreeInputs90();
103 CardInputListPtr GetFreeInputs91();
104 bool SetLiveRecording75(
bool keep);
105 bool FinishRecording75();
This is the main namespace that encloses all public classes.