vdr  2.2.0
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
cSVDRP Class Reference

#include <svdrp.h>

Public Member Functions

 cSVDRP (int Port)
 
 ~cSVDRP ()
 
bool HasConnection (void)
 
bool Process (void)
 

Static Public Member Functions

static void SetGrabImageDir (const char *GrabImageDir)
 

Private Member Functions

void Close (bool SendReply=false, bool Timeout=false)
 
bool Send (const char *s, int length=-1)
 
void Reply (int Code, const char *fmt,...) __attribute__((format(printf
 
void void PrintHelpTopics (const char **hp)
 
void CmdCHAN (const char *Option)
 
void CmdCLRE (const char *Option)
 
void CmdCPYR (const char *Option)
 
void CmdDELC (const char *Option)
 
void CmdDELR (const char *Option)
 
void CmdDELT (const char *Option)
 
void CmdEDIT (const char *Option)
 
void CmdGRAB (const char *Option)
 
void CmdHELP (const char *Option)
 
void CmdHITK (const char *Option)
 
void CmdLSTC (const char *Option)
 
void CmdLSTE (const char *Option)
 
void CmdLSTR (const char *Option)
 
void CmdLSTT (const char *Option)
 
void CmdMESG (const char *Option)
 
void CmdMODC (const char *Option)
 
void CmdMODT (const char *Option)
 
void CmdMOVC (const char *Option)
 
void CmdMOVR (const char *Option)
 
void CmdNEWC (const char *Option)
 
void CmdNEWT (const char *Option)
 
void CmdNEXT (const char *Option)
 
void CmdPLAY (const char *Option)
 
void CmdPLUG (const char *Option)
 
void CmdPUTE (const char *Option)
 
void CmdREMO (const char *Option)
 
void CmdSCAN (const char *Option)
 
void CmdSTAT (const char *Option)
 
void CmdUPDT (const char *Option)
 
void CmdUPDR (const char *Option)
 
void CmdVOLU (const char *Option)
 
void Execute (char *Cmd)
 

Private Attributes

cSocket socket
 
cFile file
 
cRecordings recordings
 
cPUTEhandlerPUTEhandler
 
int numChars
 
int length
 
char * cmdLine
 
time_t lastActivity
 

Static Private Attributes

static char * grabImageDir = NULL
 

Detailed Description

Definition at line 42 of file svdrp.h.

Constructor & Destructor Documentation

cSVDRP::cSVDRP ( int  Port)

Definition at line 394 of file svdrp.c.

References cmdLine, isyslog, lastActivity, length, MALLOC, numChars, and PUTEhandler.

cSVDRP::~cSVDRP ( )

Definition at line 405 of file svdrp.c.

References Close(), and cmdLine.

Member Function Documentation

void cSVDRP::Close ( bool  SendReply = false,
bool  Timeout = false 
)
private

Definition at line 411 of file svdrp.c.

References cFile::Close(), DELETENULL(), file, cFile::IsOpen(), isyslog, PUTEhandler, and Reply().

Referenced by Execute(), Process(), Send(), and ~cSVDRP().

void cSVDRP::CmdCHAN ( const char *  Option)
private
void cSVDRP::CmdCLRE ( const char *  Option)
private
void cSVDRP::CmdCPYR ( const char *  Option)
private
void cSVDRP::CmdDELC ( const char *  Option)
private
void cSVDRP::CmdDELR ( const char *  Option)
private
void cSVDRP::CmdDELT ( const char *  Option)
private
void cSVDRP::CmdEDIT ( const char *  Option)
private
void cSVDRP::CmdGRAB ( const char *  Option)
private
void cSVDRP::CmdHELP ( const char *  Option)
private
void cSVDRP::CmdHITK ( const char *  Option)
private

Definition at line 983 of file svdrp.c.

References cRemote::Enabled(), cKey::FromString(), kNone, cRemote::Put(), Reply(), and cKey::ToString().

Referenced by Execute().

void cSVDRP::CmdLSTC ( const char *  Option)
private
void cSVDRP::CmdLSTE ( const char *  Option)
private
void cSVDRP::CmdLSTR ( const char *  Option)
private
void cSVDRP::CmdLSTT ( const char *  Option)
private

Definition at line 1207 of file svdrp.c.

References cListBase::Count(), cList< T >::Get(), cListObject::Index(), isnumber(), Reply(), Timers, and cTimer::ToText().

Referenced by Execute().

void cSVDRP::CmdMESG ( const char *  Option)
private

Definition at line 1249 of file svdrp.c.

References isyslog, mtInfo, cSkins::QueueMessage(), Reply(), and Skins.

Referenced by Execute().

void cSVDRP::CmdMODC ( const char *  Option)
private
void cSVDRP::CmdMODT ( const char *  Option)
private
void cSVDRP::CmdMOVC ( const char *  Option)
private
void cSVDRP::CmdMOVR ( const char *  Option)
private
void cSVDRP::CmdNEWC ( const char *  Option)
private
void cSVDRP::CmdNEWT ( const char *  Option)
private
void cSVDRP::CmdNEXT ( const char *  Option)
private
void cSVDRP::CmdPLAY ( const char *  Option)
private
void cSVDRP::CmdPLUG ( const char *  Option)
private
void cSVDRP::CmdPUTE ( const char *  Option)
private
void cSVDRP::CmdREMO ( const char *  Option)
private

Definition at line 1629 of file svdrp.c.

References cRemote::Enabled(), Reply(), and cRemote::SetEnabled().

Referenced by Execute().

void cSVDRP::CmdSCAN ( const char *  Option)
private

Definition at line 1647 of file svdrp.c.

References EITScanner, cEITScanner::ForceScan(), and Reply().

Referenced by Execute().

void cSVDRP::CmdSTAT ( const char *  Option)
private

Definition at line 1653 of file svdrp.c.

References Reply(), and cVideoDirectory::VideoDiskSpace().

Referenced by Execute().

void cSVDRP::CmdUPDR ( const char *  Option)
private

Definition at line 1700 of file svdrp.c.

References Recordings, Reply(), and cRecordings::Update().

Referenced by Execute().

void cSVDRP::CmdUPDT ( const char *  Option)
private
void cSVDRP::CmdVOLU ( const char *  Option)
private
void cSVDRP::Execute ( char *  Cmd)
private
bool cSVDRP::HasConnection ( void  )
inline

Definition at line 92 of file svdrp.h.

References cFile::IsOpen().

Referenced by cInterface::HasSVDRPConnection().

void cSVDRP::PrintHelpTopics ( const char **  hp)
private

Definition at line 466 of file svdrp.c.

References GetHelpTopic(), MAXHELPTOPIC, and Reply().

Referenced by CmdHELP(), and CmdPLUG().

bool cSVDRP::Process ( void  )
void cSVDRP::Reply ( int  Code,
const char *  fmt,
  ... 
)
private
bool cSVDRP::Send ( const char *  s,
int  length = -1 
)
private

Definition at line 426 of file svdrp.c.

References Close(), file, LOG_ERROR, and safe_write().

Referenced by Reply().

void cSVDRP::SetGrabImageDir ( const char *  GrabImageDir)
static

Definition at line 1862 of file svdrp.c.

References grabImageDir.

Referenced by main().

Member Data Documentation

char* cSVDRP::cmdLine
private

Definition at line 50 of file svdrp.h.

Referenced by cSVDRP(), Process(), and ~cSVDRP().

cFile cSVDRP::file
private

Definition at line 45 of file svdrp.h.

Referenced by Close(), CmdLSTE(), CmdLSTR(), Process(), Reply(), and Send().

char * cSVDRP::grabImageDir = NULL
staticprivate

Definition at line 52 of file svdrp.h.

Referenced by CmdGRAB(), GetHelpPage(), and SetGrabImageDir().

time_t cSVDRP::lastActivity
private

Definition at line 51 of file svdrp.h.

Referenced by cSVDRP(), and Process().

int cSVDRP::length
private

Definition at line 49 of file svdrp.h.

Referenced by cSVDRP(), and Process().

int cSVDRP::numChars
private

Definition at line 48 of file svdrp.h.

Referenced by cSVDRP(), and Process().

cPUTEhandler* cSVDRP::PUTEhandler
private

Definition at line 47 of file svdrp.h.

Referenced by Close(), CmdPUTE(), cSVDRP(), and Execute().

cRecordings cSVDRP::recordings
private

Definition at line 46 of file svdrp.h.

Referenced by CmdCPYR(), CmdDELR(), CmdEDIT(), CmdLSTR(), CmdMOVR(), and CmdPLAY().

cSocket cSVDRP::socket
private

Definition at line 44 of file svdrp.h.

Referenced by Process().


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