Auto-completion GtkTreeView prototype shows url, topic and relvance columns now
[ephy-history.git] / ephy-completion-model.h
blobfff29ca4930df6a7e5ead93be3315712ed27df45
1 /*
2 * Copyright © 2003 Marco Pesenti Gritti <marco@gnome.org>
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 * $Id: ephy-completion-model.h 7020 2007-05-01 17:13:10Z xan $
21 #ifndef EPHY_COMPLETION_MODEL_H
22 #define EPHY_COMPLETION_MODEL_H
24 #include <gtk/gtktreemodel.h>
25 #include "ephy-history.h"
27 G_BEGIN_DECLS
28 #define EPHY_TYPE_COMPLETION_MODEL (ephy_completion_model_get_type ())
29 #define EPHY_COMPLETION_MODEL(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), EPHY_TYPE_COMPLETION_MODEL, EphyCompletionModel))
30 #define EPHY_COMPLETION_MODEL_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), EPHY_TYPE_COMPLETION_MODEL, EphyCompletionModelClass))
31 #define EPHY_IS_COMPLETION_MODEL(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), EPHY_TYPE_COMPLETION_MODEL))
32 #define EPHY_IS_COMPLETION_MODEL_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), EPHY_TYPE_COMPLETION_MODEL))
33 #define EPHY_COMPLETION_MODEL_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), EPHY_TYPE_COMPLETION_MODEL, EphyCompletionModelClass))
34 typedef struct _EphyCompletionModelPrivate EphyCompletionModelPrivate;
36 typedef enum
38 EPHY_COMPLETION_TEXT_COL,
39 EPHY_COMPLETION_ACTION_COL,
40 EPHY_COMPLETION_KEYWORDS_COL,
41 EPHY_COMPLETION_RELEVANCE_COL,
42 EPHY_COMPLETION_EXTRA_COL,
43 EPHY_COMPLETION_FAVICON_COL,
44 EPHY_COMPLETION_URL_COL,
45 N_COL
46 } EphyCompletionColumn;
48 typedef struct
50 GObject parent;
52 /*< private > */
53 EphyCompletionModelPrivate *priv;
54 } EphyCompletionModel;
56 typedef struct
58 GObjectClass parent;
59 } EphyCompletionModelClass;
61 GType ephy_completion_model_get_type (void);
63 EphyCompletionModel *ephy_completion_model_new (EphyHistory * eh);
65 G_END_DECLS
66 #endif /* EPHY_COMPLETION_MODEL_H */