Top |
MmGdbusModemSignalMmGdbusModemSignal — Generated C code for the org.freedesktop.ModemManager1.Modem.Signal D-Bus interface |
MmGdbusModemSignal is implemented by MMModemSignal, MmGdbusModemSignalProxy and MmGdbusModemSignalSkeleton.
This section contains code for working with the org.freedesktop.ModemManager1.Modem.Signal D-Bus interface in C.
guint
mm_gdbus_modem_signal_get_rate (MmGdbusModemSignal *object
);
Gets the value of the "Rate" 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]
GVariant *
mm_gdbus_modem_signal_get_cdma (MmGdbusModemSignal *object
);
Gets the value of the "Cdma" 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 mm_gdbus_modem_signal_dup_cdma()
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 *
mm_gdbus_modem_signal_get_evdo (MmGdbusModemSignal *object
);
Gets the value of the "Evdo" 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 mm_gdbus_modem_signal_dup_evdo()
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 *
mm_gdbus_modem_signal_get_gsm (MmGdbusModemSignal *object
);
Gets the value of the "Gsm" 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 mm_gdbus_modem_signal_dup_gsm()
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 *
mm_gdbus_modem_signal_get_umts (MmGdbusModemSignal *object
);
Gets the value of the "Umts" 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 mm_gdbus_modem_signal_dup_umts()
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 *
mm_gdbus_modem_signal_get_lte (MmGdbusModemSignal *object
);
Gets the value of the "Lte" 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 mm_gdbus_modem_signal_dup_lte()
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 *
mm_gdbus_modem_signal_get_nr5g (MmGdbusModemSignal *object
);
Gets the value of the "Nr5g" 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 mm_gdbus_modem_signal_dup_nr5g()
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 *
mm_gdbus_modem_signal_dup_cdma (MmGdbusModemSignal *object
);
Gets a copy of the "Cdma" 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]
GVariant *
mm_gdbus_modem_signal_dup_evdo (MmGdbusModemSignal *object
);
Gets a copy of the "Evdo" 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]
GVariant *
mm_gdbus_modem_signal_dup_gsm (MmGdbusModemSignal *object
);
Gets a copy of the "Gsm" 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]
GVariant *
mm_gdbus_modem_signal_dup_umts (MmGdbusModemSignal *object
);
Gets a copy of the "Umts" 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]
GVariant *
mm_gdbus_modem_signal_dup_lte (MmGdbusModemSignal *object
);
Gets a copy of the "Lte" 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]
GVariant *
mm_gdbus_modem_signal_dup_nr5g (MmGdbusModemSignal *object
);
Gets a copy of the "Nr5g" 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 mm_gdbus_modem_signal_call_setup (MmGdbusModemSignal *proxy
,guint arg_rate
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously invokes the Setup()
proxy
.
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 mm_gdbus_modem_signal_call_setup_finish()
to get the result of the operation.
See mm_gdbus_modem_signal_call_setup_sync()
for the synchronous, blocking version of this method.
proxy |
||
arg_rate |
Argument to pass with the method invocation. |
|
cancellable |
A GCancellable or |
[nullable] |
callback |
A GAsyncReadyCallback to call when the request is satisfied or |
|
user_data |
User data to pass to |
gboolean mm_gdbus_modem_signal_call_setup_finish (MmGdbusModemSignal *proxy
,GAsyncResult *res
,GError **error
);
Finishes an operation started with mm_gdbus_modem_signal_call_setup()
.
proxy |
||
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
gboolean mm_gdbus_modem_signal_call_setup_sync (MmGdbusModemSignal *proxy
,guint arg_rate
,GCancellable *cancellable
,GError **error
);
Synchronously invokes the Setup()
proxy
. The calling thread is blocked until a reply is received.
See mm_gdbus_modem_signal_call_setup()
for the asynchronous version of this method.
proxy |
||
arg_rate |
Argument to pass with the method invocation. |
|
cancellable |
A GCancellable or |
[nullable] |
error |
Return location for error or |
typedef struct _MmGdbusModemSignal MmGdbusModemSignal;
Abstract interface type for the D-Bus interface org.freedesktop.ModemManager1.Modem.Signal.
struct MmGdbusModemSignalIface { GTypeInterface parent_iface; gboolean (*handle_setup) ( MmGdbusModemSignal *object, GDBusMethodInvocation *invocation, guint arg_rate); GVariant * (*get_cdma) (MmGdbusModemSignal *object); GVariant * (*get_evdo) (MmGdbusModemSignal *object); GVariant * (*get_gsm) (MmGdbusModemSignal *object); GVariant * (*get_lte) (MmGdbusModemSignal *object); GVariant * (*get_nr5g) (MmGdbusModemSignal *object); guint (*get_rate) (MmGdbusModemSignal *object); GVariant * (*get_umts) (MmGdbusModemSignal *object); };
Virtual table for the D-Bus interface org.freedesktop.ModemManager1.Modem.Signal.
GTypeInterface |
The parent interface. |
|
Handler for the “handle-setup” signal. |
||
Getter for the “cdma” property. |
||
Getter for the “evdo” property. |
||
Getter for the “gsm” property. |
||
Getter for the “lte” property. |
||
Getter for the “nr5g” property. |
||
Getter for the “rate” property. |
||
Getter for the “umts” property. |
“cdma”
property“cdma” GVariant *
Represents the D-Bus property "Cdma".
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: MmGdbusModemSignal
Flags: Read / Write
Allowed values: GVariant<a{sv}>
Default value: NULL
“evdo”
property“evdo” GVariant *
Represents the D-Bus property "Evdo".
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: MmGdbusModemSignal
Flags: Read / Write
Allowed values: GVariant<a{sv}>
Default value: NULL
“gsm”
property“gsm” GVariant *
Represents the D-Bus property "Gsm".
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: MmGdbusModemSignal
Flags: Read / Write
Allowed values: GVariant<a{sv}>
Default value: NULL
“lte”
property“lte” GVariant *
Represents the D-Bus property "Lte".
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: MmGdbusModemSignal
Flags: Read / Write
Allowed values: GVariant<a{sv}>
Default value: NULL
“nr5g”
property“nr5g” GVariant *
Represents the D-Bus property "Nr5g".
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: MmGdbusModemSignal
Flags: Read / Write
Allowed values: GVariant<a{sv}>
Default value: NULL
“rate”
property“rate” guint
Represents the D-Bus property "Rate".
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: MmGdbusModemSignal
Flags: Read / Write
Default value: 0
“umts”
property“umts” GVariant *
Represents the D-Bus property "Umts".
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: MmGdbusModemSignal
Flags: Read / Write
Allowed values: GVariant<a{sv}>
Default value: NULL
“handle-setup”
signalgboolean user_function (MmGdbusModemSignal *object, GDBusMethodInvocation *invocation, guint arg_rate, gpointer user_data)
Signal emitted when a remote caller is invoking the Setup()
If a signal handler returns TRUE
, it means the signal handler will handle the invocation (e.g. take a reference to invocation
and eventually call mm_gdbus_modem_signal_complete_setup()
or e.g. g_dbus_method_invocation_return_error()
on it) and no order signal handlers will run. If no signal handler handles the invocation, the G_DBUS_ERROR_UNKNOWN_METHOD
error is returned.
object |
||
invocation |
||
arg_rate |
Argument passed by remote caller. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last