13 #ifndef DBUSCXX_ERRORMESSAGE_H
14 #define DBUSCXX_ERRORMESSAGE_H
33 ErrorMessage( std::shared_ptr<const CallMessage> callMessage,
const std::string&
name,
const std::string&
message );
36 static std::shared_ptr<ErrorMessage>
create();
38 static std::shared_ptr<ErrorMessage>
create( std::shared_ptr<const CallMessage> callMessage,
const std::string&
name,
const std::string&
message );
40 std::string
name()
const;
42 void set_name(
const std::string& n );
Represents a DBus Error message.
Definition: errormessage.h:28
std::string name() const
Definition: errormessage.cpp:43
std::string message() const
Definition: errormessage.cpp:61
void set_message(const std::string &message)
Definition: errormessage.cpp:76
static std::shared_ptr< ErrorMessage > create()
Definition: errormessage.cpp:31
virtual MessageType type() const
Definition: errormessage.cpp:57
ErrorMessage()
Definition: errormessage.cpp:19
bool set_reply_serial(uint32_t)
Definition: errormessage.cpp:81
uint32_t reply_serial() const
Definition: errormessage.cpp:87
bool operator==(const ErrorMessage &) const
Definition: errormessage.cpp:39
void throw_error()
Throw the error associated with this ErrorMessage.
Definition: errormessage.cpp:97
void set_name(const std::string &n)
Definition: errormessage.cpp:53
This class represents a basic DBus message and also serves as a base class for the specialized messag...
Definition: message.h:43
Global DBus namespace, where everything happens.
Definition: callmessage.cpp:18
MessageType
Definition: enums.h:81