Initial Commit
[celltowerinfo] / src / cellinfo-window.h
1 #ifndef _CELLINFO_WINDOW_H_
2 #define _CELLINFO_WINDOW_H_
3
4 #include <hildon/hildon.h>
5 #include <libosso.h>
6 #include <location/location-gps-device.h>
7 #include <location/location-gpsd-control.h>
8
9
10 G_BEGIN_DECLS
11
12 #define CELLINFO_TYPE_WINDOW cellinfo_window_get_type()
13
14 #define CELLINFO_WINDOW(obj) \
15   (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
16   CELLINFO_TYPE_WINDOW, CellinfoWindow))
17
18 #define CELLINFO_WINDOW_CLASS(klass) \
19   (G_TYPE_CHECK_CLASS_CAST ((klass), \
20   CELLINFO_TYPE_WINDOW, CellinfoWindowClass))
21
22 #define CELLINFO_IS_WINDOW(obj) \
23   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
24   CELLINFO_TYPE_WINDOW))
25
26 #define CELLINFO_IS_WINDOW_CLASS(klass) \
27   (G_TYPE_CHECK_CLASS_TYPE ((klass), \
28   CELLINFO_TYPE_WINDOW))
29
30 #define CELLINFO_WINDOW_GET_CLASS(obj) \
31   (G_TYPE_INSTANCE_GET_CLASS ((obj), \
32   CELLINFO_TYPE_WINDOW, CellinfoWindowClass))
33
34 typedef struct _CellinfoWindow CellinfoWindow;
35 typedef struct _CellinfoWindowClass CellinfoWindowClass;
36
37 struct _CellinfoWindow
38 {
39   HildonWindow       parent;
40   osso_context_t    *osso;
41   /* Fullscreen mode is on (TRUE) or off (FALSE): */
42   /*
43   gboolean           fullscreen;
44   */
45
46   GtkWidget         *vb_cellinfo;
47   /* Button items for menu */
48   GtkWidget         *select_sensors;
49
50   /* labels */
51   GtkWidget         *lb_cell_type;
52   GtkWidget         *lb_mnc;
53   GtkWidget         *lb_mcc;
54   GtkWidget         *lb_cell_id;
55   GtkWidget         *lb_ucid;
56   GtkWidget         *lb_lac;
57
58   /* Box that might be hidden */
59   GtkWidget         *hb_cell_id;
60   GtkWidget         *hb_lac;
61   GtkWidget         *hb_ucid;
62
63   /* location info */
64   LocationGPSDControl *control;
65   LocationGPSDevice   *device;
66 };
67
68 struct _CellinfoWindowClass
69 {
70   HildonWindowClass parent_class;
71 };
72
73 GType cellinfo_window_get_type (void);
74 CellinfoWindow* cellinfo_window_new (osso_context_t *osso);
75
76 G_END_DECLS
77
78 #endif /* _CELLINFO_WINDOW_H_ */