#include <sbDBus.h>
|
static nsresult | New (sbDBusConnection **aConnection, DBusBusType aBusType, const char *aDestination, const char *aPath, const char *aInterface) |
|
This class provides support for D-Bus connections.
Definition at line 155 of file sbDBus.h.
sbDBusConnection::~sbDBusConnection |
( |
| ) |
|
|
virtual |
Destroy the Songbird D-Bus connection object.
Definition at line 297 of file sbDBus.cpp.
DBusConnection* sbDBusConnection::get |
( |
| ) |
const |
|
inline |
Return the base D-Bus connection data record.
- Returns
- Base D-Bus connection data record.
Definition at line 205 of file sbDBus.h.
nsresult sbDBusConnection::InvokeMethod |
( |
const char * |
aMethod, |
|
|
sbDBusMessage ** |
aReply, |
|
|
int |
aFirstArgType, |
|
|
|
... |
|
) |
| |
Invoke the method specified by aMethod with the variable parameters starting with aFirstArgType. If aReply is not null, wait for a method reply message and return it in aReply. Use the default message destination, path, and interface set for the connection. See documentation for dbus_message_append_args.
- Parameters
-
aMethod | Method to invoke. |
aReply | Returned reply to method. |
aFirstArgType,... | Variable method arguments. |
Definition at line 217 of file sbDBus.cpp.
nsresult sbDBusConnection::New |
( |
sbDBusConnection ** |
aConnection, |
|
|
DBusBusType |
aBusType, |
|
|
const char * |
aDestination, |
|
|
const char * |
aPath, |
|
|
const char * |
aInterface |
|
) |
| |
|
static |
Create and return in aConnection a new Songbird D-Bus bus connection of the type specified by aBusType. For messages sent via this connection, use the destination, path, and interface specified by aDestination, aPath, and a Interface.
- Parameters
-
aConnection | Returned, created connection. |
aBusType | Type of bus to which to connect. |
aDestination | Destination of messages. |
aPath | Path of messages. |
aInterface | Interface to use when invoking methods. |
Definition at line 157 of file sbDBus.cpp.
The documentation for this class was generated from the following files:
- /home/martin/dev/nightingale-hacking/components/integration/src/linux/sbDBus.h
- /home/martin/dev/nightingale-hacking/components/integration/src/linux/sbDBus.cpp