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

Diff of /smsdaemon/Common.h

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

revision 150 by torben, Sun Dec 7 21:42:15 2008 UTC revision 678 by torben, Tue Apr 27 21:06:53 2010 UTC
# Line 3  Line 3 
3    
4  #include <string>  #include <string>
5    
   
6  //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
7    
8  class SmsCounter  class SmsCounter
# Line 28  public: Line 27  public:
27          int uid;          int uid;
28          int gid;          int gid;
29          volatile bool mainContinue;          volatile bool mainContinue;
30            volatile bool reloadConfig;
31    
32          std::string configFilePath;          std::string configFilePath;
33    
# Line 36  public: Line 36  public:
36    
37          long int daemonStart;          long int daemonStart;
38    
39    
40          SmsCounter smsCounter;          SmsCounter smsCounter;
41    
42          class PluginManager* GetPluginManager();          class PluginManager* GetPluginManager();
# Line 43  public: Line 44  public:
44          class ConfigFile* GetConfigfile();          class ConfigFile* GetConfigfile();
45          void SetConfigfile(class ConfigFile*);          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();  
51            std::string getStatusMessage();
52  private:  private:
53          Common();          Common();
54          Common(const Common&) {}          Common(const Common&) {}
55          Common& operator=(const Common) {return *this;}          Common& operator=(const Common)
56            {
57                    return *this;
58            }
59          ~Common();          ~Common();
60    
61    
# Line 63  private: Line 66  private:
66    
67          void printUsage();          void printUsage();
68    
69          std::string _logFile;  
70  };  };
71    
72    

Legend:
Removed from v.150  
changed lines
  Added in v.678

  ViewVC Help
Powered by ViewVC 1.1.20