--- smsdaemon/common.h 2008/06/16 11:57:48 94 +++ smsdaemon/Common.h 2010/04/27 21:06:53 678 @@ -3,7 +3,6 @@ #include - //time_t is defines as long int ! //No need to include time.h class SmsCounter @@ -24,40 +23,50 @@ bool isDaemon; bool isDebug; + bool daemonized; int uid; int gid; volatile bool mainContinue; + volatile bool reloadConfig; + + std::string configFilePath; std::string pidfile; std::string spooldir; long int daemonStart; + SmsCounter smsCounter; class PluginManager* GetPluginManager(); class TaskManager* GetTaskManager(); + class ConfigFile* GetConfigfile(); + void SetConfigfile(class ConfigFile*); - void logMessage(std::string str); - void setLogfile(std::string file) {_logFile = file;} void loadConfig(int argc, char* argv[]); - std::string getStatusMessage(); + + std::string getStatusMessage(); private: Common(); Common(const Common&) {} - Common& operator=(const Common) {return *this;} + Common& operator=(const Common) + { + return *this; + } ~Common(); class PluginManager* _pluginManager; class TaskManager* _taskManager; + class ConfigFile* _configFile; void printUsage(); - std::string _logFile; + };