#include <faith/socketnotifier.h>
Inheritance diagram for Faith::SocketNotifier:

Public Types | |
| Read | |
| Write | |
| Exception | |
| enum | Type { Read, Write, Exception } |
Signals | |
| void | activated (int) |
| void | activated (Faith::SocketNotifier *socket) |
| void | activated () |
Public Member Functions | |
| SocketNotifier (int socket, Type type, Faith::Object *parent=0, const char *name=0) | |
| ~SocketNotifier () | |
| int | socket () const |
| Type | type () const |
| bool | isEnabled () const |
| virtual void | setEnabled (bool enable) |
this class tells you when it's time to deal with a socket. Create me, connect to one or more of the activated signals, and call setEnabled(true)
Similar to the POSIX (unix) "select" function.
| Faith::SocketNotifier::SocketNotifier | ( | int | socket, | |
| Type | type, | |||
| Faith::Object * | parent = 0, |
|||
| const char * | name = 0 | |||
| ) |
Listens to the socket object for the type of events specified by type
| Faith::SocketNotifier::~SocketNotifier | ( | ) |
| void Faith::SocketNotifier::activated | ( | ) | [signal] |
Same as above, but with no parameters
| void Faith::SocketNotifier::activated | ( | Faith::SocketNotifier * | socket | ) | [signal] |
Same as above, except socket is "this"
| void Faith::SocketNotifier::activated | ( | int | ) | [signal] |
This signal is emitted when the socket triggers an event.
| socket | is the file descriptor |
| bool Faith::SocketNotifier::isEnabled | ( | ) | const |
| virtual void Faith::SocketNotifier::setEnabled | ( | bool | enable | ) | [virtual] |
Remember to call setEnabled(true) when you want to recieve events
| int Faith::SocketNotifier::socket | ( | ) | const [inline] |
| Type Faith::SocketNotifier::type | ( | ) | const [inline] |
1.4.7