swift
Public Member Functions | Static Public Member Functions | Friends | List of all members
XSwiftBus::CDBusMessage Class Reference

DBus Message. More...

Public Member Functions

 ~CDBusMessage ()
 Destructor.
 
CDBusMessageoperator= (CDBusMessage other)
 Assignment operator.
 
bool isMethodCall () const
 Is this message a method call?
 
bool wantsReply () const
 Does this message want a reply?
 
std::string getSender () const
 Get the message sender.
 
dbus_uint32_t getSerial () const
 Get the message serial. This is usally required for reply message.
 
std::string_view getInterfaceName () const
 Get the called interface name.
 
std::string_view getObjectPath () const
 Get the called object path.
 
std::string_view getMethodName () const
 Get the called method name.
 
void beginArgumentWrite ()
 Begin writing argument.
 
void beginArgumentRead ()
 Begin reading arguments.
 
 CDBusMessage (DBusMessage *message)
 Constructor.
 
 CDBusMessage (const CDBusMessage &other)
 Constructor.
 
void appendArgument (bool value)
 Append argument. Make sure to call. More...
 
void appendArgument (const char *value)
 Append argument. Make sure to call. More...
 
void appendArgument (const std::string &value)
 Append argument. Make sure to call. More...
 
void appendArgument (int value)
 Append argument. Make sure to call. More...
 
void appendArgument (double value)
 Append argument. Make sure to call. More...
 
void appendArgument (const std::vector< bool > &array)
 Append argument. Make sure to call. More...
 
void appendArgument (const std::vector< double > &array)
 Append argument. Make sure to call. More...
 
void appendArgument (const std::vector< std::string > &array)
 Append argument. Make sure to call. More...
 
void getArgument (int &value)
 Read single argument. Make sure to call. More...
 
void getArgument (bool &value)
 Read single argument. Make sure to call. More...
 
void getArgument (double &value)
 Read single argument. Make sure to call. More...
 
void getArgument (std::string &value)
 Read single argument. Make sure to call. More...
 
void getArgument (std::vector< int > &value)
 Read single argument. Make sure to call. More...
 
void getArgument (std::vector< bool > &value)
 Read single argument. Make sure to call. More...
 
void getArgument (std::vector< double > &value)
 Read single argument. Make sure to call. More...
 
void getArgument (std::vector< std::string > &value)
 Read single argument. Make sure to call. More...
 

Static Public Member Functions

static CDBusMessage createSignal (const std::string &path, const std::string &interfaceName, const std::string &signalName)
 Creates a DBus message containing a DBus signal.
 
static CDBusMessage createReply (const std::string &destination, dbus_uint32_t serial)
 Creates a DBus message containing a DBus reply.
 

Friends

class CDBusConnection
 

Detailed Description

DBus Message.

Definition at line 16 of file dbusmessage.h.

Member Function Documentation

◆ appendArgument() [1/8]

void XSwiftBus::CDBusMessage::appendArgument ( bool  value)

Append argument. Make sure to call.

See also
beginArgumentWrite() before.

Definition at line 55 of file dbusmessage.cpp.

◆ appendArgument() [2/8]

void XSwiftBus::CDBusMessage::appendArgument ( const char *  value)

Append argument. Make sure to call.

See also
beginArgumentWrite() before.

Definition at line 61 of file dbusmessage.cpp.

◆ appendArgument() [3/8]

void XSwiftBus::CDBusMessage::appendArgument ( const std::string &  value)

Append argument. Make sure to call.

See also
beginArgumentWrite() before.

Definition at line 66 of file dbusmessage.cpp.

◆ appendArgument() [4/8]

void XSwiftBus::CDBusMessage::appendArgument ( const std::vector< bool > &  array)

Append argument. Make sure to call.

See also
beginArgumentWrite() before.

Definition at line 83 of file dbusmessage.cpp.

◆ appendArgument() [5/8]

void XSwiftBus::CDBusMessage::appendArgument ( const std::vector< double > &  array)

Append argument. Make sure to call.

See also
beginArgumentWrite() before.

Definition at line 102 of file dbusmessage.cpp.

◆ appendArgument() [6/8]

void XSwiftBus::CDBusMessage::appendArgument ( const std::vector< std::string > &  array)

Append argument. Make sure to call.

See also
beginArgumentWrite() before.

Definition at line 112 of file dbusmessage.cpp.

◆ appendArgument() [7/8]

void XSwiftBus::CDBusMessage::appendArgument ( double  value)

Append argument. Make sure to call.

See also
beginArgumentWrite() before.

Definition at line 78 of file dbusmessage.cpp.

◆ appendArgument() [8/8]

void XSwiftBus::CDBusMessage::appendArgument ( int  value)

Append argument. Make sure to call.

See also
beginArgumentWrite() before.

Definition at line 72 of file dbusmessage.cpp.

◆ getArgument() [1/8]

void XSwiftBus::CDBusMessage::getArgument ( bool &  value)

Read single argument. Make sure to call.

See also
beginArgumentRead() before.

Definition at line 136 of file dbusmessage.cpp.

◆ getArgument() [2/8]

void XSwiftBus::CDBusMessage::getArgument ( double &  value)

Read single argument. Make sure to call.

See also
beginArgumentRead() before.

Definition at line 146 of file dbusmessage.cpp.

◆ getArgument() [3/8]

void XSwiftBus::CDBusMessage::getArgument ( int &  value)

Read single argument. Make sure to call.

See also
beginArgumentRead() before.

Definition at line 127 of file dbusmessage.cpp.

◆ getArgument() [4/8]

void XSwiftBus::CDBusMessage::getArgument ( std::string &  value)

Read single argument. Make sure to call.

See also
beginArgumentRead() before.

Definition at line 153 of file dbusmessage.cpp.

◆ getArgument() [5/8]

void XSwiftBus::CDBusMessage::getArgument ( std::vector< bool > &  value)

Read single argument. Make sure to call.

See also
beginArgumentRead() before.

Definition at line 176 of file dbusmessage.cpp.

◆ getArgument() [6/8]

void XSwiftBus::CDBusMessage::getArgument ( std::vector< double > &  value)

Read single argument. Make sure to call.

See also
beginArgumentRead() before.

Definition at line 192 of file dbusmessage.cpp.

◆ getArgument() [7/8]

void XSwiftBus::CDBusMessage::getArgument ( std::vector< int > &  value)

Read single argument. Make sure to call.

See also
beginArgumentRead() before.

Definition at line 162 of file dbusmessage.cpp.

◆ getArgument() [8/8]

void XSwiftBus::CDBusMessage::getArgument ( std::vector< std::string > &  value)

Read single argument. Make sure to call.

See also
beginArgumentRead() before.

Definition at line 206 of file dbusmessage.cpp.


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