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__
28 #include <gtk/gtkcontainer.h>
29 #include "hildon-time-editor.h"
33 #define HILDON_TYPE_DATE_EDITOR \
34 (hildon_date_editor_get_type())
36 #define HILDON_DATE_EDITOR(obj) \
37 (GTK_CHECK_CAST (obj,\
38 HILDON_TYPE_DATE_EDITOR, HildonDateEditor))
40 #define HILDON_DATE_EDITOR_CLASS(klass) \
41 (GTK_CHECK_CLASS_CAST ((klass),\
42 HILDON_TYPE_DATE_EDITOR, HildonDateEditorClass))
44 #define HILDON_IS_DATE_EDITOR(obj) \
45 (GTK_CHECK_TYPE (obj,\
46 HILDON_TYPE_DATE_EDITOR))
48 #define HILDON_IS_DATE_EDITOR_CLASS(klass) \
49 (GTK_CHECK_CLASS_TYPE ((klass),\
50 HILDON_TYPE_DATE_EDITOR))
52 typedef struct _HildonDateEditor HildonDateEditor;
54 typedef struct _HildonDateEditorClass HildonDateEditorClass;
57 struct _HildonDateEditor
62 struct _HildonDateEditorClass
64 GtkContainerClass parent_class;
66 gboolean (*date_error) (HildonDateEditor *editor, HildonDateTimeError type);
70 hildon_date_editor_get_type (void);
73 hildon_date_editor_new (void);
76 hildon_date_editor_set_date (HildonDateEditor *date,
82 hildon_date_editor_get_date (HildonDateEditor *date,
88 hildon_date_editor_set_year (HildonDateEditor *editor,
92 hildon_date_editor_set_month (HildonDateEditor *editor,
95 gboolean hildon_date_editor_set_day (HildonDateEditor *editor,
99 hildon_date_editor_get_year (HildonDateEditor *editor);
102 hildon_date_editor_get_month (HildonDateEditor *editor);
105 hildon_date_editor_get_day (HildonDateEditor *editor);
109 #endif /* __HILDON_DATE_EDITOR_H__ */