sbDBusMessage Class Reference

#include <sbDBus.h>

Public Member Functions

nsresult GetArgs (int aFirstArgType,...)
void Assign (DBusMessage *aMessage)
DBusMessage * get () const
 sbDBusMessage (DBusMessage *aMessage=NULL)
virtual ~sbDBusMessage ()

Static Public Member Functions

static nsresult NewMethodCall (sbDBusMessage **aMessage, const char *aDestination, const char *aPath, const char *aInterface, const char *aMethod)

Detailed Description

This class provides support for D-Bus messages.

Definition at line 69 of file sbDBus.h.

Constructor & Destructor Documentation

sbDBusMessage::sbDBusMessage ( DBusMessage *  aMessage = NULL)

Construct a Songbird D-Bus message object using the base D-Bus data record specified by aMessage.

Definition at line 127 of file sbDBus.h.

Here is the caller graph for this function:

sbDBusMessage::~sbDBusMessage ( )

Destroy the Songbird D-Bus message object.

Definition at line 137 of file sbDBus.cpp.

Member Function Documentation

void sbDBusMessage::Assign ( DBusMessage *  aMessage)

Assign the base D-Bus message specified by aMessage to the Songbird D-Bus message object. Unreference any base D-Bus message currently assigned.

aMessageBase D-Bus message to assign.

Definition at line 99 of file sbDBus.cpp.

DBusMessage* sbDBusMessage::get ( ) const

Return the base D-Bus message data record.

Base D-Bus message data record.

Definition at line 118 of file sbDBus.h.

nsresult sbDBusMessage::GetArgs ( int  aFirstArgType,

Get the variable message arguments specified by aFirstArgType and subsequent arguments. See documentation for dbus_message_get_args.

aFirstArgType,...List of arguments to get.

Definition at line 116 of file sbDBus.cpp.

nsresult sbDBusMessage::NewMethodCall ( sbDBusMessage **  aMessage,
const char *  aDestination,
const char *  aPath,
const char *  aInterface,
const char *  aMethod 

Create and return in aMessage a new Songbird D-Bus method call message object with the destination, path, interface, and method specified by aDestination, aPath, aInterface, and aMethod.

aMessageReturned, created message.
aDestinationMessage destination.
aPathMessage path.
aInterfaceMessage interface.
aMethodMessage method.

Definition at line 65 of file sbDBus.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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