1 /* 2 * Copyright (C) 2000 Reinhard Müller <reinhard@src.gnome.org> 3 * Copyright (C) 2000 - 2002 Rodrigo Moya <rodrigo@gnome-db.org> 4 * Copyright (C) 2001 - 2002 Carlos Perelló Marín <carlos@gnome-db.org> 5 * Copyright (C) 2001 - 2011 Vivien Malerba <malerba@gnome-db.org> 6 * Copyright (C) 2002 Gonzalo Paniagua Javier <gonzalo@src.gnome.org> 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 10 * License as published by the Free Software Foundation; either 11 * version 2 of the License, or (at your option) any later version. 12 * 13 * This library is distributed in the hope that it will be useful, 14 * but 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 20 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, 21 * Boston, MA 02110-1301, USA. 22 */ 23 24 #ifndef __GDA_SQLITE_RECORDSET_H__ 25 #define __GDA_SQLITE_RECORDSET_H__ 26 27 #include <libgda/gda-value.h> 28 #include <libgda/gda-connection.h> 29 #include <libgda/providers-support/gda-data-select-priv.h> 30 #include "gda-sqlite-pstmt.h" 31 32 G_BEGIN_DECLS 33 34 #define GDA_TYPE_SQLITE_RECORDSET (_gda_sqlite_recordset_get_type()) 35 #define GDA_SQLITE_RECORDSET(obj) (G_TYPE_CHECK_INSTANCE_CAST (obj, GDA_TYPE_SQLITE_RECORDSET, GdaSqliteRecordset)) 36 #define GDA_SQLITE_RECORDSET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST (klass, GDA_TYPE_SQLITE_RECORDSET, GdaSqliteRecordsetClass)) 37 #define GDA_IS_SQLITE_RECORDSET(obj) (G_TYPE_CHECK_INSTANCE_TYPE (obj, GDA_TYPE_SQLITE_RECORDSET)) 38 #define GDA_IS_SQLITE_RECORDSET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDA_TYPE_SQLITE_RECORDSET)) 39 40 typedef struct _GdaSqliteRecordset GdaSqliteRecordset; 41 typedef struct _GdaSqliteRecordsetClass GdaSqliteRecordsetClass; 42 typedef struct _GdaSqliteRecordsetPrivate GdaSqliteRecordsetPrivate; 43 44 struct _GdaSqliteRecordset { 45 GdaDataSelect model; 46 GdaSqliteRecordsetPrivate *priv; 47 }; 48 49 struct _GdaSqliteRecordsetClass { 50 GdaDataSelectClass parent_class; 51 }; 52 53 GType _gda_sqlite_recordset_get_type (void) G_GNUC_CONST; 54 GdaDataModel *_gda_sqlite_recordset_new (GdaConnection *cnc, GdaSqlitePStmt *ps, GdaSet *exec_params, 55 GdaDataModelAccessFlags flags, GType *col_types, 56 gboolean force_empty); 57 58 G_END_DECLS 59 60 #endif 61