Debian Codegraph @

src/gtkservice.h

raw symbols SCIP
1 /*
2 *
3 * Connection Manager UI
4 *
5 * Copyright (C) 2012 Intel Corporation. All rights reserved.
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
10 *
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.
15 *
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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19 *
20 */
21
22 #ifndef __GTK_SERVICE_H__
23 #define __GTK_SERVICE_H__
24
25 #include <gtk/gtk.h>
26
27 #include <connman-interface.h>
28
29 G_BEGIN_DECLS
30
31 #define GTK_TYPE_SERVICE \
32 (gtk_service_get_type())
33 #define GTK_SERVICE(obj) \
34 (G_TYPE_CHECK_INSTANCE_CAST((obj), \
35 GTK_TYPE_SERVICE, GtkService))
36 #define GTK_SERVICE_CLASS(klass) \
37 (G_TYPE_CHECK_CLASS_CAST((klass), \
38 GTK_TYPE_SERVICE, GtkServiceClass))
39 #define GTK_IS_SERVICE(obj) \
40 (G_TYPE_CHECK_INSTANCE_TYPE((obj), GTK_TYPE_SERVICE))
41 #define GTK_IS_SERVICE_CLASS(klass) \
42 (G_TYPE_CHECK_CLASS_TYPE((klass), GTK_TYPE_SERVICE))
43 #define GTK_SERVICE_GET_CLASS(obj) \
44 (G_TYPE_INSTANCE_GET_CLASS((obj), \
45 GTK_TYPE_SERVICE, GtkServiceClass))
46
47 typedef struct _GtkService GtkService;
48 typedef struct _GtkServiceClass GtkServiceClass;
49 typedef struct _GtkServicePrivate GtkServicePrivate;
50
51 struct _GtkService {
52 GtkMenuItem parent_class;
53
54 GtkServicePrivate *priv;
55
56 gchar *path;
57 };
58
59 struct _GtkServiceClass {
60 GtkMenuItemClass parent_class;
61 };
62
63 GType gtk_service_get_type(void) G_GNUC_CONST;
64 GtkService *gtk_service_new(const gchar *path);
65
66 G_END_DECLS
67
68 #endif /* __GTK_SERVICE_H__ */