aboutsummaryrefslogtreecommitdiff
path: root/src/mm-base-modem.h
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2011-11-23 10:03:34 +0100
committerAleksander Morgado <aleksander@lanedo.com>2012-03-15 14:14:22 +0100
commit8069c751a04144478ce243ecaa9fdfd2b9794d02 (patch)
tree062fa8ccb212a17cba14469585d6690c67e4024b /src/mm-base-modem.h
parentb00c4099783cd4a994e7771ed275c7c61591a45b (diff)
base-modem: new `enable()' and `disable()' async methods
Users will be able to enable or disable modems using the DBus interface. We will chain up the `Enable(boolean)' call from the DBus interface to these new methods in the base modem class.
Diffstat (limited to 'src/mm-base-modem.h')
-rw-r--r--src/mm-base-modem.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/mm-base-modem.h b/src/mm-base-modem.h
index 0945b630..cd2999ad 100644
--- a/src/mm-base-modem.h
+++ b/src/mm-base-modem.h
@@ -65,6 +65,26 @@ struct _MMBaseModemClass {
gboolean (*initialize_finish) (MMBaseModem *self,
GAsyncResult *res,
GError **error);
+
+ /* Modem enabling.
+ * User action requested from DBus, usually */
+ void (* enable) (MMBaseModem *self,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+ gboolean (*enable_finish) (MMBaseModem *self,
+ GAsyncResult *res,
+ GError **error);
+
+ /* Modem disabling.
+ * User action requested from DBus, usually */
+ void (* disable) (MMBaseModem *self,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+ gboolean (*disable_finish) (MMBaseModem *self,
+ GAsyncResult *res,
+ GError **error);
};
GType mm_base_modem_get_type (void);