|
MythTV master
|
#include <mythplugins/mythzoneminder/mythzmserver/zmserver.h>
Public Member Functions | |
| ZMServer (int sock, bool debug) | |
| ~ZMServer () | |
| bool | processRequest (char *buf, int nbytes) |
Private Member Functions | |
| std::string | getZMSetting (const std::string &setting) const |
| bool | send (const std::string &s) const |
| bool | send (const std::string &s, const unsigned char *buffer, int dataLen) const |
| void | sendError (const std::string &error) |
| void | getMonitorList (void) |
| void | handleHello (void) |
| void | handleGetServerStatus (void) |
| void | handleGetMonitorStatus (void) |
| void | handleGetAlarmStates (void) |
| void | handleGetMonitorList (void) |
| void | handleGetCameraList (void) |
| void | handleGetEventList (std::vector< std::string > tokens) |
| void | handleGetEventFrame (std::vector< std::string > tokens) |
| void | handleGetAnalysisFrame (std::vector< std::string > tokens) |
| void | handleGetLiveFrame (std::vector< std::string > tokens) |
| void | handleGetFrameList (std::vector< std::string > tokens) |
| void | handleDeleteEvent (std::vector< std::string > tokens) |
| void | handleDeleteEventList (std::vector< std::string > tokens) |
| void | handleGetEventDates (std::vector< std::string > tokens) |
| void | handleRunZMAudit (void) |
| void | handleSetMonitorFunction (std::vector< std::string > tokens) |
| void | zmcControl (MONITOR *monitor, const std::string &mode) |
| void | zmaControl (MONITOR *monitor, const std::string &mode) |
Static Private Member Functions | |
| static int | getFrame (FrameData &buffer, MONITOR *monitor) |
| static void | tokenize (const std::string &command, std::vector< std::string > &tokens) |
| static std::string | runCommand (const std::string &command) |
| static void | getMonitorStatus (const std::string &id, const std::string &type, const std::string &device, const std::string &host, const std::string &channel, const std::string &function, std::string &zmcStatus, std::string &zmaStatus, const std::string &enabled) |
Private Attributes | |
| bool | m_debug {false} |
| int | m_sock {-1} |
| std::vector< MONITOR * > | m_monitors |
| std::map< int, MONITOR * > | m_monitorMap |
| bool | m_useDeepStorage {false} |
| bool | m_useAnalysisImages {false} |
| std::string | m_eventFileFormat |
| std::string | m_analysisFileFormat |
| key_t | m_shmKey |
| std::string | m_mmapPath |
Definition at line 302 of file zmserver.h.
| ZMServer::ZMServer | ( | int | sock, |
| bool | debug | ||
| ) |
Definition at line 502 of file zmserver.cpp.
| ZMServer::~ZMServer | ( | ) |
Definition at line 575 of file zmserver.cpp.
Definition at line 1761 of file zmserver.cpp.
Referenced by handleGetLiveFrame().
|
private |
Definition at line 1689 of file zmserver.cpp.
Referenced by ZMServer().
|
staticprivate |
Definition at line 1066 of file zmserver.cpp.
Referenced by handleGetMonitorStatus().
|
private |
Definition at line 1894 of file zmserver.cpp.
Referenced by zmaControl(), and ZMServer().
|
private |
Definition at line 1599 of file zmserver.cpp.
Referenced by processRequest().
|
private |
Definition at line 1636 of file zmserver.cpp.
Referenced by processRequest().
|
private |
Definition at line 782 of file zmserver.cpp.
Referenced by processRequest().
|
private |
Definition at line 1200 of file zmserver.cpp.
Referenced by processRequest().
|
private |
Definition at line 1548 of file zmserver.cpp.
Referenced by processRequest().
|
private |
Definition at line 895 of file zmserver.cpp.
Referenced by processRequest().
|
private |
Definition at line 1117 of file zmserver.cpp.
Referenced by processRequest().
|
private |
Definition at line 802 of file zmserver.cpp.
Referenced by processRequest().
|
private |
Definition at line 1440 of file zmserver.cpp.
Referenced by processRequest().
|
private |
Definition at line 1372 of file zmserver.cpp.
Referenced by processRequest().
|
private |
Definition at line 1564 of file zmserver.cpp.
Referenced by processRequest().
|
private |
Definition at line 959 of file zmserver.cpp.
Referenced by processRequest().
|
private |
Definition at line 751 of file zmserver.cpp.
Referenced by processRequest().
|
private |
Definition at line 722 of file zmserver.cpp.
Referenced by processRequest().
|
private |
Definition at line 1671 of file zmserver.cpp.
Referenced by processRequest().
|
private |
Definition at line 1926 of file zmserver.cpp.
Referenced by processRequest().
| bool ZMServer::processRequest | ( | char * | buf, |
| int | nbytes | ||
| ) |
Definition at line 621 of file zmserver.cpp.
Referenced by main().
|
staticprivate |
Definition at line 1052 of file zmserver.cpp.
Referenced by getMonitorStatus(), handleGetServerStatus(), handleSetMonitorFunction(), zmaControl(), and zmcControl().
|
private |
Definition at line 682 of file zmserver.cpp.
Referenced by handleDeleteEvent(), handleDeleteEventList(), handleGetAlarmStates(), handleGetAnalysisFrame(), handleGetCameraList(), handleGetEventDates(), handleGetEventFrame(), handleGetEventList(), handleGetFrameList(), handleGetLiveFrame(), handleGetMonitorList(), handleGetMonitorStatus(), handleGetServerStatus(), handleHello(), handleRunZMAudit(), handleSetMonitorFunction(), processRequest(), send(), and sendError().
|
private |
Definition at line 696 of file zmserver.cpp.
|
private |
Definition at line 715 of file zmserver.cpp.
Referenced by handleDeleteEvent(), handleDeleteEventList(), handleGetAnalysisFrame(), handleGetEventDates(), handleGetEventFrame(), handleGetEventList(), handleGetFrameList(), handleGetLiveFrame(), handleGetMonitorStatus(), handleSetMonitorFunction(), and zmcControl().
|
staticprivate |
Definition at line 598 of file zmserver.cpp.
Referenced by processRequest().
|
private |
Definition at line 2078 of file zmserver.cpp.
Referenced by handleSetMonitorFunction().
|
private |
Definition at line 2033 of file zmserver.cpp.
Referenced by handleSetMonitorFunction().
|
private |
Definition at line 350 of file zmserver.h.
Referenced by handleGetAnalysisFrame(), and ZMServer().
|
private |
Definition at line 343 of file zmserver.h.
Referenced by getMonitorList(), getZMSetting(), handleDeleteEvent(), handleDeleteEventList(), handleGetAnalysisFrame(), handleGetEventDates(), handleGetEventFrame(), handleGetEventList(), handleGetFrameList(), handleGetLiveFrame(), handleGetMonitorList(), handleGetMonitorStatus(), handleRunZMAudit(), handleSetMonitorFunction(), processRequest(), ZMServer(), and ~ZMServer().
|
private |
Definition at line 349 of file zmserver.h.
Referenced by handleGetAnalysisFrame(), handleGetEventFrame(), and ZMServer().
|
private |
Definition at line 352 of file zmserver.h.
Referenced by getMonitorList(), and ZMServer().
|
private |
Definition at line 346 of file zmserver.h.
Referenced by getMonitorList(), handleGetLiveFrame(), handleSetMonitorFunction(), and ~ZMServer().
|
private |
Definition at line 345 of file zmserver.h.
Referenced by getMonitorList(), handleGetAlarmStates(), handleGetCameraList(), handleGetMonitorList(), and ~ZMServer().
|
private |
Definition at line 351 of file zmserver.h.
Referenced by getMonitorList(), and ZMServer().
|
private |
Definition at line 344 of file zmserver.h.
Referenced by send(), and ZMServer().
|
private |
Definition at line 348 of file zmserver.h.
Referenced by handleGetAnalysisFrame(), and ZMServer().
|
private |
Definition at line 347 of file zmserver.h.
Referenced by handleGetAnalysisFrame(), handleGetEventFrame(), and ZMServer().