#include <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 (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 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 |
Definition at line 16 of file zmclient.h.
| ZMClient::ZMClient | ( | ) | [protected] |
Definition at line 25 of file zmclient.cpp.
| ZMClient::~ZMClient | ( | ) |
Definition at line 240 of file zmclient.cpp.
| class ZMClient * ZMClient::get | ( | void | ) | [static] |
Definition at line 42 of file zmclient.cpp.
Referenced by checkConnection(), ZMPlayer::deletePressed(), ZMEvents::deletePressed(), ZMEvents::doDeleteAll(), ZMEvents::eventChanged(), ZMEvents::getCameraList(), ZMConsole::getDaemonStatus(), ZMEvents::getDateList(), ZMPlayer::getEventInfo(), ZMEvents::getEventList(), ZMPlayer::getFrame(), ZMLivePlayer::getMonitorList(), ZMConsole::getMonitorStatus(), FunctionDialog::setMonitorFunction(), and setupZMClient().
| 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.
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] |
Definition at line 134 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 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().
MythSocket* ZMClient::m_socket [private] |
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().
uint ZMClient::m_port [private] |
Definition at line 69 of file zmclient.h.
Referenced by connectToHost(), restartConnection(), and sendReceiveStringList().
bool ZMClient::m_bConnected [private] |
Definition at line 70 of file zmclient.h.
Referenced by connected(), connectToHost(), restartConnection(), sendReceiveStringList(), and shutdown().
QTimer* ZMClient::m_retryTimer [private] |
Definition at line 71 of file zmclient.h.
Referenced by ZMClient(), and ~ZMClient().
bool ZMClient::m_zmclientReady [private] |
Definition at line 72 of file zmclient.h.
Referenced by connectToHost(), restartConnection(), shutdown(), and ~ZMClient().
1.6.3