26 #ifndef AI_IPC_IIPCSERVICE_H
27 #define AI_IPC_IIPCSERVICE_H
29 #include "IpcCommon.h"
63 virtual std::shared_ptr<IAsyncReplyGetter>
invokeMethod(
const Method& method,
const VariantList& args,
int timeoutMs = -1) = 0;
76 virtual bool invokeMethod(
const Method& method,
const VariantList& args, VariantList& replyArgs,
int timeoutMs = -1) = 0;
130 virtual bool enableMonitor(
const std::set<std::string>& matchRules,
const MonitorHandler& handler) = 0;
IPC service that enables us to invoke remote method and emit signals as well as to handle incoming me...
Definition: IIpcService.h:42
virtual std::string registerMethodHandler(const Method &method, const MethodHandler &handler)=0
Register a method handler.
virtual bool start()=0
Start IPC service.
virtual void flush()=0
Flushes all messages out.
virtual std::string getBusAddress() const =0
Returns the dbus address the service is using.
virtual bool disableMonitor()=0
Disables monitor mode for the service.
virtual bool isServiceAvailable(const std::string &serviceName) const =0
Checks if the given service name is currently registered on the bus.
virtual bool unregisterHandler(const std::string ®Id)=0
Unregister a method or signal handler.
virtual bool isValid() const =0
Returns true if we initialised ourselves successfully.
virtual bool enableMonitor(const std::set< std::string > &matchRules, const MonitorHandler &handler)=0
Enables monitor mode for the service.
virtual bool emitSignal(const Signal &signal, const VariantList &args)=0
Emit a signal.
virtual bool stop()=0
Stop IPC service.
virtual bool invokeMethod(const Method &method, const VariantList &args, VariantList &replyArgs, int timeoutMs=-1)=0
Invoke a method and get reply synchronously.
virtual std::string registerSignalHandler(const Signal &signal, const SignalHandler &handler)=0
Register a signal handler.
virtual std::shared_ptr< IAsyncReplyGetter > invokeMethod(const Method &method, const VariantList &args, int timeoutMs=-1)=0
Invoke a method and get reply asynchronously.
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