/[projects]/smsdaemon/Common.h
ViewVC logotype

Diff of /smsdaemon/Common.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 92 by torben, Mon Jun 16 11:30:20 2008 UTC revision 208 by torben, Sun Dec 21 18:41:08 2008 UTC
# Line 2  Line 2 
2  #define __COMMON_H__  #define __COMMON_H__
3    
4  #include <string>  #include <string>
 #define VERSION "smsdaemon v0.1 by Torben Nielsen\n"  
   
5    
6    
7  //time_t is defines as long int ! //No need to include time.h  //time_t is defines as long int ! //No need to include time.h
# Line 26  public: Line 24  public:
24    
25          bool isDaemon;          bool isDaemon;
26          bool isDebug;          bool isDebug;
27            bool daemonized;
28          int uid;          int uid;
29          int gid;          int gid;
30          volatile bool mainContinue;          volatile bool mainContinue;
31            volatile bool reloadConfig;
32    
33            std::string configFilePath;
34    
35          std::string pidfile;          std::string pidfile;
36          std::string spooldir;          std::string spooldir;
# Line 39  public: Line 41  public:
41    
42          class PluginManager* GetPluginManager();          class PluginManager* GetPluginManager();
43          class TaskManager* GetTaskManager();          class TaskManager* GetTaskManager();
44            class ConfigFile* GetConfigfile();
45            void SetConfigfile(class ConfigFile*);
46    
         void logMessage(std::string str);  
         void setLogfile(std::string file) {_logFile = file;}  
47    
48          void loadConfig(int argc, char* argv[]);          void loadConfig(int argc, char* argv[]);
49    
50          std::string getStatusMessage();          std::string getStatusMessage();
51  private:  private:
52          Common();          Common();
53          Common(const Common&) {}          Common(const Common&) {}
54          Common& operator=(const Common) {return *this;}          Common& operator=(const Common)
55            {
56                    return *this;
57            }
58          ~Common();          ~Common();
59    
60    
61    
62          class PluginManager* _pluginManager;          class PluginManager* _pluginManager;
63          class TaskManager* _taskManager;          class TaskManager* _taskManager;
64            class ConfigFile* _configFile;
65    
66          void printUsage();          void printUsage();
67    
         std::string _logFile;  
68  };  };
69    
70    

Legend:
Removed from v.92  
changed lines
  Added in v.208

  ViewVC Help
Powered by ViewVC 1.1.20