2 * This file is a part of hildon
4 * Copyright (C) 2005, 2006 Nokia Corporation, all rights reserved.
6 * Contact: Michael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
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.
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.
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
25 #ifndef __HILDON_DATE_EDITOR_H__
26 #define __HILDON_DATE_EDITOR_H__
30 #include "hildon-time-editor.h"
34 #define HILDON_TYPE_DATE_EDITOR \
35 (hildon_date_editor_get_type())
37 #define HILDON_DATE_EDITOR(obj) \
38 (GTK_CHECK_CAST (obj,\
39 HILDON_TYPE_DATE_EDITOR, HildonDateEditor))
41 #define HILDON_DATE_EDITOR_CLASS(klass) \
42 (GTK_CHECK_CLASS_CAST ((klass),\
43 HILDON_TYPE_DATE_EDITOR, HildonDateEditorClass))
45 #define HILDON_IS_DATE_EDITOR(obj) \
46 (GTK_CHECK_TYPE (obj,\
47 HILDON_TYPE_DATE_EDITOR))
49 #define HILDON_IS_DATE_EDITOR_CLASS(klass) \
50 (GTK_CHECK_CLASS_TYPE ((klass),\
51 HILDON_TYPE_DATE_EDITOR))
53 typedef struct _HildonDateEditor HildonDateEditor;
55 typedef struct _HildonDateEditorClass HildonDateEditorClass;
58 struct _HildonDateEditor
63 struct _HildonDateEditorClass
65 GtkContainerClass parent_class;
67 gboolean (*date_error) (HildonDateEditor *editor, HildonDateTimeError type);
71 hildon_date_editor_get_type (void);
74 hildon_date_editor_new (void);
77 hildon_date_editor_set_date (HildonDateEditor *date,
83 hildon_date_editor_get_date (HildonDateEditor *date,
89 hildon_date_editor_set_year (HildonDateEditor *editor,
93 hildon_date_editor_set_month (HildonDateEditor *editor,
96 gboolean hildon_date_editor_set_day (HildonDateEditor *editor,
100 hildon_date_editor_get_year (HildonDateEditor *editor);
103 hildon_date_editor_get_month (HildonDateEditor *editor);
106 hildon_date_editor_get_day (HildonDateEditor *editor);
110 #endif /* __HILDON_DATE_EDITOR_H__ */