2
* This file is a part of hildon
4
* Copyright (C) 2005, 2008 Nokia Corporation.
6
* This library is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU Lesser General Public
8
* License as published by the Free Software Foundation; either
9
* version 2 of the License, or (at your option) any later version. or (at your option) any later version.
11
* This library is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
* Lesser General Public License for more details.
16
* You should have received a copy of the GNU Lesser General Public
17
* License along with this library; if not, write to the Free
18
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21
#ifndef __HILDON_DATE_SELECTOR_H__
22
#define __HILDON_DATE_SELECTOR_H__
24
#include "hildon-touch-selector.h"
27
#define HILDON_TYPE_DATE_SELECTOR \
28
(hildon_date_selector_get_type ())
30
#define HILDON_DATE_SELECTOR(obj) \
31
(G_TYPE_CHECK_INSTANCE_CAST ((obj), \
32
HILDON_TYPE_DATE_SELECTOR, HildonDateSelector))
34
#define HILDON_DATE_SELECTOR_CLASS(vtable) \
35
(G_TYPE_CHECK_CLASS_CAST ((vtable), \
36
HILDON_TYPE_DATE_SELECTOR, HildonDateSelectorClass))
38
#define HILDON_IS_DATE_SELECTOR(obj) \
39
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), HILDON_TYPE_DATE_SELECTOR))
41
#define HILDON_IS_DATE_SELECTOR_CLASS(vtable) \
42
(G_TYPE_CHECK_CLASS_TYPE ((vtable), HILDON_TYPE_DATE_SELECTOR))
44
#define HILDON_DATE_SELECTOR_GET_CLASS(inst) \
45
(G_TYPE_INSTANCE_GET_CLASS ((inst), \
46
HILDON_TYPE_DATE_SELECTOR, HildonDateSelectorClass))
48
typedef struct _HildonDateSelector HildonDateSelector;
49
typedef struct _HildonDateSelectorClass HildonDateSelectorClass;
50
typedef struct _HildonDateSelectorPrivate HildonDateSelectorPrivate;
52
struct _HildonDateSelector
54
HildonTouchSelector parent_instance;
57
HildonDateSelectorPrivate *priv;
60
struct _HildonDateSelectorClass
62
HildonTouchSelectorClass parent_class;
70
hildon_date_selector_get_type (void) G_GNUC_CONST;
73
hildon_date_selector_new (void);
77
hildon_date_selector_select_month (HildonDateSelector *selector,
82
hildon_date_selector_select_day (HildonDateSelector *selector,
86
hildon_date_selector_select_current_date (HildonDateSelector *selector,
92
hildon_date_selector_get_date (HildonDateSelector *selector,
99
#endif /* __HILDON_DATE_SELECTOR_H__ */