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