sourceview: only cancel open operations when closing editor
[anjuta.git] / plugins / symbol-db / symbol-db-query-result.h
blobe78d7421e1199f28840e8c79fb7f375aaee7b788
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
2 /*
3 * symbol-db-query-result.h
4 * Copyright (C) Naba Kumar 2010 <naba@gnome.org>
5 *
6 * anjuta is free software: you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
11 * anjuta is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14 * See the GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License along
17 * with this program. If not, see <http://www.gnu.org/licenses/>.
20 #ifndef _SYMBOL_DB_QUERY_RESULT_H_
21 #define _SYMBOL_DB_QUERY_RESULT_H_
23 #include <glib.h>
24 #include <glib-object.h>
25 #include <libgda/gda-data-model.h>
27 G_BEGIN_DECLS
29 #define SYMBOL_DB_TYPE_QUERY_RESULT (sdb_query_result_get_type ())
30 #define SYMBOL_DB_QUERY_RESULT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SYMBOL_DB_TYPE_QUERY_RESULT, SymbolDBQueryResult))
31 #define SYMBOL_DB_QUERY_RESULT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SYMBOL_DB_TYPE_QUERY_RESULT, SymbolDBQueryResultClass))
32 #define SYMBOL_DB_IS_QUERY_RESULT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SYMBOL_DB_TYPE_QUERY_RESULT))
33 #define SYMBOL_DB_IS_QUERY_RESULT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SYMBOL_DB_TYPE_QUERY_RESULT))
34 #define SYMBOL_DB_QUERY_RESULT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SYMBOL_DB_TYPE_QUERY_RESULT, SymbolDBQueryResultClass))
35 #define SYMBOL_DB_QUERY_RESULT_ERROR (symbol_db_query_result_error_quark ())
37 typedef struct _SymbolDBQueryResultClass SymbolDBQueryResultClass;
38 typedef struct _SymbolDBQueryResult SymbolDBQueryResult;
39 typedef struct _SymbolDBQueryResultPriv SymbolDBQueryResultPriv;
41 typedef enum {
42 SYMBOL_DB_QUERY_RESULT_ERROR_INVALID_FIELD,
43 SYMBOL_DB_QUERY_RESULT_ERROR_FIELD_NOT_PRESENT
44 } SymbolDBQueryResultError;
46 struct _SymbolDBQueryResultClass
48 GObjectClass parent_class;
51 struct _SymbolDBQueryResult
53 GObject parent_instance;
54 SymbolDBQueryResultPriv *priv;
57 GQuark symbol_db_query_result_error_quark (void);
58 GType sdb_query_result_get_type (void) G_GNUC_CONST;
59 SymbolDBQueryResult* symbol_db_query_result_new (GdaDataModel *data_model,
60 IAnjutaSymbolField *fields_order,
61 const GHashTable *sym_type_conversion_hash,
62 const gchar *project_root_dir);
64 gboolean symbol_db_query_result_is_empty (SymbolDBQueryResult *result);
66 G_END_DECLS
68 #endif /* _SYMBOL_DB_QUERY_RESULT_H_ */