Parent Directory | Revision Log
Make pretty astyle -t -b -N
1 | torben | 148 | #ifndef __SPOOLER_H__ |
2 | #define __SPOOLER_H__ | ||
3 | |||
4 | torben | 132 | #include <string> |
5 | |||
6 | |||
7 | class Spooler | ||
8 | { | ||
9 | public: | ||
10 | void enqueue(std::string recipient, std::string message); | ||
11 | torben | 196 | std::string dequeue(); |
12 | torben | 134 | |
13 | std::string getFilename(); | ||
14 | torben | 132 | private: |
15 | torben | 134 | std::string findSpoolFilename(); |
16 | torben | 132 | |
17 | void lock(); | ||
18 | void unlock(); | ||
19 | |||
20 | torben | 155 | int lockfd; |
21 | torben | 134 | |
22 | std::string filename; | ||
23 | torben | 132 | }; |
24 | torben | 148 | #endif // __SPOOLER_H__ |
ViewVC Help | |
Powered by ViewVC 1.1.20 |