
Provides file descriptor watches. More...
#include <watch.h>
Public Types | |
| typedef DBusCxxPointer< Watch > | pointer |
| typedef DBusCxxWeakPointer< Watch > | weak_pointer |
Public Member Functions | |
| ~Watch () | |
| bool | is_valid () const |
| operator bool () const | |
| int | unix_fd () const |
| int | socket () const |
| unsigned int | flags () const |
| bool | is_readable () const |
| bool | is_writable () const |
| bool | is_enabled () const |
| bool | handle (unsigned int flags) |
| bool | handle_read (bool error=false, bool hangup=false) |
| bool | handle_write (bool error=false, bool hangup=false) |
| bool | handle_readwrite (bool error=false, bool hangup=false) |
| DBusWatch * | cobj () |
| const DBusWatch * | cobj () const |
| operator DBusWatch * () | |
Static Public Member Functions | |
| static pointer | create (DBusWatch *cobj=NULL) |
Protected Member Functions | |
| Watch (DBusWatch *cobj=NULL) | |
Protected Attributes | |
| DBusWatch * | m_cobj |
Provides file descriptor watches.
Typically used by connections as requested by the underlying dbus library.
| typedef DBusCxxPointer<Watch> DBus::Watch::pointer |
| typedef DBusCxxWeakPointer<Watch> DBus::Watch::weak_pointer |
| DBus::Watch::Watch | ( | DBusWatch * | cobj = NULL |
) | [protected] |
| DBus::Watch::~Watch | ( | ) |
| const DBusWatch * DBus::Watch::cobj | ( | ) | const |
References m_cobj.
| DBusWatch * DBus::Watch::cobj | ( | ) |
References m_cobj.
Referenced by operator DBusWatch *().
| Watch::pointer DBus::Watch::create | ( | DBusWatch * | cobj = NULL |
) | [static] |
References Watch().
Referenced by handle(), is_enabled(), DBus::Connection::on_remove_watch_callback(), DBus::Connection::on_watch_toggled_callback(), socket(), and unix_fd().
| unsigned int DBus::Watch::flags | ( | ) | const |
References is_valid(), m_cobj, and DBus::WATCH_ERROR.
Referenced by handle_read(), handle_readwrite(), handle_write(), is_readable(), and is_writable().
| bool DBus::Watch::handle | ( | unsigned int | flags | ) |
References create(), is_valid(), and m_cobj.
Referenced by handle_read(), handle_readwrite(), and handle_write().
| bool DBus::Watch::handle_read | ( | bool | error = false, |
|
| bool | hangup = false | |||
| ) |
References flags(), handle(), DBus::WATCH_ERROR, DBus::WATCH_HANGUP, and DBus::WATCH_READABLE.
| bool DBus::Watch::handle_readwrite | ( | bool | error = false, |
|
| bool | hangup = false | |||
| ) |
References flags(), handle(), DBus::WATCH_ERROR, DBus::WATCH_HANGUP, DBus::WATCH_READABLE, and DBus::WATCH_WRITABLE.
| bool DBus::Watch::handle_write | ( | bool | error = false, |
|
| bool | hangup = false | |||
| ) |
References flags(), handle(), DBus::WATCH_ERROR, DBus::WATCH_HANGUP, and DBus::WATCH_WRITABLE.
| bool DBus::Watch::is_enabled | ( | ) | const |
References create(), is_valid(), and m_cobj.
| bool DBus::Watch::is_readable | ( | ) | const |
References flags(), and DBus::WATCH_READABLE.
| bool DBus::Watch::is_valid | ( | ) | const |
References m_cobj.
Referenced by flags(), handle(), is_enabled(), operator bool(), socket(), and unix_fd().
| bool DBus::Watch::is_writable | ( | ) | const |
References flags(), and DBus::WATCH_WRITABLE.
| DBus::Watch::operator bool | ( | ) | const |
References is_valid().
| DBus::Watch::operator DBusWatch * | ( | ) |
References cobj().
| int DBus::Watch::socket | ( | ) | const |
References create(), is_valid(), and m_cobj.
| int DBus::Watch::unix_fd | ( | ) | const |
References create(), is_valid(), and m_cobj.
DBusWatch* DBus::Watch::m_cobj [protected] |
Referenced by cobj(), flags(), handle(), is_enabled(), is_valid(), socket(), unix_fd(), and Watch().
1.6.1