![]() |
openATV enigma2
openATV is an open source SetTopBox Graphical user interface.
|
Gives a callback when data on a file descriptor is ready. More...
#include <ebase.h>
Public Types | |
| enum | { Read =POLLIN , Write =POLLOUT , Priority =POLLPRI , Error =POLLERR , Hungup =POLLHUP } |
Public Member Functions | |
| ~eSocketNotifier () | |
| void | start () |
| void | stop () |
| bool | isRunning () const |
| int | getFD () const |
| int | getRequested () const |
| void | setRequested (int req) |
Static Public Member Functions | |
| static eSocketNotifier * | create (eMainloop *context, int fd, int req, bool startnow=true) |
| Constructs a eSocketNotifier. More... | |
Public Attributes | |
| PSignal1< void, int > | activated |
| eSmartPtrList< iObject > | m_clients |
Friends | |
| class | eMainloop |
Gives a callback when data on a file descriptor is ready.
This class emits the signal eSocketNotifier::activate whenever the event specified by req is available.
| eSocketNotifier::~eSocketNotifier | ( | ) |
|
inlinestatic |
Constructs a eSocketNotifier.
| context | The thread where to bind the socketnotifier to. The signal is emitted from that thread. |
| fd | The filedescriptor to monitor. Can be a device or a socket. |
| req | The events to watch to, normally either Read or Write. You can specify any events that poll supports. |
| startnow | Specifies if the socketnotifier should start immediately. |
|
inline |
|
inline |
|
inline |
|
inline |
| void eSocketNotifier::start | ( | ) |
| void eSocketNotifier::stop | ( | ) |
|
friend |
| PSignal1<void, int> eSocketNotifier::activated |
| eSmartPtrList<iObject> eSocketNotifier::m_clients |