Make sure that all timeouts in HildonBanner are removed
[hildon] / hildon / hildon-time-button.h
1 /*
2  * This file is a part of hildon
3  *
4  * Copyright (C) 2008 Nokia Corporation, all rights reserved.
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU Lesser Public License as published by
8  * the Free Software Foundation; version 2 of the license.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU Lesser Public License for more details.
14  *
15  */
16
17 #ifndef                                         __HILDON_TIME_BUTTON__
18 #define                                         __HILDON_TIME_BUTTON__
19
20 #include                                        <glib-object.h>
21
22 G_BEGIN_DECLS
23
24 #define                                         HILDON_TYPE_TIME_BUTTON \
25                                                 hildon_time_button_get_type()
26
27 #define                                         HILDON_TIME_BUTTON(obj) \
28                                                 (G_TYPE_CHECK_INSTANCE_CAST ((obj),\
29                                                 HILDON_TYPE_TIME_BUTTON, HildonTimeButton))
30
31 #define                                         HILDON_TIME_BUTTON_CLASS(klass) \
32                                                 (G_TYPE_CHECK_CLASS_CAST ((klass), \
33                                                 HILDON_TYPE_TIME_BUTTON, HildonTimeButtonClass))
34
35 #define                                         HILDON_IS_TIME_BUTTON(obj) \
36                                                 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), HILDON_TYPE_TIME_BUTTON))
37
38 #define                                         HILDON_IS_TIME_BUTTON_CLASS(klass) \
39                                                 (G_TYPE_CHECK_CLASS_TYPE ((klass), HILDON_TYPE_TIME_BUTTON))
40
41 #define                                         HILDON_TIME_BUTTON_GET_CLASS(obj) \
42                                                 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
43                                                 HILDON_TYPE_TIME_BUTTON, HildonTimeButtonClass))
44
45 typedef struct                                  _HildonTimeButton HildonTimeButton;
46 typedef struct                                  _HildonTimeButtonClass HildonTimeButtonClass;
47
48 struct                                          _HildonTimeButton
49 {
50   HildonPickerButton parent;
51 };
52
53 struct                                          _HildonTimeButtonClass
54 {
55   HildonPickerButtonClass parent_class;
56 };
57
58 GType
59 hildon_time_button_get_type                     (void);
60
61 GtkWidget*
62 hildon_time_button_new                          (HildonSizeType         size,
63                                                 HildonButtonArrangement arrangement);
64
65 GtkWidget *
66 hildon_time_button_new_step                     (HildonSizeType          size,
67                                                 HildonButtonArrangement  arrangement,
68                                                 guint                    minutes_step);
69
70 void
71 hildon_time_button_get_time                     (HildonTimeButton *button,
72                                                  guint            *hours,
73                                                  guint            *minutes);
74
75 void
76 hildon_time_button_set_time                     (HildonTimeButton *button,
77                                                  guint             hours,
78                                                  guint             minutes);
79
80 G_END_DECLS
81
82 #endif /* _HILDON_TIME_BUTTON */