--- smsdaemon/common.h 2008/12/07 21:42:15 150 +++ smsdaemon/Common.h 2008/12/23 14:20:43 217 @@ -3,7 +3,6 @@ #include - //time_t is defines as long int ! //No need to include time.h class SmsCounter @@ -28,6 +27,7 @@ int uid; int gid; volatile bool mainContinue; + volatile bool reloadConfig; std::string configFilePath; @@ -36,6 +36,7 @@ long int daemonStart; + SmsCounter smsCounter; class PluginManager* GetPluginManager(); @@ -43,16 +44,18 @@ 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(); @@ -63,7 +66,7 @@ void printUsage(); - std::string _logFile; + };