ZMClient Class Reference

#include <zmclient.h>

List of all members.

Public Member Functions

 ~ZMClient ()
bool connectToHost (const QString &hostname, unsigned int port)
bool connected (void)
bool checkProtoVersion (void)
void shutdown ()
void getServerStatus (QString &status, QString &cpuStat, QString &diskStat)
void getMonitorStatus (vector< Monitor * > *monitorList)
void getEventList (const QString &monitorName, bool oldestFirst, QString date, vector< Event * > *eventList)
void getEventFrame (Event *event, int frameNo, MythImage **image)
void getAnalyseFrame (Event *event, int frameNo, QImage &image)
int getLiveFrame (int monitorID, QString &status, unsigned char *buffer, int bufferSize)
void getFrameList (int eventID, vector< Frame * > *frameList)
void deleteEvent (int eventID)
void deleteEventList (vector< Event * > *eventList)
void getCameraList (QStringList &cameraList)
void getMonitorList (vector< Monitor * > *monitorList)
void getEventDates (const QString &monitorName, bool oldestFirst, QStringList &dateList)
void setMonitorFunction (const int monitorID, const QString &function, const int enabled)

Static Public Member Functions

static class ZMClientget (void)
static bool setupZMClient (void)

Protected Member Functions

 ZMClient ()

Static Protected Attributes

static bool m_server_unavailable = false
static class ZMClientm_zmclient = NULL

Private Slots

void restartConnection (void)

Private Member Functions

bool readData (unsigned char *data, int dataSize)
bool sendReceiveStringList (QStringList &strList)

Private Attributes

MythSocketm_socket
QMutex m_socketLock
QString m_hostname
uint m_port
bool m_bConnected
QTimer * m_retryTimer
bool m_zmclientReady

Detailed Description

Definition at line 16 of file zmclient.h.


Constructor & Destructor Documentation

ZMClient::ZMClient (  )  [protected]

Definition at line 25 of file zmclient.cpp.

ZMClient::~ZMClient (  ) 

Definition at line 240 of file zmclient.cpp.


Member Function Documentation

class ZMClient * ZMClient::get ( void   )  [static]
bool ZMClient::setupZMClient ( void   )  [static]

Definition at line 49 of file zmclient.cpp.

Referenced by checkConnection(), and mythplugin_run().

bool ZMClient::connectToHost ( const QString &  hostname,
unsigned int  port 
)

Definition at line 76 of file zmclient.cpp.

Referenced by restartConnection(), sendReceiveStringList(), and setupZMClient().

bool ZMClient::connected ( void   )  [inline]

Definition at line 34 of file zmclient.h.

bool ZMClient::checkProtoVersion ( void   ) 

Definition at line 187 of file zmclient.cpp.

Referenced by connectToHost().

void ZMClient::shutdown (  ) 

Definition at line 229 of file zmclient.cpp.

void ZMClient::getServerStatus ( QString &  status,
QString &  cpuStat,
QString &  diskStat 
)

Definition at line 254 of file zmclient.cpp.

void ZMClient::getMonitorStatus ( vector< Monitor * > *  monitorList  ) 

Definition at line 265 of file zmclient.cpp.

void ZMClient::getEventList ( const QString &  monitorName,
bool  oldestFirst,
QString  date,
vector< Event * > *  eventList 
)

Definition at line 296 of file zmclient.cpp.

void ZMClient::getEventFrame ( Event event,
int  frameNo,
MythImage **  image 
)

Definition at line 510 of file zmclient.cpp.

void ZMClient::getAnalyseFrame ( Event event,
int  frameNo,
QImage &  image 
)

Definition at line 553 of file zmclient.cpp.

int ZMClient::getLiveFrame ( int  monitorID,
QString &  status,
unsigned char *  buffer,
int  bufferSize 
)

Definition at line 591 of file zmclient.cpp.

Referenced by ZMLivePlayer::updateFrame().

void ZMClient::getFrameList ( int  eventID,
vector< Frame * > *  frameList 
)

Definition at line 379 of file zmclient.cpp.

void ZMClient::deleteEvent ( int  eventID  ) 

Definition at line 416 of file zmclient.cpp.

void ZMClient::deleteEventList ( vector< Event * > *  eventList  ) 

Definition at line 423 of file zmclient.cpp.

void ZMClient::getCameraList ( QStringList &  cameraList  ) 

Definition at line 635 of file zmclient.cpp.

void ZMClient::getMonitorList ( vector< Monitor * > *  monitorList  ) 

Definition at line 658 of file zmclient.cpp.

void ZMClient::getEventDates ( const QString &  monitorName,
bool  oldestFirst,
QStringList &  dateList 
)

Definition at line 342 of file zmclient.cpp.

void ZMClient::setMonitorFunction ( const int  monitorID,
const QString &  function,
const int  enabled 
)

Definition at line 708 of file zmclient.cpp.

void ZMClient::restartConnection ( void   )  [private, slot]

Definition at line 218 of file zmclient.cpp.

Referenced by ZMClient().

bool ZMClient::readData ( unsigned char *  data,
int  dataSize 
) [private]

Definition at line 449 of file zmclient.cpp.

Referenced by getAnalyseFrame(), getEventFrame(), and getLiveFrame().

bool ZMClient::sendReceiveStringList ( QStringList &  strList  )  [private]

Member Data Documentation

bool ZMClient::m_server_unavailable = false [static, protected]

Definition at line 23 of file zmclient.h.

Referenced by connectToHost(), get(), restartConnection(), and setupZMClient().

class ZMClient * ZMClient::m_zmclient = NULL [static, protected]

Definition at line 24 of file zmclient.h.

Referenced by get(), setupZMClient(), and ~ZMClient().

Definition at line 66 of file zmclient.h.

Referenced by connectToHost(), readData(), sendReceiveStringList(), shutdown(), and ~ZMClient().

QMutex ZMClient::m_socketLock [private]

Definition at line 67 of file zmclient.h.

Referenced by connectToHost(), and shutdown().

QString ZMClient::m_hostname [private]

Definition at line 68 of file zmclient.h.

Referenced by connectToHost(), restartConnection(), and sendReceiveStringList().

Definition at line 69 of file zmclient.h.

Referenced by connectToHost(), restartConnection(), and sendReceiveStringList().

QTimer* ZMClient::m_retryTimer [private]

Definition at line 71 of file zmclient.h.

Referenced by ZMClient(), and ~ZMClient().

Definition at line 72 of file zmclient.h.

Referenced by connectToHost(), restartConnection(), shutdown(), and ~ZMClient().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends
Generated on Mon May 28 06:42:34 2012 for MythTV by  doxygen 1.6.3