#include <zmclient.h>
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 ZMClient * | get (void) |
| static bool | setupZMClient (void) |
Protected Member Functions | |
| ZMClient () | |
Static Protected Attributes | |
| static bool | m_server_unavailable = false |
| static class ZMClient * | m_zmclient = NULL |
Private Slots | |
| void | restartConnection (void) |
Private Member Functions | |
| bool | readData (unsigned char *data, int dataSize) |
| bool | sendReceiveStringList (QStringList &strList) |
Private Attributes | |
| MythSocket * | m_socket |
| QMutex | m_socketLock |
| QString | m_hostname |
| uint | m_port |
| bool | m_bConnected |
| QTimer * | m_retryTimer |
| bool | m_zmclientReady |
| ZMClient::ZMClient | ( | ) | [protected] |
Definition at line 28 of file zmclient.cpp.
| ZMClient::~ZMClient | ( | ) |
Definition at line 240 of file zmclient.cpp.
| class ZMClient * ZMClient::get | ( | void | ) | [static] |
Definition at line 44 of file zmclient.cpp.
Referenced by checkConnection(), ZMPlayer::deletePressed(), ZMEvents::deletePressed(), ZMEvents::getCameraList(), ZMConsole::getDaemonStatus(), ZMEvents::getDateList(), ZMPlayer::getEventInfo(), ZMEvents::getEventList(), ZMPlayer::getFrame(), ZMLivePlayer::getMonitorList(), ZMConsole::getMonitorStatus(), ZMEvents::gridItemChanged(), ZMConsole::setMonitorFunction(), setupZMClient(), ZMEvents::showMenu(), and ZMLivePlayer::updateFrame().
| bool ZMClient::setupZMClient | ( | void | ) | [static] |
| 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 | ) |
| 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 | |||
| ) |
| 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] |
| 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] |
Definition at line 137 of file zmclient.cpp.
Referenced by checkProtoVersion(), deleteEvent(), deleteEventList(), getAnalyseFrame(), getCameraList(), getEventDates(), getEventFrame(), getEventList(), getFrameList(), getLiveFrame(), getMonitorList(), getMonitorStatus(), getServerStatus(), and setMonitorFunction().
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] |
MythSocket* ZMClient::m_socket [private] |
Definition at line 74 of file zmclient.h.
Referenced by connectToHost(), readData(), sendReceiveStringList(), shutdown(), and ~ZMClient().
QMutex ZMClient::m_socketLock [private] |
QString ZMClient::m_hostname [private] |
Definition at line 76 of file zmclient.h.
Referenced by connectToHost(), restartConnection(), and sendReceiveStringList().
uint ZMClient::m_port [private] |
Definition at line 77 of file zmclient.h.
Referenced by connectToHost(), restartConnection(), and sendReceiveStringList().
bool ZMClient::m_bConnected [private] |
Definition at line 78 of file zmclient.h.
Referenced by connected(), connectToHost(), restartConnection(), sendReceiveStringList(), and shutdown().
QTimer* ZMClient::m_retryTimer [private] |
bool ZMClient::m_zmclientReady [private] |
Definition at line 80 of file zmclient.h.
Referenced by connectToHost(), restartConnection(), shutdown(), and ~ZMClient().
1.5.5