Fcitx
Public Member Functions | Friends | List of all members
fcitx::dbus::Message Class Reference

Basic DBus type of a DBus message. More...

#include <fcitx-utils/dbus/message.h>

Public Member Functions

 FCITX_DECLARE_VIRTUAL_DTOR_MOVE (Message)
 
Message createReply () const
 Create a reply to this message.
 
Message createError (const char *name, const char *message) const
 Create a error reply to this message.
 
MessageType type () const
 Return the message type.
 
bool isError () const
 Check if the message is error.
 
std::string destination () const
 Return the destination of the message.
 
void setDestination (const std::string &dest)
 Set the destination of the message. More...
 
std::string sender () const
 Return the sender of the message.
 
std::string member () const
 Return the member of the message.
 
std::string interface () const
 Return the interface of the message.
 
std::string signature () const
 Return the signature of the message.
 
std::string errorName () const
 Return the error name of the message. More...
 
std::string errorMessage () const
 Return the error message of the message. More...
 
std::string path () const
 Return the path of the message.
 
void * nativeHandle () const
 Return the low level internal pointer of the message. More...
 
Message call (uint64_t usec)
 Synchronously call a dbus method with a timeout in microseconds.
 
std::unique_ptr< SlotcallAsync (uint64_t usec, MessageCallback callback)
 Asynchronously call a dbus method with a timeout in microseconds. More...
 
bool send ()
 Send this message.
 
 operator bool () const
 Check if message is not empty and has no serialization error.
 
bool end () const
 Check if message reaches end.
 
void resetError ()
 Clear serialization error.
 
void rewind ()
 Rewind the message to the beginning.
 
void skip ()
 Skip the next data.
 
std::pair< char, std::string > peekType ()
 Check the next type of data in the message.
 
Messageoperator<< (uint8_t v)
 
Messageoperator<< (bool b)
 
Messageoperator<< (int16_t v)
 
Messageoperator<< (uint16_t v)
 
Messageoperator<< (int32_t v)
 
Messageoperator<< (uint32_t v)
 
Messageoperator<< (int64_t v)
 
Messageoperator<< (uint64_t v)
 
Messageoperator<< (double v)
 
Messageoperator<< (const std::string &s)
 
Messageoperator<< (const char *s)
 
Messageoperator<< (const ObjectPath &o)
 
Messageoperator<< (const Signature &s)
 
Messageoperator<< (const UnixFD &fd)
 
Messageoperator<< (const Container &c)
 
Messageoperator<< (const ContainerEnd &c)
 
Messageoperator<< (const Variant &v)
 
template<typename K , typename V >
Messageoperator<< (const std::pair< K, V > &t)
 
template<typename... Args>
Messageoperator<< (const std::tuple< Args... > &t)
 
template<typename... Args>
Messageoperator<< (const DBusStruct< Args... > &t)
 
template<typename Key , typename Value >
Messageoperator<< (const DictEntry< Key, Value > &t)
 
template<typename T >
Messageoperator<< (const std::vector< T > &t)
 
Messageoperator>> (uint8_t &v)
 
Messageoperator>> (bool &b)
 
Messageoperator>> (int16_t &v)
 
Messageoperator>> (uint16_t &v)
 
Messageoperator>> (int32_t &v)
 
Messageoperator>> (uint32_t &v)
 
Messageoperator>> (int64_t &v)
 
Messageoperator>> (uint64_t &v)
 
Messageoperator>> (double &v)
 
Messageoperator>> (std::string &s)
 
Messageoperator>> (ObjectPath &o)
 
Messageoperator>> (Signature &s)
 
Messageoperator>> (UnixFD &fd)
 
Messageoperator>> (const Container &c)
 
Messageoperator>> (const ContainerEnd &c)
 
Messageoperator>> (Variant &variant)
 
template<typename K , typename V >
Messageoperator>> (std::pair< K, V > &t)
 
template<typename... Args>
Messageoperator>> (std::tuple< Args... > &t)
 
template<typename... Args>
Messageoperator>> (DBusStruct< Args... > &t)
 
template<typename Key , typename Value >
Messageoperator>> (DictEntry< Key, Value > &t)
 
template<typename T >
Messageoperator>> (std::vector< T > &t)
 

Friends

class Bus
 

Detailed Description

Basic DBus type of a DBus message.

Definition at line 224 of file message.h.


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