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

Diff of /smsdaemon/Common.h

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

revision 215 by torben, Sun Dec 21 18:41:08 2008 UTC revision 216 by torben, Tue Dec 23 12:09:08 2008 UTC
# Line 2  Line 2 
2  #define __COMMON_H__  #define __COMMON_H__
3    
4  #include <string>  #include <string>
5    #include <set>
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
8    
# Line 37  public: Line 37  public:
37    
38          long int daemonStart;          long int daemonStart;
39    
40    
41          SmsCounter smsCounter;          SmsCounter smsCounter;
42    
43          class PluginManager* GetPluginManager();          class PluginManager* GetPluginManager();
# Line 47  public: Line 48  public:
48    
49          void loadConfig(int argc, char* argv[]);          void loadConfig(int argc, char* argv[]);
50    
51            void LoadLists(); //load blacklist & privileged
52            bool IsBlacklisted(const std::string& phone);
53            bool IsPrivileged(const std::string& phone);
54    
55          std::string getStatusMessage();          std::string getStatusMessage();
56  private:  private:
57          Common();          Common();
# Line 64  private: Line 69  private:
69          class ConfigFile* _configFile;          class ConfigFile* _configFile;
70    
71          void printUsage();          void printUsage();
72            void LoadWorker(std::set<std::string>& set, std::string config);
73    
74    
75            std::set<std::string> _blacklist;
76            std::set<std::string> _privileged;
77  };  };
78    
79    

Legend:
Removed from v.215  
changed lines
  Added in v.216

  ViewVC Help
Powered by ViewVC 1.1.20