Make sure that all timeouts in HildonBanner are removed
[hildon] / hildon / hildon-volumebar.h
1 /*
2  * This file is a part of hildon
3  *
4  * Copyright (C) 2005, 2006 Nokia Corporation, all rights reserved.
5  *
6  * Contact: Rodrigo Novo <rodrigo.novo@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_DISABLE_DEPRECATED
26
27 #ifndef                                         __HILDON_VOLUMEBAR_H__
28 #define                                         __HILDON_VOLUMEBAR_H__
29
30 #include                                        <gtk/gtk.h>
31
32 #include                                        "hildon-helper.h"
33
34 G_BEGIN_DECLS
35
36 #define                                         HILDON_TYPE_VOLUMEBAR \
37                                                 (hildon_volumebar_get_type())
38
39 #define                                         HILDON_VOLUMEBAR(obj) \
40                                                 (G_TYPE_CHECK_INSTANCE_CAST (obj,\
41                                                 HILDON_TYPE_VOLUMEBAR, HildonVolumebar))
42
43 #define                                         HILDON_VOLUMEBAR_CLASS(klass) \
44                                                 (G_TYPE_CHECK_CLASS_CAST ((klass),\
45                                                 HILDON_TYPE_VOLUMEBAR, HildonVolumebarClass))
46
47 #define                                         HILDON_IS_VOLUMEBAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE (obj,\
48                                                 HILDON_TYPE_VOLUMEBAR))
49
50 #define                                         HILDON_IS_VOLUMEBAR_CLASS(klass) \
51                                                 (G_TYPE_CHECK_CLASS_TYPE ((klass), HILDON_TYPE_VOLUMEBAR))
52
53 #define                                         HILDON_VOLUMEBAR_GET_CLASS(obj) \
54                                                 ((HildonVolumebarClass *) G_OBJECT_GET_CLASS(obj))
55
56 typedef struct                                  _HildonVolumebar HildonVolumebar;
57
58 typedef struct                                  _HildonVolumebarClass HildonVolumebarClass;
59
60 struct                                          _HildonVolumebar 
61 {
62     GtkContainer parent;
63 };
64
65 struct                                          _HildonVolumebarClass 
66 {
67     GtkContainerClass parent_class;
68
69     /* signals */
70     void (*mute_toggled)  (HildonVolumebar * self);
71     void (*level_changed) (HildonVolumebar * self);
72 };
73
74 GType G_GNUC_CONST 
75 hildon_volumebar_get_type                       (void);
76
77 double          
78 hildon_volumebar_get_level                      (HildonVolumebar *self);
79
80 void            
81 hildon_volumebar_set_level                      (HildonVolumebar *self,
82                                                  gdouble level);
83
84 gboolean        
85 hildon_volumebar_get_mute                       (HildonVolumebar *self);
86
87 void            
88 hildon_volumebar_set_mute                       (HildonVolumebar *self,
89                                                  gboolean mute);
90
91 GtkAdjustment* 
92 hildon_volumebar_get_adjustment                 (HildonVolumebar *self);
93
94 #ifndef HILDON_DISABLE_DEPRECATED
95 void
96 hildon_volumebar_set_range_insensitive_message  (HildonVolumebar *widget,
97                                                  const gchar *message);
98
99 void
100 hildon_volumebar_set_range_insensitive_messagef (HildonVolumebar *widget,
101                                                  const gchar *format,
102                                                  ...);
103 #endif
104
105 G_END_DECLS
106
107 #endif                                          /* __HILDON_VOLUMEBAR_H__ */
108
109 #endif                                          /* HILDON_DISABLE_DEPRECATED */