Remove HILDON_ENABLE_UNSTABLE_API.
[hildon] / src / hildon-find-toolbar.h
1 /*
2  * This file is a part of hildon
3  *
4  * Copyright (C) 2005, 2006 Nokia Corporation, all rights reserved.
5  *
6  * Contact: Michael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
7  *
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.
12  *
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.
17  *
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
21  * 02110-1301 USA
22  *
23  */
24
25 #ifndef                                         __HILDON_FIND_TOOLBAR_H__
26 #define                                         __HILDON_FIND_TOOLBAR_H__
27
28 #include                                        <gtk/gtktoolbar.h>
29 #include                                        <gtk/gtkliststore.h>
30
31 G_BEGIN_DECLS
32
33 #define                                         HILDON_TYPE_FIND_TOOLBAR (hildon_find_toolbar_get_type())
34
35 #define                                         HILDON_FIND_TOOLBAR(object) \
36                                                 (G_TYPE_CHECK_INSTANCE_CAST((object), \
37                                                 HILDON_TYPE_FIND_TOOLBAR, \
38                                                 HildonFindToolbar))
39
40 #define                                         HILDON_FIND_TOOLBAR_CLASS(klass) \
41                                                 (G_TYPE_CHECK_CLASS_CAST((klass), HILDON_TYPE_FIND_TOOLBAR, \
42                                                 HildonFindToolbarClass))
43
44 #define                                         HILDON_IS_FIND_TOOLBAR(object) \
45                                                 (G_TYPE_CHECK_INSTANCE_TYPE((object), \
46                                                 HILDON_TYPE_FIND_TOOLBAR))
47
48 #define                                         HILDON_IS_FIND_TOOLBAR_CLASS(klass) \
49                                                 (G_TYPE_CHECK_CLASS_CAST((klass), \
50                                                 HILDON_TYPE_FIND_TOOLBAR))
51
52 #define                                         HILDON_FIND_TOOLBAR_GET_CLASS(object) \
53                                                 (G_TYPE_INSTANCE_GET_CLASS((object), \
54                                                 HILDON_TYPE_FIND_TOOLBAR, \
55                                                 HildonFindToolbarClass))
56
57 typedef struct                                  _HildonFindToolbar HildonFindToolbar;
58
59 typedef struct                                  _HildonFindToolbarClass HildonFindToolbarClass;
60
61 struct _HildonFindToolbar
62 {
63   GtkToolbar parent;
64 };
65
66 struct _HildonFindToolbarClass
67 {
68   GtkToolbarClass parent_class;
69
70   void (*search) (HildonFindToolbar *toolbar);
71   void (*close) (HildonFindToolbar *toolbar);
72   void (*invalid_input) (HildonFindToolbar *toolbar);
73   gboolean (*history_append) (HildonFindToolbar *tooblar);
74 };
75
76 GType G_GNUC_CONST
77 hildon_find_toolbar_get_type                    (void);
78
79 GtkWidget*      
80 hildon_find_toolbar_new                         (const gchar *label);
81
82 GtkWidget*      
83 hildon_find_toolbar_new_with_model              (const gchar *label,
84                                                  GtkListStore* model,
85                                                  gint column);
86
87 void 
88 hildon_find_toolbar_highlight_entry             (HildonFindToolbar *ftb,
89                                                  gboolean get_focus);
90
91 void
92 hildon_find_toolbar_set_active                  (HildonFindToolbar *toolbar,
93                                                  gint index);
94
95 gint
96 hildon_find_toolbar_get_active                  (HildonFindToolbar *toolbar);
97
98 void
99 hildon_find_toolbar_set_active_iter             (HildonFindToolbar *toolbar, 
100                                                  GtkTreeIter *iter);
101
102 gboolean
103 hildon_find_toolbar_get_active_iter             (HildonFindToolbar *toolbar, 
104                                                  GtkTreeIter *iter);
105
106 gint32
107 hildon_find_toolbar_get_last_index              (HildonFindToolbar *toolbar);
108
109 G_END_DECLS
110
111 #endif                                          /* __HILDON_FIND_TOOLBAR_H__ */
112