| libmm-glib Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Prerequisites | Known Implementations | Properties | Signals | ||||
MmGdbusModemCdmaMmGdbusModemCdma — Generated C code for the org.freedesktop.ModemManager1.Modem.ModemCdma D-Bus interface |
MmGdbusModemCdma; struct MmGdbusModemCdmaIface; guint mm_gdbus_modem_cdma_get_cdma1x_registration_state (MmGdbusModemCdma *object); guint mm_gdbus_modem_cdma_get_evdo_registration_state (MmGdbusModemCdma *object); const gchar * mm_gdbus_modem_cdma_get_esn (MmGdbusModemCdma *object); gchar * mm_gdbus_modem_cdma_dup_esn (MmGdbusModemCdma *object); const gchar * mm_gdbus_modem_cdma_get_meid (MmGdbusModemCdma *object); gchar * mm_gdbus_modem_cdma_dup_meid (MmGdbusModemCdma *object); guint mm_gdbus_modem_cdma_get_nid (MmGdbusModemCdma *object); guint mm_gdbus_modem_cdma_get_sid (MmGdbusModemCdma *object); void mm_gdbus_modem_cdma_call_activate (MmGdbusModemCdma *proxy,const gchar *arg_carrier,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data); gboolean mm_gdbus_modem_cdma_call_activate_finish (MmGdbusModemCdma *proxy,GAsyncResult *res,GError **error); gboolean mm_gdbus_modem_cdma_call_activate_sync (MmGdbusModemCdma *proxy,const gchar *arg_carrier,GCancellable *cancellable,GError **error); void mm_gdbus_modem_cdma_call_activate_manual (MmGdbusModemCdma *proxy,GVariant *arg_properties,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data); gboolean mm_gdbus_modem_cdma_call_activate_manual_finish (MmGdbusModemCdma *proxy,GAsyncResult *res,GError **error); gboolean mm_gdbus_modem_cdma_call_activate_manual_sync (MmGdbusModemCdma *proxy,GVariant *arg_properties,GCancellable *cancellable,GError **error);
MmGdbusModemCdma is implemented by MMModemCdma, MmGdbusModemCdmaProxy and MmGdbusModemCdmaSkeleton.
"cdma1x-registration-state" guint : Read / Write "esn" gchar* : Read / Write "evdo-registration-state" guint : Read / Write "meid" gchar* : Read / Write "nid" guint : Read / Write "sid" guint : Read / Write
"activation-state-changed" :Run Last"handle-activate" :Run Last"handle-activate-manual" :Run Last
This section contains code for working with the org.freedesktop.ModemManager1.Modem.ModemCdma D-Bus interface in C.
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);
gboolean (*handle_activate_manual) (
MmGdbusModemCdma *object,
GDBusMethodInvocation *invocation,
GVariant *arg_properties);
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 "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. |
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.
|
A MmGdbusModemCdma. |
Returns : |
The property value. |
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.
|
A MmGdbusModemCdma. |
Returns : |
The property value. |
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.
object was constructed. Use mm_gdbus_modem_cdma_dup_esn() if on another thread.
|
A MmGdbusModemCdma. |
Returns : |
The property value or NULL if the property is not set. Do not free the returned value, it belongs to object. [transfer none]
|
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.
|
A MmGdbusModemCdma. |
Returns : |
The property value or NULL if the property is not set. The returned value should be freed with g_free(). [transfer full]
|
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.
object was constructed. Use mm_gdbus_modem_cdma_dup_meid() if on another thread.
|
A MmGdbusModemCdma. |
Returns : |
The property value or NULL if the property is not set. Do not free the returned value, it belongs to object. [transfer none]
|
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.
|
A MmGdbusModemCdma. |
Returns : |
The property value or NULL if the property is not set. The returned value should be freed with g_free(). [transfer full]
|
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.
|
A MmGdbusModemCdma. |
Returns : |
The property value. |
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.
|
A MmGdbusModemCdma. |
Returns : |
The property value. |
void mm_gdbus_modem_cdma_call_activate (MmGdbusModemCdma *proxy,const gchar *arg_carrier,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.
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.
|
A MmGdbusModemCdmaProxy. |
|
Argument to pass with the method invocation. |
|
A GCancellable or NULL. [allow-none]
|
|
A GAsyncReadyCallback to call when the request is satisfied or NULL. |
|
User data to pass to callback. |
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().
|
A MmGdbusModemCdmaProxy. |
|
The GAsyncResult obtained from the GAsyncReadyCallback passed to mm_gdbus_modem_cdma_call_activate(). |
|
Return location for error or NULL. |
Returns : |
TRUE if the call succeded, FALSE if error is set. [skip]
|
gboolean mm_gdbus_modem_cdma_call_activate_sync (MmGdbusModemCdma *proxy,const gchar *arg_carrier,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.
|
A MmGdbusModemCdmaProxy. |
|
Argument to pass with the method invocation. |
|
A GCancellable or NULL. [allow-none]
|
|
Return location for error or NULL. |
Returns : |
TRUE if the call succeded, FALSE if error is set. [skip]
|
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.
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.
|
A MmGdbusModemCdmaProxy. |
|
Argument to pass with the method invocation. |
|
A GCancellable or NULL. [allow-none]
|
|
A GAsyncReadyCallback to call when the request is satisfied or NULL. |
|
User data to pass to callback. |
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().
|
A MmGdbusModemCdmaProxy. |
|
The GAsyncResult obtained from the GAsyncReadyCallback passed to mm_gdbus_modem_cdma_call_activate_manual(). |
|
Return location for error or NULL. |
Returns : |
TRUE if the call succeded, FALSE if error is set. [skip]
|
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.
|
A MmGdbusModemCdmaProxy. |
|
Argument to pass with the method invocation. |
|
A GCancellable or NULL. [allow-none]
|
|
Return location for error or NULL. |
Returns : |
TRUE if the call succeded, FALSE if error is set. [skip]
|
"cdma1x-registration-state" property"cdma1x-registration-state" guint : Read / Write
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.
Default value: 0
"esn" property"esn" gchar* : Read / Write
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.
Default value: NULL
"evdo-registration-state" property"evdo-registration-state" guint : Read / Write
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.
Default value: 0
"meid" property"meid" gchar* : Read / Write
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.
Default value: NULL
"nid" property"nid" guint : Read / Write
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.
Default value: 0
"sid" property"sid" guint : Read / Write
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.
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) : Run Last
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.
|
A MmGdbusModemCdma. |
|
Argument. |
|
Argument. |
|
Argument. |
|
user data set when the signal handler was connected. |
"handle-activate" signalgboolean user_function (MmGdbusModemCdma *object,
GDBusMethodInvocation *invocation,
gchar *arg_carrier,
gpointer user_data) : Run Last
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.
|
A MmGdbusModemCdma. |
|
A GDBusMethodInvocation. |
|
Argument passed by remote caller. |
|
user data set when the signal handler was connected. |
Returns : |
TRUE if the invocation was handled, FALSE to let other signal handlers run. |
"handle-activate-manual" signalgboolean user_function (MmGdbusModemCdma *object,
GDBusMethodInvocation *invocation,
GVariant *arg_properties,
gpointer user_data) : Run Last
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.
|
A MmGdbusModemCdma. |
|
A GDBusMethodInvocation. |
|
Argument passed by remote caller. |
|
user data set when the signal handler was connected. |
Returns : |
TRUE if the invocation was handled, FALSE to let other signal handlers run. |