23 #ifndef IDOBBYIPCUTILS_H
24 #define IDOBBYIPCUTILS_H
26 #include <IIpcService.h>
33 #include <sys/types.h>
34 #include <sys/sysmacros.h>
79 const AI_IPC::VariantList &args,
80 int timeoutMs = -1)
const = 0;
97 const AI_IPC::VariantList &args,
98 AI_IPC::VariantList &replyArgs)
const = 0;
114 const AI_IPC::VariantList &args)
const = 0;
128 const std::string &serviceName)
const = 0;
157 const std::string &serviceName,
158 const std::function<
void(
bool)> &handlerFunc) = 0;
178 const AI_IPC::SignalHandler &handlerFunc) = 0;
Definition: IDobbyIPCUtils.h:47
virtual std::string ipcDbusSocketPath(const BusType &bus) const =0
Returns just the path to the socket for the dbus daemon.
virtual int ipcRegisterServiceHandler(const BusType &bus, const std::string &serviceName, const std::function< void(bool)> &handlerFunc)=0
Registers a callback function that will be called when the given service is added or removed from the...
virtual bool ipcInvokeMethod(const BusType &bus, const AI_IPC::Method &method, const AI_IPC::VariantList &args, AI_IPC::VariantList &replyArgs) const =0
Invokes the ipc method.
virtual void ipcUnregisterHandler(const BusType &bus, int handlerId)=0
Unregisters either a service or signal handler.
virtual std::string ipcDbusAddress(const BusType &bus) const =0
Returns complete address to the dbus daemon.
virtual std::shared_ptr< AI_IPC::IAsyncReplyGetter > ipcInvokeMethod(const BusType &bus, const AI_IPC::Method &method, const AI_IPC::VariantList &args, int timeoutMs=-1) const =0
Wrappers around the IPC services in the Dobby daemon.
virtual bool ipcEmitSignal(const BusType &bus, const AI_IPC::Signal &signal, const AI_IPC::VariantList &args) const =0
Sends out a signal over dbus.
virtual int ipcRegisterSignalHandler(const BusType &bus, const AI_IPC::Signal &signal, const AI_IPC::SignalHandler &handlerFunc)=0
Registers a callback function that will be called when the given signal is received on the bus.
BusType
The type of dbus to call methods on / emit signals.
Definition: IDobbyIPCUtils.h:60
virtual bool ipcServiceAvailable(const BusType &bus, const std::string &serviceName) const =0
Queries if the given service is available on the bus.
Method identified by a service, object, interface and method name itself.
Definition: IpcCommon.h:90
Method identified by object, interface and signal name itself.
Definition: IpcCommon.h:105