|  |  |  | libmm-glib Reference Manual |  | 
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Prerequisites | Known Implementations | Properties | Signals | ||||
MmGdbusSim; struct MmGdbusSimIface; const gchar * mm_gdbus_sim_get_imsi (MmGdbusSim *object); gchar * mm_gdbus_sim_dup_imsi (MmGdbusSim *object); const gchar * mm_gdbus_sim_get_sim_identifier (MmGdbusSim *object); gchar * mm_gdbus_sim_dup_sim_identifier (MmGdbusSim *object); const gchar * mm_gdbus_sim_get_operator_identifier (MmGdbusSim *object); gchar * mm_gdbus_sim_dup_operator_identifier (MmGdbusSim *object); const gchar * mm_gdbus_sim_get_operator_name (MmGdbusSim *object); gchar * mm_gdbus_sim_dup_operator_name (MmGdbusSim *object); void mm_gdbus_sim_call_send_pin (MmGdbusSim *proxy,const gchar *arg_pin,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data); gboolean mm_gdbus_sim_call_send_pin_finish (MmGdbusSim *proxy,GAsyncResult *res,GError **error); gboolean mm_gdbus_sim_call_send_pin_sync (MmGdbusSim *proxy,const gchar *arg_pin,GCancellable *cancellable,GError **error); void mm_gdbus_sim_call_send_puk (MmGdbusSim *proxy,const gchar *arg_puk,const gchar *arg_pin,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data); gboolean mm_gdbus_sim_call_send_puk_finish (MmGdbusSim *proxy,GAsyncResult *res,GError **error); gboolean mm_gdbus_sim_call_send_puk_sync (MmGdbusSim *proxy,const gchar *arg_puk,const gchar *arg_pin,GCancellable *cancellable,GError **error); void mm_gdbus_sim_call_enable_pin (MmGdbusSim *proxy,const gchar *arg_pin,gboolean arg_enabled,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data); gboolean mm_gdbus_sim_call_enable_pin_finish (MmGdbusSim *proxy,GAsyncResult *res,GError **error); gboolean mm_gdbus_sim_call_enable_pin_sync (MmGdbusSim *proxy,const gchar *arg_pin,gboolean arg_enabled,GCancellable *cancellable,GError **error); void mm_gdbus_sim_call_change_pin (MmGdbusSim *proxy,const gchar *arg_old_pin,const gchar *arg_new_pin,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data); gboolean mm_gdbus_sim_call_change_pin_finish (MmGdbusSim *proxy,GAsyncResult *res,GError **error); gboolean mm_gdbus_sim_call_change_pin_sync (MmGdbusSim *proxy,const gchar *arg_old_pin,const gchar *arg_new_pin,GCancellable *cancellable,GError **error);
"imsi" gchar* : Read / Write "operator-identifier" gchar* : Read / Write "operator-name" gchar* : Read / Write "sim-identifier" gchar* : Read / Write
"handle-change-pin" :Run Last"handle-enable-pin" :Run Last"handle-send-pin" :Run Last"handle-send-puk" :Run Last
This section contains code for working with the org.freedesktop.ModemManager1.Sim D-Bus interface in C.
typedef struct _MmGdbusSim MmGdbusSim;
Abstract interface type for the D-Bus interface org.freedesktop.ModemManager1.Sim.
struct MmGdbusSimIface {
  GTypeInterface parent_iface;
  gboolean (*handle_change_pin) (
    MmGdbusSim *object,
    GDBusMethodInvocation *invocation,
    const gchar *arg_old_pin,
    const gchar *arg_new_pin);
  gboolean (*handle_enable_pin) (
    MmGdbusSim *object,
    GDBusMethodInvocation *invocation,
    const gchar *arg_pin,
    gboolean arg_enabled);
  gboolean (*handle_send_pin) (
    MmGdbusSim *object,
    GDBusMethodInvocation *invocation,
    const gchar *arg_pin);
  gboolean (*handle_send_puk) (
    MmGdbusSim *object,
    GDBusMethodInvocation *invocation,
    const gchar *arg_puk,
    const gchar *arg_pin);
  const gchar * (*get_imsi) (MmGdbusSim *object);
  const gchar * (*get_operator_identifier) (MmGdbusSim *object);
  const gchar * (*get_operator_name) (MmGdbusSim *object);
  const gchar * (*get_sim_identifier) (MmGdbusSim *object);
};
Virtual table for the D-Bus interface org.freedesktop.ModemManager1.Sim.
| GTypeInterface  | The parent interface. | 
| Handler for the "handle-change-pin" signal. | |
| Handler for the "handle-enable-pin" signal. | |
| Handler for the "handle-send-pin" signal. | |
| Handler for the "handle-send-puk" signal. | |
| Getter for the "imsi" property. | |
| Getter for the "operator-identifier" property. | |
| Getter for the "operator-name" property. | |
| Getter for the "sim-identifier" property. | 
const gchar *       mm_gdbus_sim_get_imsi               (MmGdbusSim *object);
Gets the value of the "Imsi" 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_sim_dup_imsi() if on another thread.
| 
 | A MmGdbusSim. | 
| Returns : | The property value or NULLif the property is not set. Do not free the returned value, it belongs toobject. [transfer none] | 
gchar *             mm_gdbus_sim_dup_imsi               (MmGdbusSim *object);
Gets a copy of the "Imsi" 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 MmGdbusSim. | 
| Returns : | The property value or NULLif the property is not set. The returned value should be freed withg_free(). [transfer full] | 
const gchar *       mm_gdbus_sim_get_sim_identifier     (MmGdbusSim *object);
Gets the value of the "SimIdentifier" 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_sim_dup_sim_identifier() if on another thread.
| 
 | A MmGdbusSim. | 
| Returns : | The property value or NULLif the property is not set. Do not free the returned value, it belongs toobject. [transfer none] | 
gchar *             mm_gdbus_sim_dup_sim_identifier     (MmGdbusSim *object);
Gets a copy of the "SimIdentifier" 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 MmGdbusSim. | 
| Returns : | The property value or NULLif the property is not set. The returned value should be freed withg_free(). [transfer full] | 
const gchar *       mm_gdbus_sim_get_operator_identifier
                                                        (MmGdbusSim *object);
Gets the value of the "OperatorIdentifier" 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_sim_dup_operator_identifier() if on another thread.
| 
 | A MmGdbusSim. | 
| Returns : | The property value or NULLif the property is not set. Do not free the returned value, it belongs toobject. [transfer none] | 
gchar *             mm_gdbus_sim_dup_operator_identifier
                                                        (MmGdbusSim *object);
Gets a copy of the "OperatorIdentifier" 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 MmGdbusSim. | 
| Returns : | The property value or NULLif the property is not set. The returned value should be freed withg_free(). [transfer full] | 
const gchar *       mm_gdbus_sim_get_operator_name      (MmGdbusSim *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.
object was constructed. Use mm_gdbus_sim_dup_operator_name() if on another thread.
| 
 | A MmGdbusSim. | 
| Returns : | The property value or NULLif the property is not set. Do not free the returned value, it belongs toobject. [transfer none] | 
gchar *             mm_gdbus_sim_dup_operator_name      (MmGdbusSim *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.
| 
 | A MmGdbusSim. | 
| Returns : | The property value or NULLif the property is not set. The returned value should be freed withg_free(). [transfer full] | 
void mm_gdbus_sim_call_send_pin (MmGdbusSim *proxy,const gchar *arg_pin,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data);
Asynchronously invokes the SendPin()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_sim_call_send_pin_finish() to get the result of the operation.
See mm_gdbus_sim_call_send_pin_sync() for the synchronous, blocking version of this method.
| 
 | A MmGdbusSimProxy. | 
| 
 | 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_sim_call_send_pin_finish (MmGdbusSim *proxy,GAsyncResult *res,GError **error);
Finishes an operation started with mm_gdbus_sim_call_send_pin().
| 
 | A MmGdbusSimProxy. | 
| 
 | The GAsyncResult obtained from the GAsyncReadyCallback passed to mm_gdbus_sim_call_send_pin(). | 
| 
 | Return location for error or NULL. | 
| Returns : | TRUEif the call succeded,FALSEiferroris set. [skip] | 
gboolean mm_gdbus_sim_call_send_pin_sync (MmGdbusSim *proxy,const gchar *arg_pin,GCancellable *cancellable,GError **error);
Synchronously invokes the SendPin()proxy. The calling thread is blocked until a reply is received.
See mm_gdbus_sim_call_send_pin() for the asynchronous version of this method.
| 
 | A MmGdbusSimProxy. | 
| 
 | Argument to pass with the method invocation. | 
| 
 | A GCancellable or NULL. [allow-none] | 
| 
 | Return location for error or NULL. | 
| Returns : | TRUEif the call succeded,FALSEiferroris set. [skip] | 
void mm_gdbus_sim_call_send_puk (MmGdbusSim *proxy,const gchar *arg_puk,const gchar *arg_pin,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data);
Asynchronously invokes the SendPuk()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_sim_call_send_puk_finish() to get the result of the operation.
See mm_gdbus_sim_call_send_puk_sync() for the synchronous, blocking version of this method.
| 
 | A MmGdbusSimProxy. | 
| 
 | Argument to pass with the method invocation. | 
| 
 | 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_sim_call_send_puk_finish (MmGdbusSim *proxy,GAsyncResult *res,GError **error);
Finishes an operation started with mm_gdbus_sim_call_send_puk().
| 
 | A MmGdbusSimProxy. | 
| 
 | The GAsyncResult obtained from the GAsyncReadyCallback passed to mm_gdbus_sim_call_send_puk(). | 
| 
 | Return location for error or NULL. | 
| Returns : | TRUEif the call succeded,FALSEiferroris set. [skip] | 
gboolean mm_gdbus_sim_call_send_puk_sync (MmGdbusSim *proxy,const gchar *arg_puk,const gchar *arg_pin,GCancellable *cancellable,GError **error);
Synchronously invokes the SendPuk()proxy. The calling thread is blocked until a reply is received.
See mm_gdbus_sim_call_send_puk() for the asynchronous version of this method.
| 
 | A MmGdbusSimProxy. | 
| 
 | Argument to pass with the method invocation. | 
| 
 | Argument to pass with the method invocation. | 
| 
 | A GCancellable or NULL. [allow-none] | 
| 
 | Return location for error or NULL. | 
| Returns : | TRUEif the call succeded,FALSEiferroris set. [skip] | 
void mm_gdbus_sim_call_enable_pin (MmGdbusSim *proxy,const gchar *arg_pin,gboolean arg_enabled,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data);
Asynchronously invokes the EnablePin()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_sim_call_enable_pin_finish() to get the result of the operation.
See mm_gdbus_sim_call_enable_pin_sync() for the synchronous, blocking version of this method.
| 
 | A MmGdbusSimProxy. | 
| 
 | Argument to pass with the method invocation. | 
| 
 | 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_sim_call_enable_pin_finish (MmGdbusSim *proxy,GAsyncResult *res,GError **error);
Finishes an operation started with mm_gdbus_sim_call_enable_pin().
| 
 | A MmGdbusSimProxy. | 
| 
 | The GAsyncResult obtained from the GAsyncReadyCallback passed to mm_gdbus_sim_call_enable_pin(). | 
| 
 | Return location for error or NULL. | 
| Returns : | TRUEif the call succeded,FALSEiferroris set. [skip] | 
gboolean mm_gdbus_sim_call_enable_pin_sync (MmGdbusSim *proxy,const gchar *arg_pin,gboolean arg_enabled,GCancellable *cancellable,GError **error);
Synchronously invokes the EnablePin()proxy. The calling thread is blocked until a reply is received.
See mm_gdbus_sim_call_enable_pin() for the asynchronous version of this method.
| 
 | A MmGdbusSimProxy. | 
| 
 | Argument to pass with the method invocation. | 
| 
 | Argument to pass with the method invocation. | 
| 
 | A GCancellable or NULL. [allow-none] | 
| 
 | Return location for error or NULL. | 
| Returns : | TRUEif the call succeded,FALSEiferroris set. [skip] | 
void mm_gdbus_sim_call_change_pin (MmGdbusSim *proxy,const gchar *arg_old_pin,const gchar *arg_new_pin,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data);
Asynchronously invokes the ChangePin()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_sim_call_change_pin_finish() to get the result of the operation.
See mm_gdbus_sim_call_change_pin_sync() for the synchronous, blocking version of this method.
| 
 | A MmGdbusSimProxy. | 
| 
 | Argument to pass with the method invocation. | 
| 
 | 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_sim_call_change_pin_finish (MmGdbusSim *proxy,GAsyncResult *res,GError **error);
Finishes an operation started with mm_gdbus_sim_call_change_pin().
| 
 | A MmGdbusSimProxy. | 
| 
 | The GAsyncResult obtained from the GAsyncReadyCallback passed to mm_gdbus_sim_call_change_pin(). | 
| 
 | Return location for error or NULL. | 
| Returns : | TRUEif the call succeded,FALSEiferroris set. [skip] | 
gboolean mm_gdbus_sim_call_change_pin_sync (MmGdbusSim *proxy,const gchar *arg_old_pin,const gchar *arg_new_pin,GCancellable *cancellable,GError **error);
Synchronously invokes the ChangePin()proxy. The calling thread is blocked until a reply is received.
See mm_gdbus_sim_call_change_pin() for the asynchronous version of this method.
| 
 | A MmGdbusSimProxy. | 
| 
 | Argument to pass with the method invocation. | 
| 
 | Argument to pass with the method invocation. | 
| 
 | A GCancellable or NULL. [allow-none] | 
| 
 | Return location for error or NULL. | 
| Returns : | TRUEif the call succeded,FALSEiferroris set. [skip] | 
"imsi" property"imsi" gchar* : Read / Write
Represents the D-Bus property "Imsi".
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
"operator-identifier" property"operator-identifier" gchar* : Read / Write
Represents the D-Bus property "OperatorIdentifier".
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
"operator-name" property"operator-name" gchar* : Read / Write
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.
Default value: NULL
"sim-identifier" property"sim-identifier" gchar* : Read / Write
Represents the D-Bus property "SimIdentifier".
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
"handle-change-pin" signalgboolean            user_function                      (MmGdbusSim            *object,
                                                        GDBusMethodInvocation *invocation,
                                                        gchar                 *arg_old_pin,
                                                        gchar                 *arg_new_pin,
                                                        gpointer               user_data)        : Run Last
Signal emitted when a remote caller is invoking the ChangePin()
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_sim_complete_change_pin() 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 MmGdbusSim. | 
| 
 | A GDBusMethodInvocation. | 
| 
 | Argument passed by remote caller. | 
| 
 | Argument passed by remote caller. | 
| 
 | user data set when the signal handler was connected. | 
| Returns : | TRUEif the invocation was handled,FALSEto let other signal handlers run. | 
"handle-enable-pin" signalgboolean            user_function                      (MmGdbusSim            *object,
                                                        GDBusMethodInvocation *invocation,
                                                        gchar                 *arg_pin,
                                                        gboolean               arg_enabled,
                                                        gpointer               user_data)        : Run Last
Signal emitted when a remote caller is invoking the EnablePin()
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_sim_complete_enable_pin() 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 MmGdbusSim. | 
| 
 | A GDBusMethodInvocation. | 
| 
 | Argument passed by remote caller. | 
| 
 | Argument passed by remote caller. | 
| 
 | user data set when the signal handler was connected. | 
| Returns : | TRUEif the invocation was handled,FALSEto let other signal handlers run. | 
"handle-send-pin" signalgboolean            user_function                      (MmGdbusSim            *object,
                                                        GDBusMethodInvocation *invocation,
                                                        gchar                 *arg_pin,
                                                        gpointer               user_data)       : Run Last
Signal emitted when a remote caller is invoking the SendPin()
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_sim_complete_send_pin() 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 MmGdbusSim. | 
| 
 | A GDBusMethodInvocation. | 
| 
 | Argument passed by remote caller. | 
| 
 | user data set when the signal handler was connected. | 
| Returns : | TRUEif the invocation was handled,FALSEto let other signal handlers run. | 
"handle-send-puk" signalgboolean            user_function                      (MmGdbusSim            *object,
                                                        GDBusMethodInvocation *invocation,
                                                        gchar                 *arg_puk,
                                                        gchar                 *arg_pin,
                                                        gpointer               user_data)       : Run Last
Signal emitted when a remote caller is invoking the SendPuk()
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_sim_complete_send_puk() 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 MmGdbusSim. | 
| 
 | A GDBusMethodInvocation. | 
| 
 | Argument passed by remote caller. | 
| 
 | Argument passed by remote caller. | 
| 
 | user data set when the signal handler was connected. | 
| Returns : | TRUEif the invocation was handled,FALSEto let other signal handlers run. |