summaryrefslogtreecommitdiff
path: root/libopie2/opiedb/osqlitedriver.h
authormickeyl <mickeyl>2003-08-10 15:40:31 (UTC)
committer mickeyl <mickeyl>2003-08-10 15:40:31 (UTC)
commit616e919ff6aea6a30e18edb37128c229e806beae (patch) (unidiff)
tree31e36f7d631b3dc55460aefd05bc6a455e73ace1 /libopie2/opiedb/osqlitedriver.h
parentdfcbe21d8b263c13283e226bd16596c2d7c2f9a3 (diff)
downloadopie-616e919ff6aea6a30e18edb37128c229e806beae.zip
opie-616e919ff6aea6a30e18edb37128c229e806beae.tar.gz
opie-616e919ff6aea6a30e18edb37128c229e806beae.tar.bz2
merge zeckes libsql into libopie2
Diffstat (limited to 'libopie2/opiedb/osqlitedriver.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiedb/osqlitedriver.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/libopie2/opiedb/osqlitedriver.h b/libopie2/opiedb/osqlitedriver.h
new file mode 100644
index 0000000..6984539
--- a/dev/null
+++ b/libopie2/opiedb/osqlitedriver.h
@@ -0,0 +1,34 @@
1#ifndef OSQL_LITE_DRIVER_H
2#define OSQL_LITE_DRIVER_H
3
4#include <sqlite.h>
5
6#include "osqldriver.h"
7#include "osqlerror.h"
8#include "osqlresult.h"
9
10class OSQLiteDriver : public OSQLDriver {
11 Q_OBJECT
12public:
13 OSQLiteDriver( QLibrary *lib = 0l );
14 ~OSQLiteDriver();
15 QString id()const;
16 void setUserName( const QString& );
17 void setPassword( const QString& );
18 void setUrl( const QString& url );
19 void setOptions( const QStringList& );
20 bool open();
21 bool close();
22 OSQLError lastError();
23 OSQLResult query( OSQLQuery* );
24 OSQLTable::ValueList tables()const;
25private:
26 OSQLError m_lastE;
27 OSQLResult m_result;
28 OSQLResultItem m_items;
29 int handleCallBack( int, char**, char** );
30 static int call_back( void*, int, char**, char** );
31 QString m_url;
32 sqlite *m_sqlite;
33};
34#endif