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.
This commit is contained in:
Aleksander Morgado
2012-03-15 14:14:22 +01:00
parent b00c409978
commit 8069c751a0
+20
View File
@@ -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);