Back to index

unity  6.0.0
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Private Attributes
unity::glib::DBusProxy Class Reference

#include <GLibDBusProxy.h>

Inheritance diagram for unity::glib::DBusProxy:
Inheritance graph
Collaboration diagram for unity::glib::DBusProxy:
Collaboration graph

List of all members.


class  Impl

Public Types

typedef std::shared_ptr
< DBusProxy
typedef sigc::slot< void,
GVariant * > 

Public Member Functions

 DBusProxy (std::string const &name, std::string const &object_path, std::string const &interface_name, GBusType bus_type=G_BUS_TYPE_SESSION, GDBusProxyFlags flags=G_DBUS_PROXY_FLAGS_NONE)
 ~DBusProxy ()
void Call (std::string const &method_name, GVariant *parameters=NULL, ReplyCallback callback=sigc::ptr_fun(&NoReplyCallback), GCancellable *cancellable=NULL, GDBusCallFlags flags=G_DBUS_CALL_FLAGS_NONE, int timeout_msec=-1)
void Connect (std::string const &signal_name, ReplyCallback callback)
bool IsConnected ()

Static Public Member Functions

static void NoReplyCallback (GVariant *v)

Public Attributes

sigc::signal< void > connected
sigc::signal< void > disconnected

Private Attributes

std::unique_ptr< Implpimpl

Detailed Description

Definition at line 36 of file GLibDBusProxy.h.

Member Typedef Documentation

typedef std::shared_ptr<DBusProxy> unity::glib::DBusProxy::Ptr

Definition at line 39 of file GLibDBusProxy.h.

typedef sigc::slot<void, GVariant*> unity::glib::DBusProxy::ReplyCallback

Definition at line 40 of file GLibDBusProxy.h.

Constructor & Destructor Documentation

unity::glib::DBusProxy::DBusProxy ( std::string const &  name,
std::string const &  object_path,
std::string const &  interface_name,
GBusType  bus_type = G_BUS_TYPE_SESSION,
GDBusProxyFlags  flags = G_DBUS_PROXY_FLAGS_NONE 

Definition at line 294 of file GLibDBusProxy.cpp.

  : pimpl(new Impl(this, name, object_path, interface_name, bus_type, flags))

Definition at line 302 of file GLibDBusProxy.cpp.


Member Function Documentation

void unity::glib::DBusProxy::Call ( std::string const &  method_name,
GVariant *  parameters = NULL,
ReplyCallback  callback = sigc::ptr_fun(&NoReplyCallback),
GCancellable *  cancellable = NULL,
GDBusCallFlags  flags = G_DBUS_CALL_FLAGS_NONE,
int  timeout_msec = -1 

Definition at line 305 of file GLibDBusProxy.cpp.

  pimpl->Call(method_name, parameters, callback, cancellable, flags,

Here is the caller graph for this function:

void unity::glib::DBusProxy::Connect ( std::string const &  signal_name,
ReplyCallback  callback 

Definition at line 316 of file GLibDBusProxy.cpp.

  pimpl->Connect(signal_name, callback);

Here is the caller graph for this function:

Definition at line 321 of file GLibDBusProxy.cpp.

  return pimpl->IsConnected();
static void unity::glib::DBusProxy::NoReplyCallback ( GVariant *  v) [inline, static]

Definition at line 62 of file GLibDBusProxy.h.


Member Data Documentation

Definition at line 59 of file GLibDBusProxy.h.

Definition at line 60 of file GLibDBusProxy.h.

std::unique_ptr<Impl> unity::glib::DBusProxy::pimpl [private]

Definition at line 66 of file GLibDBusProxy.h.

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