Remove HILDON_ENABLE_UNSTABLE_API.
[hildon] / src / hildon-program.h
1 /*
2  * This file is a part of hildon
3  *
4  * Copyright (C) 2006 Nokia Corporation, all rights reserved.
5  *
6  * Contact: Michael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public License
10  * as published by the Free Software Foundation; version 2.1 of
11  * the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful, but
14  * WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with this library; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
21  * 02110-1301 USA
22  *
23  */
24
25 #ifndef                                         __HILDON_PROGRAM_H__
26 #define                                         __HILDON_PROGRAM_H__
27
28 #include                                        <glib-object.h>
29 #include                                        "hildon-window.h"
30
31 G_BEGIN_DECLS
32
33 typedef struct                                  _HildonProgram HildonProgram;
34
35 typedef struct                                  _HildonProgramClass HildonProgramClass;
36
37 #define                                         HILDON_TYPE_PROGRAM \
38                                                 (hildon_program_get_type())
39
40 #define                                         HILDON_PROGRAM(obj) \
41                                                 (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
42                                                 HILDON_TYPE_PROGRAM, HildonProgram))
43
44 #define                                         HILDON_PROGRAM_CLASS(obj) \
45                                                 (G_TYPE_CHECK_CLASS_CAST ((obj), \
46                                                 HILDON_TYPE_PROGRAM, HildonProgramClass))
47
48 #define                                         HILDON_IS_PROGRAM(obj) \
49                                                 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), HILDON_TYPE_PROGRAM))
50
51 #define                                         HILDON_IS_PROGRAM_CLASS(klass) \
52                                                 (G_CHECK_CLASS_TYPE ((klass), HILDON_TYPE_PROGRAM))
53
54 #define                                         HILDON_PROGRAM_GET_CLASS(obj) \
55                                                 ((HildonProgramClass *) G_OBJECT_GET_CLASS(obj))
56
57 struct                                          _HildonProgram
58 {
59     GObject parent;
60 };
61
62 struct                                          _HildonProgramClass
63 {
64     GObjectClass parent;
65
66     /* Padding for future extension */
67     void (*_hildon_reserved1)(void);
68     void (*_hildon_reserved2)(void);
69     void (*_hildon_reserved3)(void);
70     void (*_hildon_reserved4)(void);
71 };
72
73 GType G_GNUC_CONST
74 hildon_program_get_type                         (void);
75
76 HildonProgram*
77 hildon_program_get_instance                     (void);
78
79 void
80 hildon_program_add_window                       (HildonProgram *self, 
81                                                  HildonWindow *window);
82
83 void
84 hildon_program_remove_window                    (HildonProgram *self, 
85                                                  HildonWindow *window);
86
87 void
88 hildon_program_set_can_hibernate                (HildonProgram *self, 
89                                                  gboolean can_hibernate);
90
91 gboolean
92 hildon_program_get_can_hibernate                (HildonProgram *self);
93
94 void
95 hildon_program_set_common_menu                  (HildonProgram *self, 
96                                                  GtkMenu *menu);
97
98 GtkMenu*
99 hildon_program_get_common_menu                  (HildonProgram *self);
100
101 void
102 hildon_program_set_common_toolbar               (HildonProgram *self, 
103                                                  GtkToolbar *toolbar);
104
105 GtkToolbar*
106 hildon_program_get_common_toolbar               (HildonProgram *self);
107
108 gboolean
109 hildon_program_get_is_topmost                   (HildonProgram *self);
110
111 G_END_DECLS
112
113 #endif                                          /* __HILDON_PROGRAM_H__ */