/** * @file Syslogdevice.h * @brief Declaration of the SyslogDevice class. * @author Andreas Aardal Hanssen * @date 2002, 2003 */ #ifndef syslogdevice_h_included #define syslogdevice_h_included #include "iodevice.h" #include namespace Binc { class SyslogDevice : public IODevice { public: SyslogDevice(int flags, const char *ident = "bincimap", int option = LOG_NDELAY | LOG_PID, int facility = LOG_USER); ~SyslogDevice(); void setPriority(int p); std::string service() const; protected: bool waitForWrite() const; bool waitForRead() const; WriteResult write(); bool fillInputBuffer(); private: static std::string ident; int option; int facility; int priority; }; } #endif