ZMClient Class Reference

#include <zmclient.h>

List of all members.


Detailed Description

Definition at line 24 of file zmclient.h.


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 (int monitorID, int eventID, int frameNo, QImage &image)
void getAnalyseFrame (int monitorID, int eventID, 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

Constructor & Destructor Documentation

ZMClient::ZMClient (  )  [protected]

Definition at line 28 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 51 of file zmclient.cpp.

Referenced by checkConnection(), and mythplugin_run().

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

Definition at line 78 of file zmclient.cpp.

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

bool ZMClient::connected ( void   )  [inline]

Definition at line 42 of file zmclient.h.

bool ZMClient::checkProtoVersion ( void   ) 

Definition at line 188 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 295 of file zmclient.cpp.

void ZMClient::getEventFrame ( int  monitorID,
int  eventID,
int  frameNo,
QImage &  image 
)

Definition at line 506 of file zmclient.cpp.

void ZMClient::getAnalyseFrame ( int  monitorID,
int  eventID,
int  frameNo,
QImage &  image 
)

Definition at line 537 of file zmclient.cpp.

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

Definition at line 568 of file zmclient.cpp.

Referenced by ZMLivePlayer::updateFrame().

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

Definition at line 378 of file zmclient.cpp.

void ZMClient::deleteEvent ( int  eventID  ) 

Definition at line 414 of file zmclient.cpp.

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

Definition at line 421 of file zmclient.cpp.

void ZMClient::getCameraList ( QStringList &  cameraList  ) 

Definition at line 606 of file zmclient.cpp.

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

Definition at line 628 of file zmclient.cpp.

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

Definition at line 343 of file zmclient.cpp.

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

Definition at line 662 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 447 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 31 of file zmclient.h.

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

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

Definition at line 32 of file zmclient.h.

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

Definition at line 74 of file zmclient.h.

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

QMutex ZMClient::m_socketLock [private]

Definition at line 75 of file zmclient.h.

Referenced by connectToHost(), and shutdown().

QString ZMClient::m_hostname [private]

Definition at line 76 of file zmclient.h.

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

Definition at line 77 of file zmclient.h.

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

QTimer* ZMClient::m_retryTimer [private]

Definition at line 79 of file zmclient.h.

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

Definition at line 80 of file zmclient.h.

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


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

Generated on Sat Dec 18 05:16:14 2010 for MythTV by  doxygen 1.5.5