Parent Directory | Revision Log
make smsqueue and SpoolTask report the name of the spoolfile
1 | torben | 132 | #include <string> |
2 | |||
3 | |||
4 | class Spooler | ||
5 | { | ||
6 | public: | ||
7 | void enqueue(std::string recipient, std::string message); | ||
8 | std::string dequeue(); | ||
9 | torben | 134 | |
10 | std::string getFilename(); | ||
11 | torben | 132 | private: |
12 | torben | 134 | std::string findSpoolFilename(); |
13 | torben | 132 | |
14 | void lock(); | ||
15 | void unlock(); | ||
16 | |||
17 | int fd; | ||
18 | torben | 134 | |
19 | std::string filename; | ||
20 | torben | 132 | }; |
ViewVC Help | |
Powered by ViewVC 1.1.20 |