35 #ifndef ASYNC_FD_WATCH_INCLUDED 36 #define ASYNC_FD_WATCH_INCLUDED 45 #include <sigc++/sigc++.h> 159 int fd(
void)
const {
return m_fd; }
sigc::signal< void, FdWatch * > activity
Signal to indicate that the descriptor is active.
FdWatchType type(void) const
Return the type of this watch.
void setFd(int fd, FdWatchType type)
Set the file descriptor to watch.
FdWatch(void)
Default constructor.
A class for watching file descriptors.
bool isEnabled(void) const
Check if the watch is enabled or not.
File descriptor watch for outgoing data.
Namespace for the asynchronous programming classes.
FdWatchType
The type of the file descriptor watch.
int fd(void) const
Return the file descriptor being watched.
~FdWatch(void)
Destructor.
File descriptor watch for incoming data.
void setEnabled(bool enabled)
Enable or disable the watch.