DBusConnection - D-Bus Connections. More...
#include <giomm/dbusconnection.h>
Public Member Functions | |
virtual | ~DBusConnection () |
GDBusConnection* | gobj () |
Provides access to the underlying C GObject. | |
const GDBusConnection* | gobj () const |
Provides access to the underlying C GObject. | |
GDBusConnection* | gobj_copy () |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. | |
void | close () |
void | close (const SlotAsyncReady& slot, const Glib::RefPtr< Cancellable >& cancellable) |
void | close (const SlotAsyncReady& slot) |
bool | close_finish (const Glib::RefPtr< AsyncResult >& result) |
void | close_sync () |
void | close_sync (const Glib::RefPtr< Cancellable >& cancellable) |
void | flush () |
void | flush (const SlotAsyncReady& slot, const Glib::RefPtr< Cancellable >& cancellable) |
void | flush (const SlotAsyncReady& slot) |
bool | flush_finish (const Glib::RefPtr< AsyncResult >& result) |
void | flush_sync () |
void | flush_sync (const Glib::RefPtr< Cancellable >& cancellable) |
bool | send_message (const Glib::RefPtr< DBusMessage >& message, DBusSendMessageFlags flags, guint32* out_serial) |
void | send_message_with_reply (const Glib::RefPtr< DBusMessage >& message, int timeout_msec, const Glib::RefPtr< Cancellable >& cancellable, const SlotAsyncReady& slot) |
Glib::RefPtr< DBusMessage > | send_message_with_reply_finish (const Glib::RefPtr< AsyncResult >& result) |
void | start_message_processing () |
bool | is_closed () const |
Glib::RefPtr< IOStream > | get_stream () |
Glib::RefPtr< const IOStream > | get_stream () const |
Glib::ustring | get_guid () const |
Glib::ustring | get_unique_name () const |
Glib::RefPtr< Credentials > | get_peer_credentials () |
Glib::RefPtr< const Credentials > | get_peer_credentials () const |
bool | get_exit_on_close () const |
void | set_exit_on_close (bool exit_on_close=true) |
DBusCapabilityFlags | get_capabilities () const |
Related Functions | |
(Note that these are not member functions.) | |
Glib::RefPtr< Gio::DBusConnection > | wrap (GDBusConnection* object, bool take_copy=false) |
A Glib::wrap() method for this object. |
DBusConnection - D-Bus Connections.
The DBusConnection type is used for D-Bus connections to remote peers such as a message buses. It is a low-level API that offers a lot of flexibility. For instance, it lets you establish a connection over any transport that can by represented as an IOStream.
This class is rarely used directly in D-Bus clients. If you are writing an D-Bus client, it is often easier to use the Gio::DBus::own_name(), Gio::DBus::watch_name() or DBusProxy::create_for_bus() APIs.
virtual Gio::DBusConnection::~DBusConnection | ( | ) | [virtual] |
void Gio::DBusConnection::close | ( | const SlotAsyncReady & | slot | ) |
void Gio::DBusConnection::close | ( | const SlotAsyncReady & | slot, | |
const Glib::RefPtr< Cancellable >& | cancellable | |||
) |
void Gio::DBusConnection::close | ( | ) |
bool Gio::DBusConnection::close_finish | ( | const Glib::RefPtr< AsyncResult >& | result | ) |
void Gio::DBusConnection::close_sync | ( | const Glib::RefPtr< Cancellable >& | cancellable | ) |
void Gio::DBusConnection::close_sync | ( | ) |
void Gio::DBusConnection::flush | ( | const SlotAsyncReady & | slot | ) |
void Gio::DBusConnection::flush | ( | const SlotAsyncReady & | slot, | |
const Glib::RefPtr< Cancellable >& | cancellable | |||
) |
void Gio::DBusConnection::flush | ( | ) |
bool Gio::DBusConnection::flush_finish | ( | const Glib::RefPtr< AsyncResult >& | result | ) |
void Gio::DBusConnection::flush_sync | ( | const Glib::RefPtr< Cancellable >& | cancellable | ) |
void Gio::DBusConnection::flush_sync | ( | ) |
DBusCapabilityFlags Gio::DBusConnection::get_capabilities | ( | ) | const |
bool Gio::DBusConnection::get_exit_on_close | ( | ) | const |
Glib::ustring Gio::DBusConnection::get_guid | ( | ) | const |
Glib::RefPtr<const Credentials> Gio::DBusConnection::get_peer_credentials | ( | ) | const |
Glib::RefPtr<Credentials> Gio::DBusConnection::get_peer_credentials | ( | ) |
Glib::RefPtr<const IOStream> Gio::DBusConnection::get_stream | ( | ) | const |
Glib::RefPtr<IOStream> Gio::DBusConnection::get_stream | ( | ) |
Glib::ustring Gio::DBusConnection::get_unique_name | ( | ) | const |
const GDBusConnection* Gio::DBusConnection::gobj | ( | ) | const [inline] |
Provides access to the underlying C GObject.
Reimplemented from Glib::ObjectBase.
GDBusConnection* Gio::DBusConnection::gobj | ( | ) | [inline] |
Provides access to the underlying C GObject.
Reimplemented from Glib::ObjectBase.
GDBusConnection* Gio::DBusConnection::gobj_copy | ( | ) |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
bool Gio::DBusConnection::is_closed | ( | ) | const |
bool Gio::DBusConnection::send_message | ( | const Glib::RefPtr< DBusMessage >& | message, | |
DBusSendMessageFlags | flags, | |||
guint32 * | out_serial | |||
) |
void Gio::DBusConnection::send_message_with_reply | ( | const Glib::RefPtr< DBusMessage >& | message, | |
int | timeout_msec, | |||
const Glib::RefPtr< Cancellable >& | cancellable, | |||
const SlotAsyncReady & | slot | |||
) |
Glib::RefPtr<DBusMessage> Gio::DBusConnection::send_message_with_reply_finish | ( | const Glib::RefPtr< AsyncResult >& | result | ) |
void Gio::DBusConnection::set_exit_on_close | ( | bool | exit_on_close = true |
) |
void Gio::DBusConnection::start_message_processing | ( | ) |
Glib::RefPtr< Gio::DBusConnection > wrap | ( | GDBusConnection * | object, | |
bool | take_copy = false | |||
) | [related] |
A Glib::wrap() method for this object.
object | The C instance. | |
take_copy | False if the result should take ownership of the C instance. True if it should take a new copy or ref. |