summaryrefslogtreecommitdiff
path: root/src/mm-iface-modem-3gpp-ussd.h
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-01-23 10:49:24 +0100
committerAleksander Morgado <aleksander@lanedo.com>2012-03-15 14:14:56 +0100
commitb65f96aec73e0b4cba3e9e1fa76438b7e68f300a (patch)
treee8b7de3feed99e14fc3742b4bbe7fb85ee21f1f7 /src/mm-iface-modem-3gpp-ussd.h
parent18531e5a2d4ee4a96bc789adcd94bf0209fffd81 (diff)
iface-modem-3gpp-ussd: new interface for USSD related actions
Diffstat (limited to 'src/mm-iface-modem-3gpp-ussd.h')
-rw-r--r--src/mm-iface-modem-3gpp-ussd.h73
1 files changed, 73 insertions, 0 deletions
diff --git a/src/mm-iface-modem-3gpp-ussd.h b/src/mm-iface-modem-3gpp-ussd.h
new file mode 100644
index 00000000..c46cc871
--- /dev/null
+++ b/src/mm-iface-modem-3gpp-ussd.h
@@ -0,0 +1,73 @@
+/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details:
+ *
+ * Copyright (C) 2012 Google, Inc.
+ */
+
+#ifndef MM_IFACE_MODEM_3GPP_USSD_H
+#define MM_IFACE_MODEM_3GPP_USSD_H
+
+#include <glib-object.h>
+#include <gio/gio.h>
+
+#include <libmm-common.h>
+
+#include "mm-at-serial-port.h"
+
+#define MM_TYPE_IFACE_MODEM_3GPP_USSD (mm_iface_modem_3gpp_ussd_get_type ())
+#define MM_IFACE_MODEM_3GPP_USSD(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MM_TYPE_IFACE_MODEM_3GPP_USSD, MMIfaceModem3gppUssd))
+#define MM_IS_IFACE_MODEM_3GPP_USSD(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MM_TYPE_IFACE_MODEM_3GPP_USSD))
+#define MM_IFACE_MODEM_3GPP_USSD_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), MM_TYPE_IFACE_MODEM_3GPP_USSD, MMIfaceModem3gppUssd))
+
+#define MM_IFACE_MODEM_3GPP_USSD_DBUS_SKELETON "iface-modem-3gpp-ussd-dbus-skeleton"
+
+typedef struct _MMIfaceModem3gppUssd MMIfaceModem3gppUssd;
+
+struct _MMIfaceModem3gppUssd {
+ GTypeInterface g_iface;
+};
+
+GType mm_iface_modem_3gpp_ussd_get_type (void);
+
+/* Initialize USSD interface (async) */
+void mm_iface_modem_3gpp_ussd_initialize (MMIfaceModem3gppUssd *self,
+ MMAtSerialPort *port,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+gboolean mm_iface_modem_3gpp_ussd_initialize_finish (MMIfaceModem3gppUssd *self,
+ GAsyncResult *res,
+ GError **error);
+
+/* Enable USSD interface (async) */
+void mm_iface_modem_3gpp_ussd_enable (MMIfaceModem3gppUssd *self,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+gboolean mm_iface_modem_3gpp_ussd_enable_finish (MMIfaceModem3gppUssd *self,
+ GAsyncResult *res,
+ GError **error);
+
+/* Disable USSD interface (async) */
+void mm_iface_modem_3gpp_ussd_disable (MMIfaceModem3gppUssd *self,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+gboolean mm_iface_modem_3gpp_ussd_disable_finish (MMIfaceModem3gppUssd *self,
+ GAsyncResult *res,
+ GError **error);
+
+/* Shutdown USSD interface */
+void mm_iface_modem_3gpp_ussd_shutdown (MMIfaceModem3gppUssd *self);
+
+/* Bind properties for simple GetStatus() */
+void mm_iface_modem_3gpp_ussd_bind_simple_status (MMIfaceModem3gppUssd *self,
+ MMCommonSimpleProperties *status);
+
+#endif /* MM_IFACE_MODEM_3GPP_USSD_H */