--- smsdaemon/Spooler.h 2008/12/07 00:59:05 132 +++ smsdaemon/Spooler.h 2008/12/18 06:53:29 196 @@ -1,3 +1,6 @@ +#ifndef __SPOOLER_H__ +#define __SPOOLER_H__ + #include @@ -5,13 +8,18 @@ { public: void enqueue(std::string recipient, std::string message); - std::string dequeue(); + 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__