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

Diff of /smsdaemon/Common.h

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

revision 216 by torben, Tue Dec 23 12:09:08 2008 UTC revision 217 by torben, Tue Dec 23 14:20:43 2008 UTC
# Line 2  Line 2 
2  #define __COMMON_H__  #define __COMMON_H__
3    
4  #include <string>  #include <string>
 #include <set>  
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    
# Line 48  public: Line 47  public:
47    
48          void loadConfig(int argc, char* argv[]);          void loadConfig(int argc, char* argv[]);
49    
         void LoadLists(); //load blacklist & privileged  
         bool IsBlacklisted(const std::string& phone);  
         bool IsPrivileged(const std::string& phone);  
50    
51          std::string getStatusMessage();          std::string getStatusMessage();
52  private:  private:
# Line 69  private: Line 65  private:
65          class ConfigFile* _configFile;          class ConfigFile* _configFile;
66    
67          void printUsage();          void printUsage();
         void LoadWorker(std::set<std::string>& set, std::string config);  
68    
69    
         std::set<std::string> _blacklist;  
         std::set<std::string> _privileged;  
70  };  };
71    
72    

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

  ViewVC Help
Powered by ViewVC 1.1.20