6 #ifndef SDBUS_HPP_INCLUDE
7 #define SDBUS_HPP_INCLUDE
57 std::shared_ptr<SDBusMessage> message) = 0;
67 const std::string &member) = 0;
83 const std::string &member,
84 const std::string &arg0,
104 const std::string &member,
105 const std::string &arg0,
120 const std::string &member,
137 const std::string &member) = 0;
140 const std::string &member,
141 const std::string &arg0) = 0;
153 std::shared_ptr<SDBusMessage> message)
override;
155 const std::string &member)
override;
157 const std::string &member,
158 const std::string &arg0,
162 const std::string &member,
163 const std::string &arg0,
166 double arg3)
override;
168 const std::string &member,
171 const std::string &member)
override;
173 const std::string &member,
174 const std::string &arg0)
override;
177 const char *m_dbus_destination;
178 const char *m_dbus_path;
179 const char *m_dbus_interface;
180 const uint64_t m_dbus_timeout_usec;
Abstraction around sd_bus interface for calling methods.
Definition: SDBus.hpp:30
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)=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 > call_method(const std::string &member)=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 > 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(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, const std::string &arg0, int arg1, int arg2, double arg3)=0
Wrapper for the sd_bus_call_method(3) function.
Definition: SDBus.hpp:146
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