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)
inline

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 ( )
virtual

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.

Parameters
aMessageBase D-Bus message to assign.

Definition at line 99 of file sbDBus.cpp.

DBusMessage* sbDBusMessage::get ( ) const
inline

Return the base D-Bus message data record.

Returns
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.

Parameters
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 
)
static

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.

Parameters
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: