aboutsummaryrefslogtreecommitdiff
path: root/src/mm-sim.h
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-01-21 15:43:31 +0100
committerAleksander Morgado <aleksander@lanedo.com>2012-03-15 14:14:55 +0100
commitc65c5aedc334d5eaa0a186c183f79b2c5645379f (patch)
tree4a1a3accc86f5621c1e63ed790b1e9066d81e75b /src/mm-sim.h
parent72afc058bffff9753cd1cc612b01adaf4143ed5b (diff)
sim: allow subclassing pin/puk sending operations
Diffstat (limited to 'src/mm-sim.h')
-rw-r--r--src/mm-sim.h29
1 files changed, 28 insertions, 1 deletions
diff --git a/src/mm-sim.h b/src/mm-sim.h
index 98633da5..6557fd5b 100644
--- a/src/mm-sim.h
+++ b/src/mm-sim.h
@@ -81,6 +81,25 @@ struct _MMSimClass {
gchar * (* load_operator_name_finish) (MMSim *self,
GAsyncResult *res,
GError **error);
+
+ /* Send PIN (async) */
+ void (* send_pin) (MMSim *self,
+ const gchar *pin,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+ gboolean (* send_pin_finish) (MMSim *self,
+ GAsyncResult *res,
+ GError **error);
+
+ /* Send PUK (async) */
+ void (* send_puk) (MMSim *self,
+ const gchar *puk,
+ const gchar *new_pin,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+ gboolean (* send_puk_finish) (MMSim *self,
+ GAsyncResult *res,
+ GError **error);
};
GType mm_sim_get_type (void);
@@ -103,13 +122,21 @@ gboolean mm_sim_initialize_finish (MMSim *self,
void mm_sim_send_pin (MMSim *self,
const gchar *pin,
- const gchar *puk,
GAsyncReadyCallback callback,
gpointer user_data);
gboolean mm_sim_send_pin_finish (MMSim *self,
GAsyncResult *res,
GError **error);
+void mm_sim_send_puk (MMSim *self,
+ const gchar *puk,
+ const gchar *new_pin,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+gboolean mm_sim_send_puk_finish (MMSim *self,
+ GAsyncResult *res,
+ GError **error);
+
void mm_sim_export (MMSim *self);
const gchar *mm_sim_get_path (MMSim *sim);