|
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 long long | getDiskSpace (const std::string &filename, long long &total, long long &used) |
| 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 515 of file zmserver.cpp.
| ZMServer::~ZMServer | ( | ) |
Definition at line 588 of file zmserver.cpp.
|
staticprivate |
Definition at line 745 of file zmserver.cpp.
Referenced by handleGetServerStatus().
Definition at line 1787 of file zmserver.cpp.
Referenced by handleGetLiveFrame().
|
private |
Definition at line 1715 of file zmserver.cpp.
Referenced by ZMServer().
|
staticprivate |
Definition at line 1092 of file zmserver.cpp.
Referenced by handleGetMonitorStatus().
|
private |
Definition at line 1920 of file zmserver.cpp.
Referenced by zmaControl(), and ZMServer().
|
private |
Definition at line 1625 of file zmserver.cpp.
Referenced by processRequest().
|
private |
Definition at line 1662 of file zmserver.cpp.
Referenced by processRequest().
|
private |
Definition at line 808 of file zmserver.cpp.
Referenced by processRequest().
|
private |
Definition at line 1226 of file zmserver.cpp.
Referenced by processRequest().
|
private |
Definition at line 1574 of file zmserver.cpp.
Referenced by processRequest().
|
private |
Definition at line 921 of file zmserver.cpp.
Referenced by processRequest().
|
private |
Definition at line 1143 of file zmserver.cpp.
Referenced by processRequest().
|
private |
Definition at line 828 of file zmserver.cpp.
Referenced by processRequest().
|
private |
Definition at line 1466 of file zmserver.cpp.
Referenced by processRequest().
|
private |
Definition at line 1398 of file zmserver.cpp.
Referenced by processRequest().
|
private |
Definition at line 1590 of file zmserver.cpp.
Referenced by processRequest().
|
private |
Definition at line 985 of file zmserver.cpp.
Referenced by processRequest().
|
private |
Definition at line 774 of file zmserver.cpp.
Referenced by processRequest().
|
private |
Definition at line 735 of file zmserver.cpp.
Referenced by processRequest().
|
private |
Definition at line 1697 of file zmserver.cpp.
Referenced by processRequest().
|
private |
Definition at line 1952 of file zmserver.cpp.
Referenced by processRequest().
| bool ZMServer::processRequest | ( | char * | buf, |
| int | nbytes | ||
| ) |
Definition at line 634 of file zmserver.cpp.
Referenced by main().
|
staticprivate |
Definition at line 1078 of file zmserver.cpp.
Referenced by getMonitorStatus(), handleGetServerStatus(), handleSetMonitorFunction(), zmaControl(), and zmcControl().
|
private |
Definition at line 695 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 709 of file zmserver.cpp.
|
private |
Definition at line 728 of file zmserver.cpp.
Referenced by handleDeleteEvent(), handleDeleteEventList(), handleGetAnalysisFrame(), handleGetEventDates(), handleGetEventFrame(), handleGetEventList(), handleGetFrameList(), handleGetLiveFrame(), handleGetMonitorStatus(), handleSetMonitorFunction(), and zmcControl().
|
staticprivate |
Definition at line 611 of file zmserver.cpp.
Referenced by processRequest().
|
private |
Definition at line 2104 of file zmserver.cpp.
Referenced by handleSetMonitorFunction().
|
private |
Definition at line 2059 of file zmserver.cpp.
Referenced by handleSetMonitorFunction().
|
private |
Definition at line 351 of file zmserver.h.
Referenced by handleGetAnalysisFrame(), and ZMServer().
Definition at line 344 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 350 of file zmserver.h.
Referenced by handleGetAnalysisFrame(), handleGetEventFrame(), and ZMServer().
|
private |
Definition at line 353 of file zmserver.h.
Referenced by getMonitorList(), and ZMServer().
|
private |
Definition at line 347 of file zmserver.h.
Referenced by getMonitorList(), handleGetLiveFrame(), handleSetMonitorFunction(), and ~ZMServer().
|
private |
Definition at line 346 of file zmserver.h.
Referenced by getMonitorList(), handleGetAlarmStates(), handleGetCameraList(), handleGetMonitorList(), and ~ZMServer().
|
private |
Definition at line 352 of file zmserver.h.
Referenced by getMonitorList(), and ZMServer().
|
private |
Definition at line 345 of file zmserver.h.
Referenced by send(), and ZMServer().
Definition at line 349 of file zmserver.h.
Referenced by handleGetAnalysisFrame(), and ZMServer().
Definition at line 348 of file zmserver.h.
Referenced by handleGetAnalysisFrame(), handleGetEventFrame(), and ZMServer().