6#ifndef SDBUS_HPP_INCLUDE
7#define SDBUS_HPP_INCLUDE
58 std::shared_ptr<SDBusMessage> message) = 0;
68 const std::string &member) = 0;
84 const std::string &member,
85 const std::string &arg0,
105 const std::string &member,
106 const std::string &arg0,
121 const std::string &member,
138 const std::string &member) = 0;
141 const std::string &member,
142 const std::string &arg0) = 0;
154 std::shared_ptr<SDBusMessage> message)
override;
156 const std::string &member)
override;
158 const std::string &member,
159 const std::string &arg0,
163 const std::string &member,
164 const std::string &arg0,
167 double arg3)
override;
169 const std::string &member,
172 const std::string &member)
override;
174 const std::string &member,
175 const std::string &arg0)
override;
178 const char *m_dbus_destination;
179 const char *m_dbus_path;
180 const char *m_dbus_interface;
181 const uint64_t m_dbus_timeout_usec;
Abstraction around sd_bus interface for calling methods.
Definition SDBus.hpp:31
virtual std::shared_ptr< SDBusMessage > call_method(std::shared_ptr< SDBusMessage > message)=0
Wrapper for the sd_bus_call(3) function.
virtual std::shared_ptr< SDBusMessage > call_method(const std::string &member)=0
Wrapper for the sd_bus_call_method(3) function.
static std::unique_ptr< SDBus > make_unique(void)
Factory method for SDBus interface.
Definition SDBus.cpp:41
virtual std::shared_ptr< SDBusMessage > make_call_message(const std::string &member)=0
Wrapper for the sd_bus_message_new_method_call(3) function.
virtual std::shared_ptr< SDBusMessage > call_method(const std::string &member, const std::string &arg0)=0
virtual std::shared_ptr< SDBusMessage > call_method(const std::string &member, const std::string &arg0, int arg1, int arg2, double arg3)=0
Wrapper for the sd_bus_call_method(3) function.
virtual std::shared_ptr< SDBusMessage > call_method(const std::string &member, int arg0)=0
Wrapper for the sd_bus_call_method(3) function.
virtual std::shared_ptr< SDBusMessage > call_method(const std::string &member, const std::string &arg0, int arg1, int arg2)=0
Wrapper for the sd_bus_call_method(3) function.
SDBusImp(const SDBusImp &other)=delete
std::shared_ptr< SDBusMessage > call_method(std::shared_ptr< SDBusMessage > message) override
Wrapper for the sd_bus_call(3) function.
Definition SDBus.cpp:66
std::shared_ptr< SDBusMessage > make_call_message(const std::string &member) override
Wrapper for the sd_bus_message_new_method_call(3) function.
Definition SDBus.cpp:184
SDBusImp & operator=(const SDBusImp &other)=delete
virtual ~SDBusImp()
Definition SDBus.cpp:59
SDBusImp()
Definition SDBus.cpp:46