|
Fcitx
|
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< Slot > | callAsync (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. | |
| Message & | operator<< (uint8_t v) |
| Message & | operator<< (bool b) |
| Message & | operator<< (int16_t v) |
| Message & | operator<< (uint16_t v) |
| Message & | operator<< (int32_t v) |
| Message & | operator<< (uint32_t v) |
| Message & | operator<< (int64_t v) |
| Message & | operator<< (uint64_t v) |
| Message & | operator<< (double v) |
| Message & | operator<< (const std::string &s) |
| Message & | operator<< (const char *s) |
| Message & | operator<< (const ObjectPath &o) |
| Message & | operator<< (const Signature &s) |
| Message & | operator<< (const UnixFD &fd) |
| Message & | operator<< (const Container &c) |
| Message & | operator<< (const ContainerEnd &c) |
| Message & | operator<< (const Variant &v) |
| template<typename K , typename V > | |
| Message & | operator<< (const std::pair< K, V > &t) |
| template<typename... Args> | |
| Message & | operator<< (const std::tuple< Args... > &t) |
| template<typename... Args> | |
| Message & | operator<< (const DBusStruct< Args... > &t) |
| template<typename Key , typename Value > | |
| Message & | operator<< (const DictEntry< Key, Value > &t) |
| template<typename T > | |
| Message & | operator<< (const std::vector< T > &t) |
| Message & | operator>> (uint8_t &v) |
| Message & | operator>> (bool &b) |
| Message & | operator>> (int16_t &v) |
| Message & | operator>> (uint16_t &v) |
| Message & | operator>> (int32_t &v) |
| Message & | operator>> (uint32_t &v) |
| Message & | operator>> (int64_t &v) |
| Message & | operator>> (uint64_t &v) |
| Message & | operator>> (double &v) |
| Message & | operator>> (std::string &s) |
| Message & | operator>> (ObjectPath &o) |
| Message & | operator>> (Signature &s) |
| Message & | operator>> (UnixFD &fd) |
| Message & | operator>> (const Container &c) |
| Message & | operator>> (const ContainerEnd &c) |
| Message & | operator>> (Variant &variant) |
| template<typename K , typename V > | |
| Message & | operator>> (std::pair< K, V > &t) |
| template<typename... Args> | |
| Message & | operator>> (std::tuple< Args... > &t) |
| template<typename... Args> | |
| Message & | operator>> (DBusStruct< Args... > &t) |
| template<typename Key , typename Value > | |
| Message & | operator>> (DictEntry< Key, Value > &t) |
| template<typename T > | |
| Message & | operator>> (std::vector< T > &t) |
Friends | |
| class | Bus |
1.8.13