@@ -168,6 +168,11 @@ namespace sdbus {
168168 return m_proxy.getPropertyAsync (propertyName).onInterface (interfaceName).uponReplyInvoke (std::forward<_Function>(callback), return_slot);
169169 }
170170
171+ std::future<sdbus::Variant> GetAsync (const InterfaceName& interfaceName, const PropertyName& propertyName, with_future_t )
172+ {
173+ return m_proxy.getPropertyAsync (propertyName).onInterface (interfaceName).getResultAsFuture ();
174+ }
175+
171176 template <typename _Function>
172177 PendingAsyncCall GetAsync (std::string_view interfaceName, std::string_view propertyName, _Function&& callback)
173178 {
@@ -180,11 +185,6 @@ namespace sdbus {
180185 return m_proxy.getPropertyAsync (propertyName).onInterface (interfaceName).uponReplyInvoke (std::forward<_Function>(callback), return_slot);
181186 }
182187
183- std::future<sdbus::Variant> GetAsync (const InterfaceName& interfaceName, const PropertyName& propertyName, with_future_t )
184- {
185- return m_proxy.getPropertyAsync (propertyName).onInterface (interfaceName).getResultAsFuture ();
186- }
187-
188188 std::future<sdbus::Variant> GetAsync (std::string_view interfaceName, std::string_view propertyName, with_future_t )
189189 {
190190 return m_proxy.getPropertyAsync (propertyName).onInterface (interfaceName).getResultAsFuture ();
@@ -222,6 +222,11 @@ namespace sdbus {
222222 return m_proxy.setPropertyAsync (propertyName).onInterface (interfaceName).toValue (value).uponReplyInvoke (std::forward<_Function>(callback), return_slot);
223223 }
224224
225+ std::future<void > SetAsync (const InterfaceName& interfaceName, const PropertyName& propertyName, const sdbus::Variant& value, with_future_t )
226+ {
227+ return m_proxy.setPropertyAsync (propertyName).onInterface (interfaceName).toValue (value).getResultAsFuture ();
228+ }
229+
225230 template <typename _Function>
226231 PendingAsyncCall SetAsync (std::string_view interfaceName, std::string_view propertyName, const sdbus::Variant& value, _Function&& callback)
227232 {
@@ -234,11 +239,6 @@ namespace sdbus {
234239 return m_proxy.setPropertyAsync (propertyName).onInterface (interfaceName).toValue (value).uponReplyInvoke (std::forward<_Function>(callback), return_slot);
235240 }
236241
237- std::future<void > SetAsync (const InterfaceName& interfaceName, const PropertyName& propertyName, const sdbus::Variant& value, with_future_t )
238- {
239- return m_proxy.setPropertyAsync (propertyName).onInterface (interfaceName).toValue (value).getResultAsFuture ();
240- }
241-
242242 std::future<void > SetAsync (std::string_view interfaceName, std::string_view propertyName, const sdbus::Variant& value, with_future_t )
243243 {
244244 return m_proxy.setPropertyAsync (propertyName).onInterface (interfaceName).toValue (value).getResultAsFuture ();
@@ -266,6 +266,11 @@ namespace sdbus {
266266 return m_proxy.getAllPropertiesAsync ().onInterface (interfaceName).uponReplyInvoke (std::forward<_Function>(callback), return_slot);
267267 }
268268
269+ std::future<std::map<PropertyName, sdbus::Variant>> GetAllAsync (const InterfaceName& interfaceName, with_future_t )
270+ {
271+ return m_proxy.getAllPropertiesAsync ().onInterface (interfaceName).getResultAsFuture ();
272+ }
273+
269274 template <typename _Function>
270275 PendingAsyncCall GetAllAsync (std::string_view interfaceName, _Function&& callback)
271276 {
@@ -278,11 +283,6 @@ namespace sdbus {
278283 return m_proxy.getAllPropertiesAsync ().onInterface (interfaceName).uponReplyInvoke (std::forward<_Function>(callback), return_slot);
279284 }
280285
281- std::future<std::map<PropertyName, sdbus::Variant>> GetAllAsync (const InterfaceName& interfaceName, with_future_t )
282- {
283- return m_proxy.getAllPropertiesAsync ().onInterface (interfaceName).getResultAsFuture ();
284- }
285-
286286 std::future<std::map<PropertyName, sdbus::Variant>> GetAllAsync (std::string_view interfaceName, with_future_t )
287287 {
288288 return m_proxy.getAllPropertiesAsync ().onInterface (interfaceName).getResultAsFuture ();
@@ -344,6 +344,23 @@ namespace sdbus {
344344 return objectsInterfacesAndProperties;
345345 }
346346
347+ template <typename _Function>
348+ PendingAsyncCall GetManagedObjectsAsync (_Function&& callback)
349+ {
350+ return m_proxy.callMethodAsync (" GetManagedObjects" ).onInterface (INTERFACE_NAME).uponReplyInvoke (std::forward<_Function>(callback));
351+ }
352+
353+ template <typename _Function>
354+ [[nodiscard]] Slot GetManagedObjectsAsync (_Function&& callback, return_slot_t )
355+ {
356+ return m_proxy.callMethodAsync (" GetManagedObjects" ).onInterface (INTERFACE_NAME).uponReplyInvoke (std::forward<_Function>(callback), return_slot);
357+ }
358+
359+ std::future<std::map<sdbus::ObjectPath, std::map<sdbus::InterfaceName, std::map<PropertyName, sdbus::Variant>>>> GetManagedObjectsAsync (with_future_t )
360+ {
361+ return m_proxy.callMethodAsync (" GetManagedObjects" ).onInterface (INTERFACE_NAME).getResultAsFuture <std::map<sdbus::ObjectPath, std::map<sdbus::InterfaceName, std::map<PropertyName, sdbus::Variant>>>>();
362+ }
363+
347364 private:
348365 sdbus::IProxy& m_proxy;
349366 };
0 commit comments