Fixed typo in error message.
[gsmd2.git] / src / dbus_pdp_object.h
blob56a733cd016fdb49cb8183de98a2f2242b4567a0
1 /*
2 * dbus_pdp_object.h
4 * Copyright(C) 2007,2008 Ixonos Plc
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2, or (at your option)
9 * any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Boston, MA 02111.
22 * Written by
23 * Jukka Honkela
24 * Yi Zheng
25 * Matti Katila
26 * Vesa Pikki
27 * Heikki Paajanen
31 #ifndef DBUS_PDP_OBJECT_H
32 #define DBUS_PDP_OBJECT_H
35 #include <glib-object.h>
36 #include "dbus_objects.h"
37 #include "pdp_interface.h"
39 typedef struct DBusPDPObject DBusPDPObject;
40 typedef struct DBusPDPObjectClass DBusPDPObjectClass;
42 GType dbus_pdp_object_get_type (void);
45 struct DBusPDPObject {
46 GObject parent;
47 PDPInterface *pdp;
50 struct DBusPDPObjectClass {
51 GObjectClass parent;
52 guint context_activated;
53 guint context_deactivated;
54 guint context_changed;
57 /* Macros that are needed for making the proper GObject */
58 #define DBUS_PDP_TYPE_OBJECT (dbus_pdp_object_get_type ())
59 #define DBUS_PDP_OBJECT(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), DBUS_PDP_TYPE_OBJECT, DBusPDPObject))
60 #define DBUS_PDP_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DBUS_PDP_TYPE_OBJECT, DBusPDPObjectClass))
61 #define DBUS_IS_PDP_OBJECT(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), DBUS_PDP_TYPE_OBJECT))
62 #define DBUS_IS_PDP_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DBUS_PDP_TYPE_OBJECT))
63 #define DBUS_PDP_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DBUS_PDP_TYPE_OBJECT, DBusPDPObjectClass))
65 DBusPDPObject *gsmd_dbus_pdp_initialize (PDPIPCInterface *pdp_ipc, PDPInterface *pdp);
66 void gsmd_dbus_pdp_uninitialize(DBusPDPObject *obj);
68 //Methods
69 gboolean smartphone_pdp_list_gprs_classes(DBusPDPObject *obj, DBusGMethodInvocation *method_context);
70 gboolean smartphone_pdp_select_gprs_class(DBusPDPObject *obj, const gchar *klass, DBusGMethodInvocation *method_context);
71 gboolean smartphone_pdp_activate(DBusPDPObject *obj, const gint index, DBusGMethodInvocation *method_context);
72 gboolean smartphone_pdp_deactivate(DBusPDPObject *obj, const gint index, DBusGMethodInvocation *method_context);
73 gboolean smartphone_pdp_select_context(DBusPDPObject *obj, const gchar *context, DBusGMethodInvocation *method_context);
74 gboolean smartphone_pdp_add_context(DBusPDPObject *obj, const gchar *context, DBusGMethodInvocation *method_context);
75 gboolean smartphone_pdp_delete_context(DBusPDPObject *obj, const gint index, DBusGMethodInvocation *method_context);
76 gboolean smartphone_pdp_list_contexts(DBusPDPObject *obj, DBusGMethodInvocation *method_context);
80 //Signals
85 #endif