--- smsdaemon/Spooler.h 2008/12/07 00:59:05 132 +++ smsdaemon/Spooler.h 2008/12/08 17:14:21 155 @@ -1,3 +1,6 @@ +#ifndef __SPOOLER_H__ +#define __SPOOLER_H__ + #include @@ -6,12 +9,17 @@ public: void enqueue(std::string recipient, std::string message); std::string dequeue(); + + std::string getFilename(); private: - std::string getSpoolFilename(); + std::string findSpoolFilename(); void lock(); void unlock(); - int fd; + int lockfd; + + std::string filename; }; +#endif // __SPOOLER_H__