Top | ![]() |
![]() |
![]() |
![]() |
guint | access-technologies | Read / Write |
GVariant * | signal-quality | Read / Write |
char * | sim | Read / Write |
int | state | Read / Write |
guint | unlock-required | Read / Write |
char * | operator-name | Read / Write |
PhoshMMDBusModem * | modem | Read / Write |
PhoshMMDBusModemModem3gpp * | modem-modem3gpp | Read / Write |
GInterface ├── PhoshMMDBusModem ├── PhoshMMDBusModemModem3gpp ╰── PhoshMMDBusObject GObject ├── GDBusInterfaceSkeleton │ ├── PhoshMMDBusModemModem3gppSkeleton │ ╰── PhoshMMDBusModemSkeleton ├── GDBusObjectManagerClient │ ╰── PhoshMMDBusObjectManagerClient ├── GDBusObjectProxy │ ╰── PhoshMMDBusObjectProxy ├── GDBusObjectSkeleton │ ╰── PhoshMMDBusObjectSkeleton ╰── GDBusProxy ├── PhoshMMDBusModemModem3gppProxy ╰── PhoshMMDBusModemProxy
PhoshMMDBusModem requires GObject.
PhoshMMDBusModemModem3gpp requires GObject.
PhoshMMDBusObject requires GDBusObject and GObject.
PhoshMMDBusModemProxy implements GDBusInterface, GInitable, GAsyncInitable and PhoshMMDBusModem.
PhoshMMDBusModemSkeleton implements GDBusInterface and PhoshMMDBusModem.
PhoshMMDBusModemModem3gppProxy implements GDBusInterface, GInitable, GAsyncInitable and PhoshMMDBusModemModem3gpp.
PhoshMMDBusModemModem3gppSkeleton implements GDBusInterface and PhoshMMDBusModemModem3gpp.
PhoshMMDBusObjectProxy implements GDBusObject and PhoshMMDBusObject.
PhoshMMDBusObjectSkeleton implements GDBusObject and PhoshMMDBusObject.
PhoshMMDBusObjectManagerClient implements GInitable, GAsyncInitable and GDBusObjectManager.
PhoshMMDBusModem is implemented by PhoshMMDBusModemProxy and PhoshMMDBusModemSkeleton.
PhoshMMDBusModemModem3gpp is implemented by PhoshMMDBusModemModem3gppProxy and PhoshMMDBusModemModem3gppSkeleton.
PhoshMMDBusObject is implemented by PhoshMMDBusObjectProxy and PhoshMMDBusObjectSkeleton.
GDBusInterfaceInfo *
phosh_mm_dbus_modem_interface_info (void
);
Gets a machine-readable description of the org.freedesktop.ModemManager1.Modem D-Bus interface.
guint phosh_mm_dbus_modem_override_properties (GObjectClass *klass
,guint property_id_begin
);
Overrides all GObject properties in the PhoshMMDBusModem interface for a concrete class. The properties are overridden in the order they are defined.
klass |
The class structure for a GObject derived class. |
|
property_id_begin |
The property id to assign to the first overridden property. |
GVariant *
phosh_mm_dbus_modem_get_signal_quality
(PhoshMMDBusModem *object
);
Gets the value of the "SignalQuality" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where object
was constructed. Use phosh_mm_dbus_modem_dup_signal_quality()
if on another thread.
[skip]
The property value or NULL
if the property is not set. Do not free the returned value, it belongs to object
.
[transfer none][nullable]
GVariant *
phosh_mm_dbus_modem_dup_signal_quality
(PhoshMMDBusModem *object
);
Gets a copy of the "SignalQuality" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
[skip]
The property value or NULL
if the property is not set. The returned value should be freed with g_variant_unref()
.
[transfer full][nullable]
void phosh_mm_dbus_modem_set_signal_quality (PhoshMMDBusModem *object
,GVariant *value
);
Sets the "SignalQuality" D-Bus property to value
.
Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
[skip]
guint
phosh_mm_dbus_modem_get_access_technologies
(PhoshMMDBusModem *object
);
Gets the value of the "AccessTechnologies" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
[skip]
void phosh_mm_dbus_modem_set_access_technologies (PhoshMMDBusModem *object
,guint value
);
Sets the "AccessTechnologies" D-Bus property to value
.
Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
[skip]
guint
phosh_mm_dbus_modem_get_unlock_required
(PhoshMMDBusModem *object
);
Gets the value of the "UnlockRequired" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
[skip]
void phosh_mm_dbus_modem_set_unlock_required (PhoshMMDBusModem *object
,guint value
);
Sets the "UnlockRequired" D-Bus property to value
.
Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
[skip]
gint
phosh_mm_dbus_modem_get_state (PhoshMMDBusModem *object
);
Gets the value of the "State" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
[skip]
void phosh_mm_dbus_modem_set_state (PhoshMMDBusModem *object
,gint value
);
Sets the "State" D-Bus property to value
.
Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
[skip]
const gchar *
phosh_mm_dbus_modem_get_sim (PhoshMMDBusModem *object
);
Gets the value of the "Sim" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where object
was constructed. Use phosh_mm_dbus_modem_dup_sim()
if on another thread.
[skip]
The property value or NULL
if the property is not set. Do not free the returned value, it belongs to object
.
[transfer none][nullable]
gchar *
phosh_mm_dbus_modem_dup_sim (PhoshMMDBusModem *object
);
Gets a copy of the "Sim" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
[skip]
void phosh_mm_dbus_modem_set_sim (PhoshMMDBusModem *object
,const gchar *value
);
Sets the "Sim" D-Bus property to value
.
Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
[skip]
void phosh_mm_dbus_modem_proxy_new (GDBusConnection *connection
,GDBusProxyFlags flags
,const gchar *name
,const gchar *object_path
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously creates a proxy for the D-Bus interface org.freedesktop.ModemManager1.Modem. See g_dbus_proxy_new()
for more details.
When the operation is finished, callback
will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()
).
You can then call phosh_mm_dbus_modem_proxy_new_finish()
to get the result of the operation.
See phosh_mm_dbus_modem_proxy_new_sync()
for the synchronous, blocking version of this constructor.
connection |
||
flags |
Flags from the GDBusProxyFlags enumeration. |
|
name |
A bus name (well-known or unique) or |
[nullable] |
object_path |
An object path. |
|
cancellable |
A GCancellable or |
[nullable] |
callback |
A GAsyncReadyCallback to call when the request is satisfied. |
|
user_data |
User data to pass to |
PhoshMMDBusModem * phosh_mm_dbus_modem_proxy_new_finish (GAsyncResult *res
,GError **error
);
Finishes an operation started with phosh_mm_dbus_modem_proxy_new()
.
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
The constructed proxy object or NULL
if error
is set.
[transfer full][type PhoshMMDBusModemProxy]
PhoshMMDBusModem * phosh_mm_dbus_modem_proxy_new_sync (GDBusConnection *connection
,GDBusProxyFlags flags
,const gchar *name
,const gchar *object_path
,GCancellable *cancellable
,GError **error
);
Synchronously creates a proxy for the D-Bus interface org.freedesktop.ModemManager1.Modem. See g_dbus_proxy_new_sync()
for more details.
The calling thread is blocked until a reply is received.
See phosh_mm_dbus_modem_proxy_new()
for the asynchronous version of this constructor.
connection |
||
flags |
Flags from the GDBusProxyFlags enumeration. |
|
name |
A bus name (well-known or unique) or |
[nullable] |
object_path |
An object path. |
|
cancellable |
A GCancellable or |
[nullable] |
error |
Return location for error or |
The constructed proxy object or NULL
if error
is set.
[transfer full][type PhoshMMDBusModemProxy]
void phosh_mm_dbus_modem_proxy_new_for_bus (GBusType bus_type
,GDBusProxyFlags flags
,const gchar *name
,const gchar *object_path
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Like phosh_mm_dbus_modem_proxy_new()
but takes a GBusType instead of a GDBusConnection.
When the operation is finished, callback
will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()
).
You can then call phosh_mm_dbus_modem_proxy_new_for_bus_finish()
to get the result of the operation.
See phosh_mm_dbus_modem_proxy_new_for_bus_sync()
for the synchronous, blocking version of this constructor.
bus_type |
A GBusType. |
|
flags |
Flags from the GDBusProxyFlags enumeration. |
|
name |
A bus name (well-known or unique). |
|
object_path |
An object path. |
|
cancellable |
A GCancellable or |
[nullable] |
callback |
A GAsyncReadyCallback to call when the request is satisfied. |
|
user_data |
User data to pass to |
PhoshMMDBusModem * phosh_mm_dbus_modem_proxy_new_for_bus_finish (GAsyncResult *res
,GError **error
);
Finishes an operation started with phosh_mm_dbus_modem_proxy_new_for_bus()
.
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
The constructed proxy object or NULL
if error
is set.
[transfer full][type PhoshMMDBusModemProxy]
PhoshMMDBusModem * phosh_mm_dbus_modem_proxy_new_for_bus_sync (GBusType bus_type
,GDBusProxyFlags flags
,const gchar *name
,const gchar *object_path
,GCancellable *cancellable
,GError **error
);
Like phosh_mm_dbus_modem_proxy_new_sync()
but takes a GBusType instead of a GDBusConnection.
The calling thread is blocked until a reply is received.
See phosh_mm_dbus_modem_proxy_new_for_bus()
for the asynchronous version of this constructor.
bus_type |
A GBusType. |
|
flags |
Flags from the GDBusProxyFlags enumeration. |
|
name |
A bus name (well-known or unique). |
|
object_path |
An object path. |
|
cancellable |
A GCancellable or |
[nullable] |
error |
Return location for error or |
The constructed proxy object or NULL
if error
is set.
[transfer full][type PhoshMMDBusModemProxy]
PhoshMMDBusModem *
phosh_mm_dbus_modem_skeleton_new (void
);
Creates a skeleton object for the D-Bus interface org.freedesktop.ModemManager1.Modem.
GDBusInterfaceInfo *
phosh_mm_dbus_modem_modem3gpp_interface_info
(void
);
Gets a machine-readable description of the org.freedesktop.ModemManager1.Modem.Modem3gpp D-Bus interface.
guint phosh_mm_dbus_modem_modem3gpp_override_properties (GObjectClass *klass
,guint property_id_begin
);
Overrides all GObject properties in the PhoshMMDBusModemModem3gpp interface for a concrete class. The properties are overridden in the order they are defined.
klass |
The class structure for a GObject derived class. |
|
property_id_begin |
The property id to assign to the first overridden property. |
const gchar *
phosh_mm_dbus_modem_modem3gpp_get_operator_name
(PhoshMMDBusModemModem3gpp *object
);
Gets the value of the "OperatorName" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where object
was constructed. Use phosh_mm_dbus_modem_modem3gpp_dup_operator_name()
if on another thread.
[skip]
The property value or NULL
if the property is not set. Do not free the returned value, it belongs to object
.
[transfer none][nullable]
gchar *
phosh_mm_dbus_modem_modem3gpp_dup_operator_name
(PhoshMMDBusModemModem3gpp *object
);
Gets a copy of the "OperatorName" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
[skip]
void phosh_mm_dbus_modem_modem3gpp_set_operator_name (PhoshMMDBusModemModem3gpp *object
,const gchar *value
);
Sets the "OperatorName" D-Bus property to value
.
Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
[skip]
void phosh_mm_dbus_modem_modem3gpp_proxy_new (GDBusConnection *connection
,GDBusProxyFlags flags
,const gchar *name
,const gchar *object_path
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously creates a proxy for the D-Bus interface org.freedesktop.ModemManager1.Modem.Modem3gpp. See g_dbus_proxy_new()
for more details.
When the operation is finished, callback
will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()
).
You can then call phosh_mm_dbus_modem_modem3gpp_proxy_new_finish()
to get the result of the operation.
See phosh_mm_dbus_modem_modem3gpp_proxy_new_sync()
for the synchronous, blocking version of this constructor.
connection |
||
flags |
Flags from the GDBusProxyFlags enumeration. |
|
name |
A bus name (well-known or unique) or |
[nullable] |
object_path |
An object path. |
|
cancellable |
A GCancellable or |
[nullable] |
callback |
A GAsyncReadyCallback to call when the request is satisfied. |
|
user_data |
User data to pass to |
PhoshMMDBusModemModem3gpp * phosh_mm_dbus_modem_modem3gpp_proxy_new_finish (GAsyncResult *res
,GError **error
);
Finishes an operation started with phosh_mm_dbus_modem_modem3gpp_proxy_new()
.
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
The constructed proxy object or NULL
if error
is set.
[transfer full][type PhoshMMDBusModemModem3gppProxy]
PhoshMMDBusModemModem3gpp * phosh_mm_dbus_modem_modem3gpp_proxy_new_sync (GDBusConnection *connection
,GDBusProxyFlags flags
,const gchar *name
,const gchar *object_path
,GCancellable *cancellable
,GError **error
);
Synchronously creates a proxy for the D-Bus interface org.freedesktop.ModemManager1.Modem.Modem3gpp. See g_dbus_proxy_new_sync()
for more details.
The calling thread is blocked until a reply is received.
See phosh_mm_dbus_modem_modem3gpp_proxy_new()
for the asynchronous version of this constructor.
connection |
||
flags |
Flags from the GDBusProxyFlags enumeration. |
|
name |
A bus name (well-known or unique) or |
[nullable] |
object_path |
An object path. |
|
cancellable |
A GCancellable or |
[nullable] |
error |
Return location for error or |
The constructed proxy object or NULL
if error
is set.
[transfer full][type PhoshMMDBusModemModem3gppProxy]
void phosh_mm_dbus_modem_modem3gpp_proxy_new_for_bus (GBusType bus_type
,GDBusProxyFlags flags
,const gchar *name
,const gchar *object_path
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Like phosh_mm_dbus_modem_modem3gpp_proxy_new()
but takes a GBusType instead of a GDBusConnection.
When the operation is finished, callback
will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()
).
You can then call phosh_mm_dbus_modem_modem3gpp_proxy_new_for_bus_finish()
to get the result of the operation.
See phosh_mm_dbus_modem_modem3gpp_proxy_new_for_bus_sync()
for the synchronous, blocking version of this constructor.
bus_type |
A GBusType. |
|
flags |
Flags from the GDBusProxyFlags enumeration. |
|
name |
A bus name (well-known or unique). |
|
object_path |
An object path. |
|
cancellable |
A GCancellable or |
[nullable] |
callback |
A GAsyncReadyCallback to call when the request is satisfied. |
|
user_data |
User data to pass to |
PhoshMMDBusModemModem3gpp * phosh_mm_dbus_modem_modem3gpp_proxy_new_for_bus_finish (GAsyncResult *res
,GError **error
);
Finishes an operation started with phosh_mm_dbus_modem_modem3gpp_proxy_new_for_bus()
.
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
The constructed proxy object or NULL
if error
is set.
[transfer full][type PhoshMMDBusModemModem3gppProxy]
PhoshMMDBusModemModem3gpp * phosh_mm_dbus_modem_modem3gpp_proxy_new_for_bus_sync (GBusType bus_type
,GDBusProxyFlags flags
,const gchar *name
,const gchar *object_path
,GCancellable *cancellable
,GError **error
);
Like phosh_mm_dbus_modem_modem3gpp_proxy_new_sync()
but takes a GBusType instead of a GDBusConnection.
The calling thread is blocked until a reply is received.
See phosh_mm_dbus_modem_modem3gpp_proxy_new_for_bus()
for the asynchronous version of this constructor.
bus_type |
A GBusType. |
|
flags |
Flags from the GDBusProxyFlags enumeration. |
|
name |
A bus name (well-known or unique). |
|
object_path |
An object path. |
|
cancellable |
A GCancellable or |
[nullable] |
error |
Return location for error or |
The constructed proxy object or NULL
if error
is set.
[transfer full][type PhoshMMDBusModemModem3gppProxy]
PhoshMMDBusModemModem3gpp *
phosh_mm_dbus_modem_modem3gpp_skeleton_new
(void
);
Creates a skeleton object for the D-Bus interface org.freedesktop.ModemManager1.Modem.Modem3gpp.
PhoshMMDBusModem *
phosh_mm_dbus_object_get_modem (PhoshMMDBusObject *object
);
Gets the PhoshMMDBusModem instance for the D-Bus interface org.freedesktop.ModemManager1.Modem on object
, if any.
A PhoshMMDBusModem that must be freed with g_object_unref()
or NULL
if object
does not implement the interface.
[transfer full][nullable]
PhoshMMDBusModemModem3gpp *
phosh_mm_dbus_object_get_modem_modem3gpp
(PhoshMMDBusObject *object
);
Gets the PhoshMMDBusModemModem3gpp instance for the D-Bus interface org.freedesktop.ModemManager1.Modem.Modem3gpp on object
, if any.
A PhoshMMDBusModemModem3gpp that must be freed with g_object_unref()
or NULL
if object
does not implement the interface.
[transfer full][nullable]
PhoshMMDBusModem *
phosh_mm_dbus_object_peek_modem (PhoshMMDBusObject *object
);
Like phosh_mm_dbus_object_get_modem()
but doesn't increase the reference count on the returned object.
It is not safe to use the returned object if you are on another thread than the one where the GDBusObjectManagerClient or GDBusObjectManagerServer for object
is running.
[skip]
A PhoshMMDBusModem or NULL
if object
does not implement the interface. Do not free the returned object, it is owned by object
.
[transfer none][nullable]
PhoshMMDBusModemModem3gpp *
phosh_mm_dbus_object_peek_modem_modem3gpp
(PhoshMMDBusObject *object
);
Like phosh_mm_dbus_object_get_modem_modem3gpp()
but doesn't increase the reference count on the returned object.
It is not safe to use the returned object if you are on another thread than the one where the GDBusObjectManagerClient or GDBusObjectManagerServer for object
is running.
[skip]
A PhoshMMDBusModemModem3gpp or NULL
if object
does not implement the interface. Do not free the returned object, it is owned by object
.
[transfer none][nullable]
PhoshMMDBusObjectProxy * phosh_mm_dbus_object_proxy_new (GDBusConnection *connection
,const gchar *object_path
);
Creates a new proxy object.
PhoshMMDBusObjectSkeleton *
phosh_mm_dbus_object_skeleton_new (const gchar *object_path
);
Creates a new skeleton object.
void phosh_mm_dbus_object_skeleton_set_modem (PhoshMMDBusObjectSkeleton *object
,PhoshMMDBusModem *interface_
);
Sets the PhoshMMDBusModem instance for the D-Bus interface org.freedesktop.ModemManager1.Modem on object
.
void phosh_mm_dbus_object_skeleton_set_modem_modem3gpp (PhoshMMDBusObjectSkeleton *object
,PhoshMMDBusModemModem3gpp *interface_
);
Sets the PhoshMMDBusModemModem3gpp instance for the D-Bus interface org.freedesktop.ModemManager1.Modem.Modem3gpp on object
.
GType phosh_mm_dbus_object_manager_client_get_proxy_type (GDBusObjectManagerClient *manager
,const gchar *object_path
,const gchar *interface_name
,gpointer user_data
);
A GDBusProxyTypeFunc that maps interface_name
to the generated GDBusObjectProxy derived and GDBusProxy derived types.
A GDBusProxy derived GType if interface_name
is not NULL
, otherwise the GType for PhoshMMDBusObjectProxy.
void phosh_mm_dbus_object_manager_client_new (GDBusConnection *connection
,GDBusObjectManagerClientFlags flags
,const gchar *name
,const gchar *object_path
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously creates GDBusObjectManagerClient using phosh_mm_dbus_object_manager_client_get_proxy_type()
as the GDBusProxyTypeFunc. See g_dbus_object_manager_client_new()
for more details.
When the operation is finished, callback
will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()
).
You can then call phosh_mm_dbus_object_manager_client_new_finish()
to get the result of the operation.
See phosh_mm_dbus_object_manager_client_new_sync()
for the synchronous, blocking version of this constructor.
connection |
||
flags |
Flags from the GDBusObjectManagerClientFlags enumeration. |
|
name |
A bus name (well-known or unique) or |
[nullable] |
object_path |
An object path. |
|
cancellable |
A GCancellable or |
[nullable] |
callback |
A GAsyncReadyCallback to call when the request is satisfied. |
|
user_data |
User data to pass to |
GDBusObjectManager * phosh_mm_dbus_object_manager_client_new_finish (GAsyncResult *res
,GError **error
);
Finishes an operation started with phosh_mm_dbus_object_manager_client_new()
.
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
The constructed object manager client or NULL
if error
is set.
[transfer full][type PhoshMMDBusObjectManagerClient]
GDBusObjectManager * phosh_mm_dbus_object_manager_client_new_sync (GDBusConnection *connection
,GDBusObjectManagerClientFlags flags
,const gchar *name
,const gchar *object_path
,GCancellable *cancellable
,GError **error
);
Synchronously creates GDBusObjectManagerClient using phosh_mm_dbus_object_manager_client_get_proxy_type()
as the GDBusProxyTypeFunc. See g_dbus_object_manager_client_new_sync()
for more details.
The calling thread is blocked until a reply is received.
See phosh_mm_dbus_object_manager_client_new()
for the asynchronous version of this constructor.
connection |
||
flags |
Flags from the GDBusObjectManagerClientFlags enumeration. |
|
name |
A bus name (well-known or unique) or |
[nullable] |
object_path |
An object path. |
|
cancellable |
A GCancellable or |
[nullable] |
error |
Return location for error or |
The constructed object manager client or NULL
if error
is set.
[transfer full][type PhoshMMDBusObjectManagerClient]
void phosh_mm_dbus_object_manager_client_new_for_bus (GBusType bus_type
,GDBusObjectManagerClientFlags flags
,const gchar *name
,const gchar *object_path
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Like phosh_mm_dbus_object_manager_client_new()
but takes a GBusType instead of a GDBusConnection.
When the operation is finished, callback
will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()
).
You can then call phosh_mm_dbus_object_manager_client_new_for_bus_finish()
to get the result of the operation.
See phosh_mm_dbus_object_manager_client_new_for_bus_sync()
for the synchronous, blocking version of this constructor.
bus_type |
A GBusType. |
|
flags |
Flags from the GDBusObjectManagerClientFlags enumeration. |
|
name |
A bus name (well-known or unique). |
|
object_path |
An object path. |
|
cancellable |
A GCancellable or |
[nullable] |
callback |
A GAsyncReadyCallback to call when the request is satisfied. |
|
user_data |
User data to pass to |
GDBusObjectManager * phosh_mm_dbus_object_manager_client_new_for_bus_finish (GAsyncResult *res
,GError **error
);
Finishes an operation started with phosh_mm_dbus_object_manager_client_new_for_bus()
.
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
The constructed object manager client or NULL
if error
is set.
[transfer full][type PhoshMMDBusObjectManagerClient]
GDBusObjectManager * phosh_mm_dbus_object_manager_client_new_for_bus_sync (GBusType bus_type
,GDBusObjectManagerClientFlags flags
,const gchar *name
,const gchar *object_path
,GCancellable *cancellable
,GError **error
);
Like phosh_mm_dbus_object_manager_client_new_sync()
but takes a GBusType instead of a GDBusConnection.
The calling thread is blocked until a reply is received.
See phosh_mm_dbus_object_manager_client_new_for_bus()
for the asynchronous version of this constructor.
bus_type |
A GBusType. |
|
flags |
Flags from the GDBusObjectManagerClientFlags enumeration. |
|
name |
A bus name (well-known or unique). |
|
object_path |
An object path. |
|
cancellable |
A GCancellable or |
[nullable] |
error |
Return location for error or |
The constructed object manager client or NULL
if error
is set.
[transfer full][type PhoshMMDBusObjectManagerClient]
struct PhoshMMDBusModemIface { GTypeInterface parent_iface; guint (*get_access_technologies) (PhoshMMDBusModem *object); GVariant * (*get_signal_quality) (PhoshMMDBusModem *object); const gchar * (*get_sim) (PhoshMMDBusModem *object); gint (*get_state) (PhoshMMDBusModem *object); guint (*get_unlock_required) (PhoshMMDBusModem *object); };
Virtual table for the D-Bus interface org.freedesktop.ModemManager1.Modem.
GTypeInterface |
The parent interface. |
|
Getter for the “access-technologies” property. |
||
Getter for the “signal-quality” property. |
||
Getter for the “sim” property. |
||
Getter for the “state” property. |
||
Getter for the “unlock-required” property. |
struct PhoshMMDBusModemProxy;
The PhoshMMDBusModemProxy structure contains only private data and should only be accessed using the provided API.
struct PhoshMMDBusModemProxyClass { GDBusProxyClass parent_class; };
Class structure for PhoshMMDBusModemProxy.
struct PhoshMMDBusModemSkeleton;
The PhoshMMDBusModemSkeleton structure contains only private data and should only be accessed using the provided API.
struct PhoshMMDBusModemSkeletonClass { GDBusInterfaceSkeletonClass parent_class; };
Class structure for PhoshMMDBusModemSkeleton.
struct PhoshMMDBusModemModem3gppIface { GTypeInterface parent_iface; const gchar * (*get_operator_name) (PhoshMMDBusModemModem3gpp *object); };
Virtual table for the D-Bus interface org.freedesktop.ModemManager1.Modem.Modem3gpp.
struct PhoshMMDBusModemModem3gppProxy;
The PhoshMMDBusModemModem3gppProxy structure contains only private data and should only be accessed using the provided API.
struct PhoshMMDBusModemModem3gppProxyClass { GDBusProxyClass parent_class; };
Class structure for PhoshMMDBusModemModem3gppProxy.
struct PhoshMMDBusModemModem3gppSkeleton;
The PhoshMMDBusModemModem3gppSkeleton structure contains only private data and should only be accessed using the provided API.
struct PhoshMMDBusModemModem3gppSkeletonClass { GDBusInterfaceSkeletonClass parent_class; };
Class structure for PhoshMMDBusModemModem3gppSkeleton.
struct PhoshMMDBusObjectIface { GTypeInterface parent_iface; };
Virtual table for the PhoshMMDBusObject interface.
struct PhoshMMDBusObjectProxy;
The PhoshMMDBusObjectProxy structure contains only private data and should only be accessed using the provided API.
struct PhoshMMDBusObjectProxyClass { GDBusObjectProxyClass parent_class; };
Class structure for PhoshMMDBusObjectProxy.
struct PhoshMMDBusObjectSkeleton;
The PhoshMMDBusObjectSkeleton structure contains only private data and should only be accessed using the provided API.
struct PhoshMMDBusObjectSkeletonClass { GDBusObjectSkeletonClass parent_class; };
Class structure for PhoshMMDBusObjectSkeleton.
struct PhoshMMDBusObjectManagerClient;
The PhoshMMDBusObjectManagerClient structure contains only private data and should only be accessed using the provided API.
struct PhoshMMDBusObjectManagerClientClass { GDBusObjectManagerClientClass parent_class; };
Class structure for PhoshMMDBusObjectManagerClient.
typedef struct _PhoshMMDBusModem PhoshMMDBusModem;
Abstract interface type for the D-Bus interface org.freedesktop.ModemManager1.Modem.
typedef struct _PhoshMMDBusModemModem3gpp PhoshMMDBusModemModem3gpp;
Abstract interface type for the D-Bus interface org.freedesktop.ModemManager1.Modem.Modem3gpp.
typedef struct _PhoshMMDBusModemModem3gppProxyPrivate PhoshMMDBusModemModem3gppProxyPrivate;
typedef struct _PhoshMMDBusModemModem3gppSkeletonPrivate PhoshMMDBusModemModem3gppSkeletonPrivate;
typedef struct _PhoshMMDBusModemProxyPrivate PhoshMMDBusModemProxyPrivate;
typedef struct _PhoshMMDBusModemSkeletonPrivate PhoshMMDBusModemSkeletonPrivate;
typedef struct _PhoshMMDBusObject PhoshMMDBusObject;
The PhoshMMDBusObject type is a specialized container of interfaces.
typedef struct _PhoshMMDBusObjectManagerClientPrivate PhoshMMDBusObjectManagerClientPrivate;
typedef struct _PhoshMMDBusObjectProxyPrivate PhoshMMDBusObjectProxyPrivate;
“access-technologies”
property“access-technologies” guint
Represents the D-Bus property "AccessTechnologies".
Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
Owner: PhoshMMDBusModem
Flags: Read / Write
Default value: 0
“signal-quality”
property“signal-quality” GVariant *
Represents the D-Bus property "SignalQuality".
Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
Owner: PhoshMMDBusModem
Flags: Read / Write
Allowed values: GVariant<(ub)>
Default value: NULL
“sim”
property “sim” char *
Represents the D-Bus property "Sim".
Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
Owner: PhoshMMDBusModem
Flags: Read / Write
Default value: NULL
“state”
property “state” int
Represents the D-Bus property "State".
Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
Owner: PhoshMMDBusModem
Flags: Read / Write
Default value: 0
“unlock-required”
property“unlock-required” guint
Represents the D-Bus property "UnlockRequired".
Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
Owner: PhoshMMDBusModem
Flags: Read / Write
Default value: 0
“operator-name”
property “operator-name” char *
Represents the D-Bus property "OperatorName".
Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
Owner: PhoshMMDBusModemModem3gpp
Flags: Read / Write
Default value: NULL
“modem”
property“modem” PhoshMMDBusModem *
The PhoshMMDBusModem instance corresponding to the D-Bus interface org.freedesktop.ModemManager1.Modem, if any.
Connect to the “notify” signal to get informed of property changes.
Owner: PhoshMMDBusObject
Flags: Read / Write
“modem-modem3gpp”
property“modem-modem3gpp” PhoshMMDBusModemModem3gpp *
The PhoshMMDBusModemModem3gpp instance corresponding to the D-Bus interface org.freedesktop.ModemManager1.Modem.Modem3gpp, if any.
Connect to the “notify” signal to get informed of property changes.
Owner: PhoshMMDBusObject
Flags: Read / Write