/[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 94 by torben, Mon Jun 16 11:57:48 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 35  public: Line 31  public:
31          std::string pidfile;          std::string pidfile;
32          std::string spooldir;          std::string spooldir;
33    
         PluginManager pluginManager;  
         TaskManager taskManager;  
34          long int daemonStart;          long int daemonStart;
35    
36          SmsCounter smsCounter;          SmsCounter smsCounter;
37    
38            class PluginManager* GetPluginManager();
39            class TaskManager* GetTaskManager();
40    
41          void logMessage(std::string str);          void logMessage(std::string str);
42          void setLogfile(std::string file) {_logFile = file;}          void setLogfile(std::string file) {_logFile = file;}
43    
# Line 48  public: Line 45  public:
45    
46          std::string getStatusMessage();          std::string getStatusMessage();
47  private:  private:
48          Common() {}          Common();
49          Common(const Common&) {}          Common(const Common&) {}
50          Common& operator=(const Common) {return *this;}          Common& operator=(const Common) {return *this;}
51            ~Common();
52    
53    
54    
55            class PluginManager* _pluginManager;
56            class TaskManager* _taskManager;
57    
58          void printUsage();          void printUsage();
59    

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

  ViewVC Help
Powered by ViewVC 1.1.20