Top |
MmGdbusModemCdmaMmGdbusModemCdma — Generated C code for the org.freedesktop.ModemManager1.Modem.ModemCdma D-Bus interface |
guint | activation-state | Read / Write |
guint | cdma1x-registration-state | Read / Write |
char * | esn | Read / Write |
guint | evdo-registration-state | Read / Write |
char * | meid | Read / Write |
guint | nid | Read / Write |
guint | sid | Read / Write |
MmGdbusModemCdma is implemented by MMModemCdma, MmGdbusModemCdmaProxy and MmGdbusModemCdmaSkeleton.
This section contains code for working with the org.freedesktop.ModemManager1.Modem.ModemCdma D-Bus interface in C.
guint
mm_gdbus_modem_cdma_get_cdma1x_registration_state
(MmGdbusModemCdma *object
);
Gets the value of the "Cdma1xRegistrationState" 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]
guint
mm_gdbus_modem_cdma_get_evdo_registration_state
(MmGdbusModemCdma *object
);
Gets the value of the "EvdoRegistrationState" 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]
guint
mm_gdbus_modem_cdma_get_activation_state
(MmGdbusModemCdma *object
);
Gets the value of the "ActivationState" 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]
const gchar *
mm_gdbus_modem_cdma_get_esn (MmGdbusModemCdma *object
);
Gets the value of the "Esn" 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_cdma_dup_esn()
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 *
mm_gdbus_modem_cdma_dup_esn (MmGdbusModemCdma *object
);
Gets a copy of the "Esn" 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]
const gchar *
mm_gdbus_modem_cdma_get_meid (MmGdbusModemCdma *object
);
Gets the value of the "Meid" 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_cdma_dup_meid()
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 *
mm_gdbus_modem_cdma_dup_meid (MmGdbusModemCdma *object
);
Gets a copy of the "Meid" 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]
guint
mm_gdbus_modem_cdma_get_nid (MmGdbusModemCdma *object
);
Gets the value of the "Nid" 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]
guint
mm_gdbus_modem_cdma_get_sid (MmGdbusModemCdma *object
);
Gets the value of the "Sid" 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 mm_gdbus_modem_cdma_call_activate (MmGdbusModemCdma *proxy
,const gchar *arg_carrier_code
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously invokes the Activate()
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_cdma_call_activate_finish()
to get the result of the operation.
See mm_gdbus_modem_cdma_call_activate_sync()
for the synchronous, blocking version of this method.
proxy |
||
arg_carrier_code |
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_cdma_call_activate_finish (MmGdbusModemCdma *proxy
,GAsyncResult *res
,GError **error
);
Finishes an operation started with mm_gdbus_modem_cdma_call_activate()
.
proxy |
||
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
gboolean mm_gdbus_modem_cdma_call_activate_sync (MmGdbusModemCdma *proxy
,const gchar *arg_carrier_code
,GCancellable *cancellable
,GError **error
);
Synchronously invokes the Activate()
proxy
. The calling thread is blocked until a reply is received.
See mm_gdbus_modem_cdma_call_activate()
for the asynchronous version of this method.
proxy |
||
arg_carrier_code |
Argument to pass with the method invocation. |
|
cancellable |
A GCancellable or |
[nullable] |
error |
Return location for error or |
void mm_gdbus_modem_cdma_call_activate_manual (MmGdbusModemCdma *proxy
,GVariant *arg_properties
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously invokes the ActivateManual()
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_cdma_call_activate_manual_finish()
to get the result of the operation.
See mm_gdbus_modem_cdma_call_activate_manual_sync()
for the synchronous, blocking version of this method.
proxy |
||
arg_properties |
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_cdma_call_activate_manual_finish (MmGdbusModemCdma *proxy
,GAsyncResult *res
,GError **error
);
Finishes an operation started with mm_gdbus_modem_cdma_call_activate_manual()
.
proxy |
||
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
gboolean mm_gdbus_modem_cdma_call_activate_manual_sync (MmGdbusModemCdma *proxy
,GVariant *arg_properties
,GCancellable *cancellable
,GError **error
);
Synchronously invokes the ActivateManual()
proxy
. The calling thread is blocked until a reply is received.
See mm_gdbus_modem_cdma_call_activate_manual()
for the asynchronous version of this method.
proxy |
||
arg_properties |
Argument to pass with the method invocation. |
|
cancellable |
A GCancellable or |
[nullable] |
error |
Return location for error or |
typedef struct _MmGdbusModemCdma MmGdbusModemCdma;
Abstract interface type for the D-Bus interface org.freedesktop.ModemManager1.Modem.ModemCdma.
struct MmGdbusModemCdmaIface { GTypeInterface parent_iface; gboolean (*handle_activate) ( MmGdbusModemCdma *object, GDBusMethodInvocation *invocation, const gchar *arg_carrier_code); gboolean (*handle_activate_manual) ( MmGdbusModemCdma *object, GDBusMethodInvocation *invocation, GVariant *arg_properties); guint (*get_activation_state) (MmGdbusModemCdma *object); guint (*get_cdma1x_registration_state) (MmGdbusModemCdma *object); const gchar * (*get_esn) (MmGdbusModemCdma *object); guint (*get_evdo_registration_state) (MmGdbusModemCdma *object); const gchar * (*get_meid) (MmGdbusModemCdma *object); guint (*get_nid) (MmGdbusModemCdma *object); guint (*get_sid) (MmGdbusModemCdma *object); void (*activation_state_changed) ( MmGdbusModemCdma *object, guint arg_activation_state, guint arg_activation_error, GVariant *arg_status_changes); };
Virtual table for the D-Bus interface org.freedesktop.ModemManager1.Modem.ModemCdma.
GTypeInterface |
The parent interface. |
|
Handler for the “handle-activate” signal. |
||
Handler for the “handle-activate-manual” signal. |
||
Getter for the “activation-state” property. |
||
Getter for the “cdma1x-registration-state” property. |
||
Getter for the “esn” property. |
||
Getter for the “evdo-registration-state” property. |
||
Getter for the “meid” property. |
||
Getter for the “nid” property. |
||
Getter for the “sid” property. |
||
Handler for the “activation-state-changed” signal. |
“activation-state”
property“activation-state” guint
Represents the D-Bus property "ActivationState".
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: MmGdbusModemCdma
Flags: Read / Write
Default value: 0
“cdma1x-registration-state”
property“cdma1x-registration-state” guint
Represents the D-Bus property "Cdma1xRegistrationState".
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: MmGdbusModemCdma
Flags: Read / Write
Default value: 0
“esn”
property “esn” char *
Represents the D-Bus property "Esn".
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: MmGdbusModemCdma
Flags: Read / Write
Default value: NULL
“evdo-registration-state”
property“evdo-registration-state” guint
Represents the D-Bus property "EvdoRegistrationState".
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: MmGdbusModemCdma
Flags: Read / Write
Default value: 0
“meid”
property “meid” char *
Represents the D-Bus property "Meid".
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: MmGdbusModemCdma
Flags: Read / Write
Default value: NULL
“nid”
property“nid” guint
Represents the D-Bus property "Nid".
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: MmGdbusModemCdma
Flags: Read / Write
Default value: 0
“sid”
property“sid” guint
Represents the D-Bus property "Sid".
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: MmGdbusModemCdma
Flags: Read / Write
Default value: 0
“activation-state-changed”
signalvoid user_function (MmGdbusModemCdma *object, guint arg_activation_state, guint arg_activation_error, GVariant *arg_status_changes, gpointer user_data)
On the client-side, this signal is emitted whenever the D-Bus signal "ActivationStateChanged" is received.
On the service-side, this signal can be used with e.g. g_signal_emit_by_name()
to make the object emit the D-Bus signal.
object |
||
arg_activation_state |
Argument. |
|
arg_activation_error |
Argument. |
|
arg_status_changes |
Argument. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“handle-activate”
signalgboolean user_function (MmGdbusModemCdma *object, GDBusMethodInvocation *invocation, char *arg_carrier_code, gpointer user_data)
Signal emitted when a remote caller is invoking the Activate()
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_cdma_complete_activate()
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_carrier_code |
Argument passed by remote caller. |
|
user_data |
user data set when the signal handler was connected. |
G_DBUS_METHOD_INVOCATION_HANDLED
or TRUE
if the invocation was handled, G_DBUS_METHOD_INVOCATION_UNHANDLED
or FALSE
to let other signal handlers run.
Flags: Run Last
“handle-activate-manual”
signalgboolean user_function (MmGdbusModemCdma *object, GDBusMethodInvocation *invocation, GVariant *arg_properties, gpointer user_data)
Signal emitted when a remote caller is invoking the ActivateManual()
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_cdma_complete_activate_manual()
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_properties |
Argument passed by remote caller. |
|
user_data |
user data set when the signal handler was connected. |
G_DBUS_METHOD_INVOCATION_HANDLED
or TRUE
if the invocation was handled, G_DBUS_METHOD_INVOCATION_UNHANDLED
or FALSE
to let other signal handlers run.
Flags: Run Last