2007-04-20 Murray Cumming <murrayc@murrayc.com>
[modest] / src / maemo / easysetup / modest-validating-entry.h
1 /* Copyright (c) 2007, Nokia Corporation
2  * All rights reserved.
3  *
4  */
5
6 #ifndef _EASYSETUP_VALIDATING_ENTRY
7 #define _EASYSETUP_VALIDATING_ENTRY
8
9 #include <gtk/gtkentry.h>
10
11 G_BEGIN_DECLS
12
13 #define EASYSETUP_TYPE_VALIDATING_ENTRY easysetup_validating_entry_get_type()
14
15 #define EASYSETUP_VALIDATING_ENTRY(obj) \
16         (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
17         EASYSETUP_TYPE_VALIDATING_ENTRY, EasysetupValidatingEntry))
18
19 #define EASYSETUP_VALIDATING_ENTRY_CLASS(klass) \
20         (G_TYPE_CHECK_CLASS_CAST ((klass), \
21         EASYSETUP_TYPE_VALIDATING_ENTRY, EasysetupValidatingEntryClass))
22
23 #define EASYSETUP_IS_VALIDATING_ENTRY(obj) \
24         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
25         EASYSETUP_TYPE_VALIDATING_ENTRY))
26
27 #define EASYSETUP_IS_VALIDATING_ENTRY_CLASS(klass) \
28         (G_TYPE_CHECK_CLASS_TYPE ((klass), \
29         EASYSETUP_TYPE_VALIDATING_ENTRY))
30
31 #define EASYSETUP_VALIDATING_ENTRY_GET_CLASS(obj) \
32         (G_TYPE_INSTANCE_GET_CLASS ((obj), \
33         EASYSETUP_TYPE_VALIDATING_ENTRY, EasysetupValidatingEntryClass))
34
35 typedef struct {
36         GtkEntry parent;
37 } EasysetupValidatingEntry;
38
39 typedef struct {
40         GtkEntryClass parent_class;
41 } EasysetupValidatingEntryClass;
42
43 GType easysetup_validating_entry_get_type (void);
44
45 EasysetupValidatingEntry* easysetup_validating_entry_new (void);
46
47 void easysetup_validating_entry_set_unallowed_characters (EasysetupValidatingEntry *self, GList *list);
48 void easysetup_validating_entry_set_unallowed_characters_whitespace (EasysetupValidatingEntry *self);
49
50 G_END_DECLS
51
52 #endif /* _EASYSETUP_VALIDATING_ENTRY */