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

Diff of /smsdaemon/Spooler.h

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

revision 132 by torben, Sun Dec 7 00:59:05 2008 UTC revision 148 by torben, Sun Dec 7 20:18:20 2008 UTC
# Line 1  Line 1 
1    #ifndef __SPOOLER_H__
2    #define __SPOOLER_H__
3    
4  #include <string>  #include <string>
5    
6    
# Line 6  class Spooler Line 9  class Spooler
9  public:  public:
10          void enqueue(std::string recipient, std::string message);          void enqueue(std::string recipient, std::string message);
11          std::string dequeue();            std::string dequeue();  
12    
13            std::string getFilename();
14  private:  private:
15          std::string getSpoolFilename();          std::string findSpoolFilename();
16    
17          void lock();          void lock();
18          void unlock();          void unlock();
19    
20          int fd;          int fd;
21    
22            std::string filename;
23  };  };
24    #endif // __SPOOLER_H__
25    

Legend:
Removed from v.132  
changed lines
  Added in v.148

  ViewVC Help
Powered by ViewVC 1.1.20