new_for_bus
Description:
[ Version ( deprecated_since = "vala-0.36" , replacement = "DBusObjectManagerClient.for_bus" ) ]
public static async DBusObjectManagerClient new_for_bus (BusType bus_type, DBusObjectManagerClientFlags flags, string name, string object_path, owned DBusProxyTypeFunc? get_proxy_type_func, Cancellable? cancellable = null) throws Error
Warning: new_for_bus is deprecated since vala-0.36. Use DBusObjectManagerClient.for_bus.
Like @new but takes a BusType instead of a DBusConnection.
This is an asynchronous failable constructor. When the result is ready, callback will be invoked in the thread-default main
loop of the thread you are calling this method from. You can then call new_for_bus.end to get the
result. See
DBusObjectManagerClient.for_bus_sync for the synchronous version.
Parameters:
| bus_type |
A BusType. |
| flags |
Zero or more flags from the DBusObjectManagerClientFlags enumeration. |
| name |
The owner of the control object (unique or well-known name). |
| object_path |
The object path of the control object. |
| get_proxy_type_func |
A DBusProxyTypeFunc function or null to always construct DBusProxy proxies. |
| cancellable |
A Cancellable or null |
| callback |
A TaskReadyCallback to call when the request is satisfied. |
| get_proxy_type_destroy_notify |
Free function for |
| get_proxy_type_user_data |
User data to pass to |
| user_data |
The data to pass to |