20 const std::function<
void(T*)>&
remove,
21 const std::function<
void(T*)>&
toggled)
26 static dbus_bool_t
add(T* watch,
void* refcon)
31 static void remove(T* watch,
void* refcon)
36 static void toggled(T* watch,
void* refcon)
42 std::function<dbus_bool_t(T*)> m_addHandler;
43 std::function<void(T*)> m_removeHandler;
44 std::function<void(T*)> m_toggledHandler;
static dbus_bool_t add(DBusWatch *watch, void *refcon)
DBusAsyncCallbacks(const std::function< dbus_bool_t(T *)> &add, const std::function< void(T *)> &remove, const std::function< void(T *)> &toggled)
static void toggled(DBusWatch *watch, void *refcon)
static void remove(DBusWatch *watch, void *refcon)
DBusAsyncCallbacks()=default