]> err.no Git - sope/blob - sope-gdl1/SQLite3/SQLiteChannel.h
fixed gcc 4.0 warnings
[sope] / sope-gdl1 / SQLite3 / SQLiteChannel.h
1 /* 
2    SQLiteChannel.h
3
4    Copyright (C) 2003-2005 Helge Hess
5
6    Author: Helge Hess (helge.hess@opengroupware.org)
7
8    This file is part of the SQLite Adaptor Library
9
10    This library is free software; you can redistribute it and/or
11    modify it under the terms of the GNU Library General Public
12    License as published by the Free Software Foundation; either
13    version 2 of the License, or (at your option) any later version.
14
15    This library is distributed in the hope that it will be useful,
16    but WITHOUT ANY WARRANTY; without even the implied warranty of
17    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18    Library General Public License for more details.
19
20    You should have received a copy of the GNU Library General Public
21    License along with this library; see the file COPYING.LIB.
22    If not, write to the Free Software Foundation,
23    59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24 */
25
26 #ifndef ___SQLite_Channel_H___
27 #define ___SQLite_Channel_H___
28
29 #include <GDLAccess/EOAdaptorChannel.h>
30
31 @class NSArray, NSString, NSMutableDictionary;
32
33 @interface SQLiteChannel : EOAdaptorChannel
34 {
35   // connection is valid after an openChannel call
36   void *_connection;
37   
38   // valid during -evaluateExpression:
39   void     *statement;
40   BOOL     hasPendingRow;
41   BOOL     isDone;
42   
43   void     *results;
44
45   // turns on/off channel debugging
46   BOOL isDebuggingEnabled;
47
48   NSMutableDictionary *_attributesForTableName;
49   NSMutableDictionary *_primaryKeysNamesForTableName;
50 }
51
52 - (void)setDebugEnabled:(BOOL)_flag;
53 - (BOOL)isDebugEnabled;
54
55 @end
56
57 @interface NSObject(Sybase10ChannelDelegate)
58
59 - (NSArray*)sqlite3Channel:(SQLiteChannel *)channel
60   willFetchAttributes:(NSArray *)attributes;
61
62 - (BOOL)sqlite3Channel:(SQLiteChannel *)channel
63   willReturnRow:(NSDictionary *)row;
64
65 @end
66
67 #endif /* ___SQLite_Channel_H___ */