zmserver.h File Reference

Go to the source code of this file.

Classes

struct  SharedData
struct  TriggerData_old
struct  TriggerData
struct  MONITOR
class  ZMServer

Enumerations

enum  State {
  IDLE, PREALARM, ALARM, ALERT,
  TAPE
}
enum  TriggerState { TRIGGER_CANCEL, TRIGGER_ON, TRIGGER_OFF }

Functions

void loadZMConfig (const string &configfile)
void connectToDatabase (void)
void kickDatabase (bool debug)

Variables

MYSQL g_dbConn
string g_zmversion
string g_password
string g_server
string g_database
string g_webPath
string g_user
string g_webUser
string g_binPath
time_t g_lastDBKick
const string FUNCTION_MONITOR = "Monitor"
const string FUNCTION_MODECT = "Modect"
const string FUNCTION_NODECT = "Nodect"
const string FUNCTION_RECORD = "Record"
const string FUNCTION_MOCORD = "Mocord"
const string FUNCTION_NONE = "None"
const string RESTART = "restart"
const string RELOAD = "reload"
const string RUNNING = "running"

Enumeration Type Documentation

enum State
Enumerator:
IDLE 
PREALARM 
ALARM 
ALERT 
TAPE 

Definition at line 58 of file zmserver.h.

Enumerator:
TRIGGER_CANCEL 
TRIGGER_ON 
TRIGGER_OFF 

Definition at line 88 of file zmserver.h.


Function Documentation

void loadZMConfig ( const string configfile  ) 

Definition at line 81 of file zmserver.cpp.

Referenced by main().

void connectToDatabase ( void   ) 

Definition at line 154 of file zmserver.cpp.

Referenced by kickDatabase(), and main().

void kickDatabase ( bool  debug  ) 

Definition at line 176 of file zmserver.cpp.

Referenced by ZMServer::handleGetLiveFrame(), and main().


Variable Documentation

MYSQL g_dbConn

Definition at line 70 of file zmserver.cpp.

Referenced by ZMServer::initMonitor(), loadZMConfig(), and main().

Definition at line 71 of file zmserver.cpp.

Referenced by connectToDatabase(), and loadZMConfig().

Definition at line 72 of file zmserver.cpp.

Referenced by connectToDatabase(), and loadZMConfig().

Definition at line 73 of file zmserver.cpp.

Referenced by connectToDatabase(), and loadZMConfig().

Definition at line 75 of file zmserver.cpp.

Referenced by connectToDatabase(), and loadZMConfig().

Definition at line 76 of file zmserver.cpp.

Referenced by loadZMConfig().

time_t g_lastDBKick

Definition at line 79 of file zmserver.cpp.

Referenced by kickDatabase().

const string FUNCTION_MONITOR = "Monitor"

Definition at line 47 of file zmserver.h.

Referenced by ZMServer::handleSetMonitorFunction().

const string FUNCTION_MODECT = "Modect"

Definition at line 48 of file zmserver.h.

Referenced by ZMServer::handleSetMonitorFunction(), and ZMServer::zmaControl().

const string FUNCTION_NODECT = "Nodect"

Definition at line 49 of file zmserver.h.

Referenced by ZMServer::handleSetMonitorFunction(), and ZMServer::zmaControl().

const string FUNCTION_RECORD = "Record"

Definition at line 50 of file zmserver.h.

Referenced by ZMServer::handleSetMonitorFunction(), and ZMServer::zmaControl().

const string FUNCTION_MOCORD = "Mocord"

Definition at line 51 of file zmserver.h.

Referenced by ZMServer::handleSetMonitorFunction(), and ZMServer::zmaControl().

const string FUNCTION_NONE = "None"

Definition at line 52 of file zmserver.h.

Referenced by ZMServer::handleSetMonitorFunction().

const string RESTART = "restart"
const string RELOAD = "reload"

Definition at line 55 of file zmserver.h.

Referenced by ZMServer::handleSetMonitorFunction(), and ZMServer::zmaControl().

const string RUNNING = "running"

Definition at line 56 of file zmserver.h.

Referenced by ZMServer::handleSetMonitorFunction().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends
Generated on Mon May 28 06:41:49 2012 for MythTV by  doxygen 1.6.3