dbus-cxx logo

DBus::Watch Class Reference

Provides file descriptor watches. More...

#include <watch.h>

List of all members.

Public Types

typedef DBusCxxPointer< Watchpointer
typedef DBusCxxWeakPointer< Watchweak_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

Detailed Description

Provides file descriptor watches.

Typically used by connections as requested by the underlying dbus library.

Author:
Rick L Vinyard Jr <rvinyard@cs.nmsu.edu>

Member Typedef Documentation

typedef DBusCxxPointer<Watch> DBus::Watch::pointer
typedef DBusCxxWeakPointer<Watch> DBus::Watch::weak_pointer

Constructor & Destructor Documentation

DBus::Watch::Watch ( DBusWatch *  cobj = NULL  )  [protected]

References m_cobj.

Referenced by create().

DBus::Watch::~Watch (  ) 

Member Function Documentation

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]
unsigned int DBus::Watch::flags (  )  const
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 
)
bool DBus::Watch::handle_readwrite ( bool  error = false,
bool  hangup = false 
)
bool DBus::Watch::handle_write ( bool  error = false,
bool  hangup = false 
)
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.


Member Data Documentation

DBusWatch* DBus::Watch::m_cobj [protected]

The documentation for this class was generated from the following files:

Generated on Thu Mar 18 09:31:36 2010 for dbus-cxx by doxygen 1.6.1