CPPMyth
Library to interoperate with MythTV server
Loading...
Searching...
No Matches
Myth::ProtoRecorder Class Reference
Inheritance diagram for Myth::ProtoRecorder:
Collaboration diagram for Myth::ProtoRecorder:

Public Member Functions

 ProtoRecorder (int num, const std::string &server, unsigned port)
int GetNum () const
bool IsPlaying () const
bool IsTunable (const Channel &channel)
void DoneRecordingCallback ()
bool SpawnLiveTV (const std::string &chainid, const std::string &channum)
bool StopLiveTV ()
bool CheckChannel (const std::string &channum)
ProgramPtr GetCurrentRecording ()
int64_t GetFilePosition ()
CardInputListPtr GetFreeInputs ()
bool IsLiveRecording ()
bool SetLiveRecording (bool keep)
bool FinishRecording ()
Public Member Functions inherited from Myth::ProtoPlayback
 ProtoPlayback (const std::string &server, unsigned port)
virtual bool Open ()
virtual void Close ()
virtual bool IsOpen ()
void TransferDone (ProtoTransfer &transfer)
bool TransferIsOpen (ProtoTransfer &transfer)
int TransferRequestBlock (ProtoTransfer &transfer, void *buffer, unsigned n)
int64_t TransferSeek (ProtoTransfer &transfer, int64_t offset, WHENCE_t whence)
Public Member Functions inherited from Myth::ProtoBase
 ProtoBase (const std::string &server, unsigned port)
virtual unsigned GetProtoVersion () const
virtual std::string GetServer () const
virtual unsigned GetPort () const
virtual int GetSocketErrNo () const
virtual int GetSocket () const
virtual bool HasHanging () const
virtual void CleanHanging ()
virtual ERROR_t GetProtoError () const

Private Member Functions

bool SpawnLiveTV75 (const std::string &chainid, const std::string &channum)
bool StopLiveTV75 ()
bool CheckChannel75 (const std::string &channum)
ProgramPtr GetCurrentRecording75 ()
int64_t GetFilePosition75 ()
CardInputListPtr GetFreeInputs75 ()
CardInputListPtr GetFreeInputs79 ()
CardInputListPtr GetFreeInputs81 ()
CardInputListPtr GetFreeInputs87 ()
CardInputListPtr GetFreeInputs89 ()
CardInputListPtr GetFreeInputs90 ()
CardInputListPtr GetFreeInputs91 ()
bool SetLiveRecording75 (bool keep)
bool FinishRecording75 ()

Private Attributes

int m_num
volatile bool m_playing
volatile bool m_liveRecording

Additional Inherited Members

Public Types inherited from Myth::ProtoBase
enum  ERROR_t { ERROR_NO_ERROR = 0 , ERROR_SERVER_UNREACHABLE , ERROR_SOCKET_ERROR , ERROR_UNKNOWN_VERSION }
Protected Member Functions inherited from Myth::ProtoBase
bool OpenConnection (int rcvbuf)
void HangException ()
bool SendCommand (const char *cmd, bool feedback=true)
size_t GetMessageLength () const
bool ReadField (std::string &field)
bool IsMessageOK (const std::string &field) const
size_t FlushMessage ()
bool RcvMessageLength ()
ProgramPtr RcvProgramInfo ()
void MakeProgramInfo (const Program &program, std::string &msg)
Protected Attributes inherited from Myth::ProtoBase
OS::Latch * m_latch
TcpSocket * m_socket
unsigned m_protoVersion
std::string m_server
unsigned m_port
bool m_hang
 Connection hang: while true allow retry.
bool m_tainted
 Connection has hung since last reset.
size_t m_msgLength
size_t m_msgConsumed

Detailed Description

Definition at line 33 of file mythprotorecorder.h.

Constructor & Destructor Documentation

◆ ProtoRecorder()

ProtoRecorder::ProtoRecorder ( int num,
const std::string & server,
unsigned port )

Definition at line 33 of file mythprotorecorder.cpp.

◆ ~ProtoRecorder()

ProtoRecorder::~ProtoRecorder ( )
virtual

Definition at line 42 of file mythprotorecorder.cpp.

Member Function Documentation

◆ CheckChannel()

bool Myth::ProtoRecorder::CheckChannel ( const std::string & channum)
inline

Definition at line 52 of file mythprotorecorder.h.

◆ CheckChannel75()

bool ProtoRecorder::CheckChannel75 ( const std::string & channum)
private

Definition at line 160 of file mythprotorecorder.cpp.

◆ DoneRecordingCallback()

void ProtoRecorder::DoneRecordingCallback ( )

Definition at line 95 of file mythprotorecorder.cpp.

◆ FinishRecording()

bool Myth::ProtoRecorder::FinishRecording ( )
inline

Definition at line 82 of file mythprotorecorder.h.

◆ FinishRecording75()

bool ProtoRecorder::FinishRecording75 ( )
private

Definition at line 599 of file mythprotorecorder.cpp.

◆ GetCurrentRecording()

ProgramPtr Myth::ProtoRecorder::GetCurrentRecording ( )
inline

Definition at line 56 of file mythprotorecorder.h.

◆ GetCurrentRecording75()

ProgramPtr ProtoRecorder::GetCurrentRecording75 ( )
private

Definition at line 187 of file mythprotorecorder.cpp.

◆ GetFilePosition()

int64_t Myth::ProtoRecorder::GetFilePosition ( )
inline

Definition at line 60 of file mythprotorecorder.h.

◆ GetFilePosition75()

int64_t ProtoRecorder::GetFilePosition75 ( )
private

Definition at line 214 of file mythprotorecorder.cpp.

◆ GetFreeInputs()

CardInputListPtr Myth::ProtoRecorder::GetFreeInputs ( )
inline

Definition at line 64 of file mythprotorecorder.h.

◆ GetFreeInputs75()

CardInputListPtr ProtoRecorder::GetFreeInputs75 ( )
private

Definition at line 243 of file mythprotorecorder.cpp.

◆ GetFreeInputs79()

CardInputListPtr ProtoRecorder::GetFreeInputs79 ( )
private

Definition at line 282 of file mythprotorecorder.cpp.

◆ GetFreeInputs81()

CardInputListPtr ProtoRecorder::GetFreeInputs81 ( )
private

Definition at line 329 of file mythprotorecorder.cpp.

◆ GetFreeInputs87()

CardInputListPtr ProtoRecorder::GetFreeInputs87 ( )
private

Definition at line 378 of file mythprotorecorder.cpp.

◆ GetFreeInputs89()

CardInputListPtr ProtoRecorder::GetFreeInputs89 ( )
private

Definition at line 423 of file mythprotorecorder.cpp.

◆ GetFreeInputs90()

CardInputListPtr ProtoRecorder::GetFreeInputs90 ( )
private

Definition at line 470 of file mythprotorecorder.cpp.

◆ GetFreeInputs91()

CardInputListPtr ProtoRecorder::GetFreeInputs91 ( )
private

Definition at line 518 of file mythprotorecorder.cpp.

◆ GetNum()

int ProtoRecorder::GetNum ( ) const

Definition at line 49 of file mythprotorecorder.cpp.

◆ IsLiveRecording()

bool ProtoRecorder::IsLiveRecording ( )

Definition at line 562 of file mythprotorecorder.cpp.

◆ IsPlaying()

bool ProtoRecorder::IsPlaying ( ) const

Definition at line 54 of file mythprotorecorder.cpp.

◆ IsTunable()

bool ProtoRecorder::IsTunable ( const Channel & channel)

Definition at line 64 of file mythprotorecorder.cpp.

◆ SetLiveRecording()

bool Myth::ProtoRecorder::SetLiveRecording ( bool keep)
inline

Definition at line 75 of file mythprotorecorder.h.

◆ SetLiveRecording75()

bool ProtoRecorder::SetLiveRecording75 ( bool keep)
private

Definition at line 568 of file mythprotorecorder.cpp.

◆ SpawnLiveTV()

bool Myth::ProtoRecorder::SpawnLiveTV ( const std::string & chainid,
const std::string & channum )
inline

Definition at line 44 of file mythprotorecorder.h.

◆ SpawnLiveTV75()

bool ProtoRecorder::SpawnLiveTV75 ( const std::string & chainid,
const std::string & channum )
private

Definition at line 102 of file mythprotorecorder.cpp.

◆ StopLiveTV()

bool Myth::ProtoRecorder::StopLiveTV ( )
inline

Definition at line 48 of file mythprotorecorder.h.

◆ StopLiveTV75()

bool ProtoRecorder::StopLiveTV75 ( )
private

Definition at line 135 of file mythprotorecorder.cpp.

Field Documentation

◆ m_liveRecording

volatile bool Myth::ProtoRecorder::m_liveRecording
private

Definition at line 90 of file mythprotorecorder.h.

◆ m_num

int Myth::ProtoRecorder::m_num
private

Definition at line 88 of file mythprotorecorder.h.

◆ m_playing

volatile bool Myth::ProtoRecorder::m_playing
private

Definition at line 89 of file mythprotorecorder.h.


The documentation for this class was generated from the following files: