DBusMsg Class Reference

#include <DBusMsg.h>

List of all members.

Public Member Functions

 DBusMsg ()
 ~DBusMsg ()
 DBusMsg (const DBusMsg &)
DBusMsgoperator= (const DBusMsg &)
void createCall (const std::string &service, const std::string &object, const std::string &interface, const std::string &method)
void createReply (const DBusMsg &m)
void createError (const DBusMsg &m, const std::string &error_msg, const std::string &error_code=std::string(DBUS_ERROR_FAILED))
bool addString (const std::string &val)
bool addInt64 (dbus_int64_t val)
bool addInt32 (dbus_int32_t val)
bool addBoolean (bool val)
bool addDouble (double val)
bool addYCPValue (const YCPValue &val)
YCPValue getYCPValue (int index)
bool isMethodCall (const std::string &interface, const std::string &method) const
int arguments () const
int type () const
bool empty () const
DBusMessage * getMessage () const
void setMessage (DBusMessage *message)
std::string interface () const
std::string method () const
std::string path () const
std::string sender () const

Private Member Functions

bool addValue (int type, void *data)
bool addValue (int type, void *data, DBusMessageIter *i)
bool addYCPValue (const YCPValue &v, DBusMessageIter *i)
bool addYCPValueRaw (const YCPValue &val, DBusMessageIter *i)
void release ()
int typeInt (const YCPValue &val) const
const char * typeStr (const YCPValue &val) const
YCPValue getYCPValue (DBusMessageIter *it)
YCPValue getYCPValueRaw (DBusMessageIter *it, const std::string &ycp_type=std::string())

Private Attributes

DBusMessage * msg


Constructor & Destructor Documentation

DBusMsg::DBusMsg (  ) 

DBusMsg::~DBusMsg (  ) 

References release().

DBusMsg::DBusMsg ( const DBusMsg orig  ) 

References msg, release(), and y2debug.


Member Function Documentation

DBusMsg & DBusMsg::operator= ( const DBusMsg orig  ) 

References msg, and release().

void DBusMsg::createCall ( const std::string &  service,
const std::string &  object,
const std::string &  interface,
const std::string &  method 
)

References msg, and release().

Referenced by DBusServer::callerPid().

void DBusMsg::createReply ( const DBusMsg m  ) 

References getMessage(), msg, and release().

Referenced by DBusServer::run().

void DBusMsg::createError ( const DBusMsg m,
const std::string &  error_msg,
const std::string &  error_code = std::string(DBUS_ERROR_FAILED) 
)

References getMessage(), msg, and release().

Referenced by DBusServer::run().

bool DBusMsg::addString ( const std::string &  val  ) 

References addValue().

Referenced by DBusServer::callerPid(), and DBusServer::run().

bool DBusMsg::addInt64 ( dbus_int64_t  val  ) 

References addValue().

bool DBusMsg::addInt32 ( dbus_int32_t  val  ) 

References addValue().

bool DBusMsg::addBoolean ( bool  val  ) 

References addValue().

bool DBusMsg::addDouble ( double  val  ) 

References addValue().

bool DBusMsg::addYCPValue ( const YCPValue val  ) 

YCPValue DBusMsg::getYCPValue ( int  index  ) 

References msg, and y2debug.

Referenced by getYCPValueRaw().

bool DBusMsg::isMethodCall ( const std::string &  interface,
const std::string &  method 
) const

References msg.

int DBusMsg::arguments (  )  const

References msg, and y2milestone.

int DBusMsg::type (  )  const

References msg.

Referenced by addYCPValueRaw(), getYCPValue(), and getYCPValueRaw().

bool DBusMsg::empty (  )  const

References msg.

Referenced by DBusServer::run().

DBusMessage * DBusMsg::getMessage (  )  const

void DBusMsg::setMessage ( DBusMessage *  message  ) 

References msg.

Referenced by DBusConn::call(), and DBusConn::receive().

std::string DBusMsg::interface (  )  const

References msg.

std::string DBusMsg::method (  )  const

References msg.

std::string DBusMsg::path (  )  const

References msg.

std::string DBusMsg::sender (  )  const

References msg.

bool DBusMsg::addValue ( int  type,
void *  data 
) [private]

bool DBusMsg::addValue ( int  type,
void *  data,
DBusMessageIter *  i 
) [private]

References msg.

bool DBusMsg::addYCPValue ( const YCPValue v,
DBusMessageIter *  i 
) [private]

bool DBusMsg::addYCPValueRaw ( const YCPValue val,
DBusMessageIter *  i 
) [private]

void DBusMsg::release (  )  [private]

int DBusMsg::typeInt ( const YCPValue val  )  const [private]

References YCPElement::isNull(), and y2warning.

Referenced by addYCPValueRaw().

const char * DBusMsg::typeStr ( const YCPValue val  )  const [private]

YCPValue DBusMsg::getYCPValue ( DBusMessageIter *  it  )  [private]

References getYCPValueRaw(), str, type(), y2debug, and y2error.

YCPValue DBusMsg::getYCPValueRaw ( DBusMessageIter *  it,
const std::string &  ycp_type = std::string() 
) [private]


Member Data Documentation

DBusMessage* DBusMsg::msg [private]


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

Generated on Wed Dec 3 07:24:55 2008 for yast2-core by  doxygen 1.5.6