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

Diff of /smsdaemon/Common.h

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

revision 36 by torben, Tue Jun 10 15:34:19 2008 UTC revision 146 by torben, Sun Dec 7 20:06:12 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    
 #include "PluginManager.h"  
 #include "TaskManager.h"  
   
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
8    
9  class SmsCounter  class SmsCounter
# Line 32  public: Line 28  public:
28          int gid;          int gid;
29          volatile bool mainContinue;          volatile bool mainContinue;
30    
31            std::string configFilePath;
32    
33          std::string pidfile;          std::string pidfile;
34          std::string spooldir;          std::string spooldir;
35    
         PluginManager pluginManager;  
         TaskManager taskManager;  
36          long int daemonStart;          long int daemonStart;
37    
38          SmsCounter smsCounter;          SmsCounter smsCounter;
39    
40            class PluginManager* GetPluginManager();
41            class TaskManager* GetTaskManager();
42            class ConfigFile* GetConfigfile();
43            void SetConfigfile(class ConfigFile*);
44    
45          void logMessage(std::string str);          void logMessage(std::string str);
46          void setLogfile(std::string file) {_logFile = file;}          void setLogfile(std::string file) {_logFile = file;}
47    
# Line 48  public: Line 49  public:
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) {return *this;}
55            ~Common();
56    
57    
58    
59            class PluginManager* _pluginManager;
60            class TaskManager* _taskManager;
61            class ConfigFile* _configFile;
62    
63          void printUsage();          void printUsage();
64    

Legend:
Removed from v.36  
changed lines
  Added in v.146

  ViewVC Help
Powered by ViewVC 1.1.20