--- smsdaemon/common.h 2008/12/07 20:06:12 146 +++ smsdaemon/Common.h 2008/12/21 18:41:08 208 @@ -24,9 +24,11 @@ bool isDaemon; bool isDebug; + bool daemonized; int uid; int gid; volatile bool mainContinue; + volatile bool reloadConfig; std::string configFilePath; @@ -42,16 +44,17 @@ 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(); @@ -62,7 +65,6 @@ void printUsage(); - std::string _logFile; };