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)
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.
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
{
50 struct DBusPDPObjectClass
{
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
);
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
);