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; }
A class for watching file descriptors.
sigc::signal< void, FdWatch * > activity
Signal to indicate that the descriptor is active.
FdWatchType type(void) const
Return the type of this watch.
~FdWatch(void)
Destructor.
FdWatch(void)
Default constructor.
int fd(void) const
Return the file descriptor being watched.
void setEnabled(bool enabled)
Enable or disable the watch.
FdWatchType
The type of the file descriptor watch.
@ FD_WATCH_RD
File descriptor watch for incoming data.
@ FD_WATCH_WR
File descriptor watch for outgoing data.
bool isEnabled(void) const
Check if the watch is enabled or not.
FdWatch(int fd, FdWatchType type)
Constructor.
void setFd(int fd, FdWatchType type)
Set the file descriptor to watch.
Namespace for the asynchronous programming classes.