Top | ![]() |
![]() |
![]() |
![]() |
guint | access-technologies | Read / Write |
GVariant * | signal-quality | Read / Write |
gchar * | sim | Read / Write |
gint | state | Read / Write |
guint | unlock-required | Read / Write |
PhoshMMDBusModem * | modem | Read / Write |
GInterface ├── PhoshMMDBusModem ╰── PhoshMMDBusObject GObject ├── GDBusInterfaceSkeleton │ ╰── PhoshMMDBusModemSkeleton ├── GDBusObjectManagerClient │ ╰── PhoshMMDBusObjectManagerClient ├── GDBusObjectProxy │ ╰── PhoshMMDBusObjectProxy ├── GDBusObjectSkeleton │ ╰── PhoshMMDBusObjectSkeleton ╰── GDBusProxy ╰── PhoshMMDBusModemProxy
PhoshMMDBusModem requires GObject.
PhoshMMDBusObject requires GDBusObject and GObject.
PhoshMMDBusModemProxy implements GDBusInterface, GInitable, GAsyncInitable and PhoshMMDBusModem.
PhoshMMDBusModemSkeleton implements GDBusInterface and PhoshMMDBusModem.
PhoshMMDBusObjectProxy implements GDBusObject and PhoshMMDBusObject.
PhoshMMDBusObjectSkeleton implements GDBusObject and PhoshMMDBusObject.
PhoshMMDBusObjectManagerClient implements GInitable, GAsyncInitable and GDBusObjectManager.
PhoshMMDBusModem is implemented by PhoshMMDBusModemProxy and PhoshMMDBusModemSkeleton.
PhoshMMDBusObject is implemented by PhoshMMDBusObjectProxy and PhoshMMDBusObjectSkeleton.
GDBusInterfaceInfo *
phosh_mmdbus_modem_interface_info (void
);
Gets a machine-readable description of the org.freedesktop.ModemManager1.Modem D-Bus interface.
guint phosh_mmdbus_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.
GVariant *
phosh_mmdbus_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.
object
was constructed. Use phosh_mmdbus_modem_dup_signal_quality()
if on another thread.[skip]
GVariant *
phosh_mmdbus_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]
void phosh_mmdbus_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_mmdbus_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_mmdbus_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_mmdbus_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_mmdbus_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_mmdbus_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_mmdbus_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_mmdbus_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.
object
was constructed. Use phosh_mmdbus_modem_dup_sim()
if on another thread.[skip]
gchar *
phosh_mmdbus_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_mmdbus_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_mmdbus_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.
You can then call phosh_mmdbus_modem_proxy_new_finish()
to get the result of the operation.
See phosh_mmdbus_modem_proxy_new_sync()
for the synchronous, blocking version of this constructor.
connection |
A GDBusConnection. |
|
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_mmdbus_modem_proxy_new_finish (GAsyncResult *res
,GError **error
);
Finishes an operation started with phosh_mmdbus_modem_proxy_new()
.
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
PhoshMMDBusModem * phosh_mmdbus_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_mmdbus_modem_proxy_new()
for the asynchronous version of this constructor.
connection |
A GDBusConnection. |
|
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 |
void phosh_mmdbus_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_mmdbus_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.
You can then call phosh_mmdbus_modem_proxy_new_for_bus_finish()
to get the result of the operation.
See phosh_mmdbus_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_mmdbus_modem_proxy_new_for_bus_finish (GAsyncResult *res
,GError **error
);
Finishes an operation started with phosh_mmdbus_modem_proxy_new_for_bus()
.
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
PhoshMMDBusModem * phosh_mmdbus_modem_proxy_new_for_bus_sync (GBusType bus_type
,GDBusProxyFlags flags
,const gchar *name
,const gchar *object_path
,GCancellable *cancellable
,GError **error
);
Like phosh_mmdbus_modem_proxy_new_sync()
but takes a GBusType instead of a GDBusConnection.
The calling thread is blocked until a reply is received.
See phosh_mmdbus_modem_proxy_new_for_bus()
for the asynchronous version of this constructor.
PhoshMMDBusModem *
phosh_mmdbus_modem_skeleton_new (void
);
Creates a skeleton object for the D-Bus interface org.freedesktop.ModemManager1.Modem.
PhoshMMDBusModem *
phosh_mmdbus_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]
PhoshMMDBusModem *
phosh_mmdbus_object_peek_modem (PhoshMMDBusObject *object
);
Like phosh_mmdbus_object_get_modem()
but doesn't increase the reference count on the returned object.
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]
PhoshMMDBusObjectProxy * phosh_mmdbus_object_proxy_new (GDBusConnection *connection
,const gchar *object_path
);
Creates a new proxy object.
PhoshMMDBusObjectSkeleton *
phosh_mmdbus_object_skeleton_new (const gchar *object_path
);
Creates a new skeleton object.
void phosh_mmdbus_object_skeleton_set_modem (PhoshMMDBusObjectSkeleton *object
,PhoshMMDBusModem *interface_
);
Sets the PhoshMMDBusModem instance for the D-Bus interface org.freedesktop.ModemManager1.Modem on object
.
GType phosh_mmdbus_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.
manager |
A GDBusObjectManagerClient. |
|
object_path |
The object path of the remote object (unused). |
|
interface_name |
Interface name of the remote object or |
[nullable] |
user_data |
User data (unused). |
A GDBusProxy derived GType if interface_name
is not NULL
, otherwise the GType for PhoshMMDBusObjectProxy.
void phosh_mmdbus_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_mmdbus_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.
You can then call phosh_mmdbus_object_manager_client_new_finish()
to get the result of the operation.
See phosh_mmdbus_object_manager_client_new_sync()
for the synchronous, blocking version of this constructor.
connection |
A GDBusConnection. |
|
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_mmdbus_object_manager_client_new_finish (GAsyncResult *res
,GError **error
);
Finishes an operation started with phosh_mmdbus_object_manager_client_new()
.
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
GDBusObjectManager * phosh_mmdbus_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_mmdbus_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_mmdbus_object_manager_client_new()
for the asynchronous version of this constructor.
connection |
A GDBusConnection. |
|
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 |
void phosh_mmdbus_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_mmdbus_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.
You can then call phosh_mmdbus_object_manager_client_new_for_bus_finish()
to get the result of the operation.
See phosh_mmdbus_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_mmdbus_object_manager_client_new_for_bus_finish (GAsyncResult *res
,GError **error
);
Finishes an operation started with phosh_mmdbus_object_manager_client_new_for_bus()
.
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
GDBusObjectManager * phosh_mmdbus_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_mmdbus_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_mmdbus_object_manager_client_new_for_bus()
for the asynchronous version of this constructor.
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.
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 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 _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.
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.
Flags: Read / Write
Allowed values: GVariant<(ub)>
Default value: NULL
“sim”
property “sim” gchar *
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.
Flags: Read / Write
Default value: NULL
“state”
property “state” gint
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.
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.
Flags: Read / Write
Default value: 0
“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.
Flags: Read / Write