Add HildonAppMenu::changed signal
[hildon] / hildon / hildon-date-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_DATE_BUTTON__
18 #define                                         __HILDON_DATE_BUTTON__
19
20 #include                                        <gtk/gtk.h>
21
22 #include                                        "hildon-picker-button.h"
23
24 G_BEGIN_DECLS
25
26 #define                                         HILDON_TYPE_DATE_BUTTON \
27                                                 hildon_date_button_get_type()
28
29 #define                                         HILDON_DATE_BUTTON(obj) \
30                                                 (G_TYPE_CHECK_INSTANCE_CAST ((obj),\
31                                                  HILDON_TYPE_DATE_BUTTON, HildonDateButton))
32
33 #define                                         HILDON_DATE_BUTTON_CLASS(klass) \
34                                                 (G_TYPE_CHECK_CLASS_CAST ((klass), \
35                                                 HILDON_TYPE_DATE_BUTTON, HildonDateButtonClass))
36
37 #define                                         HILDON_IS_DATE_BUTTON(obj) \
38                                                 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), HILDON_TYPE_DATE_BUTTON))
39
40 #define                                         HILDON_IS_DATE_BUTTON_CLASS(klass) \
41                                                 (G_TYPE_CHECK_CLASS_TYPE ((klass), HILDON_TYPE_DATE_BUTTON))
42
43 #define                                         HILDON_DATE_BUTTON_GET_CLASS(obj) \
44                                                 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
45                                                 HILDON_TYPE_DATE_BUTTON, HildonDateButtonClass))
46
47
48 typedef struct                                  _HildonDateButton HildonDateButton;
49 typedef struct                                  _HildonDateButtonClass HildonDateButtonClass;
50
51 struct                                          _HildonDateButton
52 {
53   HildonPickerButton parent;
54 };
55
56 struct                                          _HildonDateButtonClass
57 {
58   HildonPickerButtonClass parent_class;
59 };
60
61 GType
62 hildon_date_button_get_type                     (void);
63
64 GtkWidget*
65 hildon_date_button_new                          (HildonSizeType          size,
66                                                  HildonButtonArrangement arrangement);
67
68 GtkWidget *
69 hildon_date_button_new_with_year_range         (HildonSizeType size,
70                                                 HildonButtonArrangement arrangement,
71                                                 gint min_year,
72                                                 gint max_year);
73
74 void
75 hildon_date_button_get_date                     (HildonDateButton *button,
76                                                  guint *year,
77                                                  guint *month,
78                                                  guint *day);
79 void
80 hildon_date_button_set_date                     (HildonDateButton * button,
81                                                  guint year,
82                                                  guint month,
83                                                  guint day);
84
85 G_END_DECLS
86
87 #endif /* __HILDON_DATE_BUTTON__ */