26 #ifndef AI_IPC_ASYNCREEPLYSENDER_H
27 #define AI_IPC_ASYNCREEPLYSENDER_H
29 #include "IpcCommon.h"
33 #include <dbus/dbus.h>
45 AsyncReplySender(
const std::weak_ptr<DbusConnection>& dbusConnection, DBusMessage *dbusRequestMsg, DBusMessage *dbusReplyMsg,
const VariantList& argList);
51 virtual bool sendReply(
const VariantList& replyArgs)
override;
59 const std::weak_ptr<DbusConnection> mDbusConnection;
61 DBusMessage *mDbusReplyMsg;
63 const VariantList mArgList;
65 std::string mSenderName;
Definition: AsyncReplySender.h:42
virtual std::string getSenderName() const override
Gets the unique name of the connection which originated this message.
Definition: AsyncReplySender.cpp:106
virtual uid_t getSenderUid() const override
Get Id of the user (unix user Id) who invoked the method.
Definition: AsyncReplySender.cpp:115
virtual VariantList getMethodCallArguments() const override
Get method call arguments.
Definition: AsyncReplySender.cpp:72
virtual bool sendReply(const VariantList &replyArgs) override
Send reply.
Definition: AsyncReplySender.cpp:81
Helper class to send reply of a method call asynchronously.
Definition: IpcCommon.h:117