Home

Dokumentation

Impressum

Dokumentation VDR
 

Main Page   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields   Globals  

cSVDRP Class Reference

#include <svdrp.h>

Collaboration diagram for cSVDRP:

Collaboration graph
[legend]

Detailed Description

SVDRP handling.

Definition at line 45 of file svdrp.h.

Public Methods

 cSVDRP (int Port)
 ~cSVDRP ()
bool HasConnection (void)
bool Process (void)
char * GetMessage (void)

Private Methods

void Close (bool Timeout=false)
bool Send (const char *s, int length=-1)
void Reply (int Code, const char *fmt,...)
void CmdCHAN (const char *Option)
void CmdCLRE (const char *Option)
void CmdDELC (const char *Option)
void CmdDELR (const char *Option)
void CmdDELT (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 CmdMOVT (const char *Option)
void CmdNEWC (const char *Option)
void CmdNEWT (const char *Option)
void CmdNEXT (const char *Option)
void CmdPUTE (const char *Option)
void CmdUPDT (const char *Option)
void CmdVOLU (const char *Option)
void Execute (char *Cmd)

Private Attributes

cSocket socket
cFile file
cRecordings Recordings
cPUTEhandlerPUTEhandler
uint numChars
char cmdLine [MAXPARSEBUFFER]
char * message
time_t lastActivity


Constructor & Destructor Documentation

cSVDRP::cSVDRP int    Port
 

Definition at line 317 of file svdrp.c.

References isyslog, lastActivity, message, numChars, and PUTEhandler.

cSVDRP::~cSVDRP  
 

Definition at line 327 of file svdrp.c.

References Close().


Member Function Documentation

void cSVDRP::Close bool    Timeout = false [private]
 

Definition at line 333 of file svdrp.c.

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

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

void cSVDRP::CmdCHAN const char *    Option [private]
 

Definition at line 390 of file svdrp.c.

References cDevice::CurrentChannel(), isnumber(), cChannel::Name(), cChannel::Number(), cDevice::PrimaryDevice(), Reply(), and cDevice::SwitchChannel().

Referenced by Execute().

void cSVDRP::CmdCLRE const char *    Option [private]
 

Definition at line 452 of file svdrp.c.

References cSIProcessor::Clear(), and Reply().

Referenced by Execute().

void cSVDRP::CmdDELC const char *    Option [private]
 

Definition at line 458 of file svdrp.c.

References Reply().

Referenced by Execute().

void cSVDRP::CmdDELR const char *    Option [private]
 

Definition at line 464 of file svdrp.c.

References cListBase::Count(), cRecording::Delete(), cList< cRecording >::Get(), isnumber(), Recordings, and Reply().

Referenced by Execute().

void cSVDRP::CmdDELT const char *    Option [private]
 

Definition at line 485 of file svdrp.c.

References isnumber(), isyslog, cTimer::Recording(), and Reply().

Referenced by Execute().

void cSVDRP::CmdGRAB const char *    Option [private]
 

Definition at line 510 of file svdrp.c.

References cDevice::GrabImage(), isnumber(), cDevice::PrimaryDevice(), and Reply().

Referenced by Execute().

void cSVDRP::CmdHELP const char *    Option [private]
 

Definition at line 571 of file svdrp.c.

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

Referenced by Execute().

void cSVDRP::CmdHITK const char *    Option [private]
 

Definition at line 610 of file svdrp.c.

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

Referenced by Execute().

void cSVDRP::CmdLSTC const char *    Option [private]
 

Definition at line 630 of file svdrp.c.

References isnumber(), cChannel::Name(), cChannel::Number(), Reply(), and cChannel::ToText().

Referenced by Execute().

void cSVDRP::CmdLSTE const char *    Option [private]
 

Definition at line 679 of file svdrp.c.

References cSchedules::Dump(), Reply(), and cSIProcessor::Schedules().

Referenced by Execute().

void cSVDRP::CmdLSTR const char *    Option [private]
 

Definition at line 698 of file svdrp.c.

References cList< cRecording >::First(), cList< cRecording >::Get(), cListObject::Index(), isnumber(), cList< cRecording >::Last(), cRecordings::Load(), cList< cRecording >::Next(), Recordings, Reply(), strreplace(), cRecording::Summary(), and cRecording::Title().

Referenced by Execute().

void cSVDRP::CmdLSTT const char *    Option [private]
 

Definition at line 730 of file svdrp.c.

References cListObject::Index(), isnumber(), Reply(), and cTimer::ToText().

Referenced by Execute().

void cSVDRP::CmdMESG const char *    Option [private]
 

Definition at line 756 of file svdrp.c.

References isyslog, message, and Reply().

Referenced by Execute().

void cSVDRP::CmdMODC const char *    Option [private]
 

Definition at line 770 of file svdrp.c.

References isyslog, cChannel::Number(), cChannel::Parse(), Reply(), skipspace(), and cChannel::ToText().

Referenced by Execute().

void cSVDRP::CmdMODT const char *    Option [private]
 

Definition at line 804 of file svdrp.c.

References cTimer::Active(), cListObject::Index(), isyslog, cTimer::Parse(), Reply(), cTimer::Save(), cTimer::SetActive(), skipspace(), and cTimer::ToText().

Referenced by Execute().

void cSVDRP::CmdMOVC const char *    Option [private]
 

Definition at line 837 of file svdrp.c.

References Reply().

Referenced by Execute().

void cSVDRP::CmdMOVT const char *    Option [private]
 

Definition at line 843 of file svdrp.c.

References Reply().

Referenced by Execute().

void cSVDRP::CmdNEWC const char *    Option [private]
 

Definition at line 849 of file svdrp.c.

References isyslog, cChannel::Number(), cChannel::Parse(), Reply(), and cChannel::ToText().

Referenced by Execute().

void cSVDRP::CmdNEWT const char *    Option [private]
 

Definition at line 873 of file svdrp.c.

References cListObject::Index(), isyslog, cTimer::Parse(), Reply(), and cTimer::ToText().

Referenced by Execute().

void cSVDRP::CmdNEXT const char *    Option [private]
 

Definition at line 897 of file svdrp.c.

References cListObject::Index(), Reply(), and cTimer::StartTime().

Referenced by Execute().

void cSVDRP::CmdPUTE const char *    Option [private]
 

Definition at line 919 of file svdrp.c.

References DELETENULL, cPUTEhandler::Message(), PUTEhandler, Reply(), and cPUTEhandler::Status().

Referenced by Execute().

void cSVDRP::CmdUPDT const char *    Option [private]
 

Definition at line 928 of file svdrp.c.

References cListObject::Index(), isyslog, cTimer::Parse(), Reply(), and cTimer::ToText().

Referenced by Execute().

void cSVDRP::CmdVOLU const char *    Option [private]
 

Definition at line 956 of file svdrp.c.

References cDevice::IsMute(), isnumber(), cDevice::PrimaryDevice(), Reply(), cDevice::SetVolume(), and cDevice::ToggleMute().

Referenced by Execute().

void cSVDRP::Execute char *    Cmd [private]
 

Definition at line 980 of file svdrp.c.

References Close(), CMD, CmdCHAN(), CmdCLRE(), CmdDELC(), CmdDELR(), CmdDELT(), CmdGRAB(), CmdHELP(), CmdHITK(), CmdLSTC(), CmdLSTE(), CmdLSTR(), CmdLSTT(), CmdMESG(), CmdMODC(), CmdMODT(), CmdMOVC(), CmdMOVT(), CmdNEWC(), CmdNEWT(), CmdNEXT(), CmdPUTE(), CmdUPDT(), CmdVOLU(), DELETENULL, cPUTEhandler::Message(), cPUTEhandler::Process(), PUTEhandler, Reply(), skipspace(), and cPUTEhandler::Status().

Referenced by Process().

char * cSVDRP::GetMessage void   
 

Definition at line 1092 of file svdrp.c.

References message.

Referenced by cInterface::GetKey().

bool cSVDRP::HasConnection void    [inline]
 

Definition at line 85 of file svdrp.h.

References cFile::IsOpen().

Referenced by cInterface::HasSVDRPConnection().

bool cSVDRP::Process void   
 

Definition at line 1026 of file svdrp.c.

References cSocket::Accept(), Close(), cmdLine, esyslog, Execute(), file, cFile::IsOpen(), isyslog, lastActivity, numChars, cFile::Open(), cFile::Ready(), Reply(), safe_read(), and socket.

Referenced by cInterface::GetKey().

void cSVDRP::Reply int    Code,
const char *    fmt,
...   
[private]
 

Definition at line 358 of file svdrp.c.

References Close(), esyslog, file, cFile::IsOpen(), and Send().

Referenced by Close(), CmdCHAN(), CmdCLRE(), CmdDELC(), CmdDELR(), CmdDELT(), CmdGRAB(), CmdHELP(), CmdHITK(), CmdLSTC(), CmdLSTE(), CmdLSTR(), CmdLSTT(), CmdMESG(), CmdMODC(), CmdMODT(), CmdMOVC(), CmdMOVT(), CmdNEWC(), CmdNEWT(), CmdNEXT(), CmdPUTE(), CmdUPDT(), CmdVOLU(), Execute(), and Process().

bool cSVDRP::Send const char *    s,
int    length = -1
[private]
 

Definition at line 346 of file svdrp.c.

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

Referenced by Reply().


Field Documentation

char cSVDRP::cmdLine[MAXPARSEBUFFER] [private]
 

Definition at line 52 of file svdrp.h.

Referenced by Process().

cFile cSVDRP::file [private]
 

Definition at line 48 of file svdrp.h.

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

time_t cSVDRP::lastActivity [private]
 

Definition at line 54 of file svdrp.h.

Referenced by cSVDRP(), and Process().

char* cSVDRP::message [private]
 

Definition at line 53 of file svdrp.h.

Referenced by CmdMESG(), cSVDRP(), and GetMessage().

uint cSVDRP::numChars [private]
 

Definition at line 51 of file svdrp.h.

Referenced by cSVDRP(), and Process().

cPUTEhandler* cSVDRP::PUTEhandler [private]
 

Definition at line 50 of file svdrp.h.

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

cRecordings cSVDRP::Recordings [private]
 

Definition at line 49 of file svdrp.h.

Referenced by CmdDELR(), and CmdLSTR().

cSocket cSVDRP::socket [private]
 

Definition at line 47 of file svdrp.h.

Referenced by Process().


The documentation for this class was generated from the following files:
Generated on Wed Feb 5 23:31:57 2003 for VDR by doxygen1.3-rc2