dbus-cxx logo
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
DBus::ErrorMessage Class Reference

Represents a DBus Error message. More...

#include <errormessage.h>

Inheritance diagram for DBus::ErrorMessage:
Inheritance graph
[legend]

Public Types

typedef DBusCxxPointer
< ErrorMessage
pointer
 
typedef DBusCxxWeakPointer
< ErrorMessage
weak_pointer
 
- Public Types inherited from DBus::Message
typedef DBusCxxPointer< Messagepointer
 
typedef DBusCxxPointer< const
Message
const_pointer
 
typedef DBusCxxWeakPointer
< Message
weak_pointer
 
typedef MessageIterator iterator
 
typedef MessageAppendIterator append_iterator
 

Public Member Functions

const char * name () const
 
bool set_name (const std::string &n)
 
bool operator== (const ErrorMessage &) const
 
- Public Member Functions inherited from DBus::Message
DBusCxxPointer< ReturnMessagecreate_reply () const
 
virtual ~Message ()
 
Messageoperator= (const Message &m)
 
bool operator== (const Message &other)
 
bool is_valid () const
 
void invalidate ()
 
 operator bool () const
 
uint32_t serial () const
 
int type () const
 
void set_auto_start (bool auto_start)
 
bool auto_start ()
 
bool set_destination (const std::string &s)
 
const char * destination () const
 
bool set_sender (const std::string &s)
 
const char * sender () const
 
bool is_call (const std::string &interface, const std::string &method) const
 
bool is_signal (const std::string &interface, const std::string &signal_name) const
 
bool is_error (const std::string &error_name) const
 
bool has_destination (const std::string &name) const
 
bool has_sender (const std::string &name) const
 
template<typename T >
iterator operator>> (T &value) const
 
template<typename T >
append_iterator operator<< (const T &value)
 
iterator begin () const
 
iterator end () const
 
append_iterator append ()
 
DBusMessage * cobj () const
 

Static Public Member Functions

static pointer create ()
 
static pointer create (DBusMessage *cobj)
 
static pointer create (Message::pointer msg)
 
static pointer create (Message::const_pointer msg, const std::string &name, const std::string &message)
 
- Static Public Member Functions inherited from DBus::Message
static pointer create (MessageType type)
 
static pointer create (DBusMessage *cobj=NULL, CreateMethod m=CREATE_ALIAS)
 
static pointer create (Message::pointer other, CreateMethod m=CREATE_ALIAS)
 
static pointer create (Message::const_pointer other, CreateMethod m=CREATE_ALIAS)
 

Protected Member Functions

 ErrorMessage ()
 
 ErrorMessage (DBusMessage *cobj)
 
 ErrorMessage (Message::pointer msg)
 
 ErrorMessage (Message::const_pointer msg, const std::string &name, const std::string &message)
 
- Protected Member Functions inherited from DBus::Message
 Message (MessageType type)
 
 Message (DBusMessage *cobj=NULL, CreateMethod m=CREATE_ALIAS)
 
 Message (Message::pointer other, CreateMethod m=CREATE_ALIAS)
 
 Message (Message::const_pointer other, CreateMethod m=CREATE_ALIAS)
 

Additional Inherited Members

- Protected Attributes inherited from DBus::Message
DBusMessage * m_cobj
 
bool m_valid
 

Detailed Description

Represents a DBus Error message.

This class inherits from Message and uses the dbus_message_* methods to create an interface for an error message.

Author
Rick L Vinyard Jr rviny.nosp@m.ard@.nosp@m.cs.nm.nosp@m.su.e.nosp@m.du

Member Typedef Documentation

typedef DBusCxxPointer<ErrorMessage> DBus::ErrorMessage::pointer
typedef DBusCxxWeakPointer<ErrorMessage> DBus::ErrorMessage::weak_pointer

Constructor & Destructor Documentation

DBus::ErrorMessage::ErrorMessage ( )
protected

References DBus::Message::m_cobj.

Referenced by create().

DBus::ErrorMessage::ErrorMessage ( DBusMessage *  cobj)
protected

References DBus::Message::m_cobj.

DBus::ErrorMessage::ErrorMessage ( Message::pointer  msg)
protected
DBus::ErrorMessage::ErrorMessage ( Message::const_pointer  msg,
const std::string &  name,
const std::string &  message 
)
protected

References DBus::Message::m_cobj.

Member Function Documentation

ErrorMessage::pointer DBus::ErrorMessage::create ( )
static
Examples:
caller_raw.cpp.

References ErrorMessage().

Referenced by DBus::Method< T_return, T_arg1, T_arg2, T_arg3, T_arg4, T_arg5, T_arg6, T_arg7 >::handle_call_message(), DBus::Method< T_return, nil, nil, nil, nil, nil, nil, nil >::handle_call_message(), DBus::Method< T_return, T_arg1, nil, nil, nil, nil, nil, nil >::handle_call_message(), DBus::Method< T_return, T_arg1, T_arg2, nil, nil, nil, nil, nil >::handle_call_message(), DBus::Method< T_return, T_arg1, T_arg2, T_arg3, nil, nil, nil, nil >::handle_call_message(), DBus::Method< T_return, T_arg1, T_arg2, T_arg3, T_arg4, nil, nil, nil >::handle_call_message(), DBus::Method< T_return, T_arg1, T_arg2, T_arg3, T_arg4, T_arg5, nil, nil >::handle_call_message(), DBus::Method< T_return, T_arg1, T_arg2, T_arg3, T_arg4, T_arg5, T_arg6, nil >::handle_call_message(), DBus::Method< void, nil, nil, nil, nil, nil, nil, nil >::handle_call_message(), DBus::Method< void, T_arg1, nil, nil, nil, nil, nil, nil >::handle_call_message(), DBus::Method< void, T_arg1, T_arg2, nil, nil, nil, nil, nil >::handle_call_message(), DBus::Method< void, T_arg1, T_arg2, T_arg3, nil, nil, nil, nil >::handle_call_message(), DBus::Method< void, T_arg1, T_arg2, T_arg3, T_arg4, nil, nil, nil >::handle_call_message(), DBus::Method< void, T_arg1, T_arg2, T_arg3, T_arg4, T_arg5, nil, nil >::handle_call_message(), DBus::Method< void, T_arg1, T_arg2, T_arg3, T_arg4, T_arg5, T_arg6, nil >::handle_call_message(), and DBus::Method< void, T_arg1, T_arg2, T_arg3, T_arg4, T_arg5, T_arg6, T_arg7 >::handle_call_message().

ErrorMessage::pointer DBus::ErrorMessage::create ( DBusMessage *  cobj)
static

References ErrorMessage().

ErrorMessage::pointer DBus::ErrorMessage::create ( Message::pointer  msg)
static

References ErrorMessage().

ErrorMessage::pointer DBus::ErrorMessage::create ( Message::const_pointer  msg,
const std::string &  name,
const std::string &  message 
)
static

References ErrorMessage().

const char * DBus::ErrorMessage::name ( ) const

References DBus::Message::m_cobj.

Referenced by operator==().

bool DBus::ErrorMessage::operator== ( const ErrorMessage m) const

References DBus::Message::m_cobj, and name().

bool DBus::ErrorMessage::set_name ( const std::string &  n)

References DBus::Message::m_cobj.


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

Generated on Sun Mar 19 2017 14:54:27 for dbus-cxx by doxygen 1.8.8