summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiedb/osqlitedriver.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libopie2/opiedb/osqlitedriver.h b/libopie2/opiedb/osqlitedriver.h
index adec331..d5ab224 100644
--- a/libopie2/opiedb/osqlitedriver.h
+++ b/libopie2/opiedb/osqlitedriver.h
@@ -1,36 +1,39 @@
1#ifndef OSQL_LITE_DRIVER_H 1#ifndef OSQL_LITE_DRIVER_H
2#define OSQL_LITE_DRIVER_H 2#define OSQL_LITE_DRIVER_H
3 3
4#include <sqlite.h> 4#include <sqlite.h>
5#if defined (__GNUC__) && (__GNUC__ < 3)
6#include <sys/types.h>
7#endif
5#include <regex.h> 8#include <regex.h>
6 9
7#include "osqldriver.h" 10#include "osqldriver.h"
8#include "osqlerror.h" 11#include "osqlerror.h"
9#include "osqlresult.h" 12#include "osqlresult.h"
10 13
11namespace Opie { 14namespace Opie {
12namespace DB { 15namespace DB {
13namespace Internal { 16namespace Internal {
14 17
15struct sqregex { 18struct sqregex {
16 char *regex_raw; 19 char *regex_raw;
17 regex_t regex_c; 20 regex_t regex_c;
18}; 21};
19 22
20class OSQLiteDriver : public OSQLDriver { 23class OSQLiteDriver : public OSQLDriver {
21 Q_OBJECT 24 Q_OBJECT
22public: 25public:
23 OSQLiteDriver( QLibrary *lib = 0l ); 26 OSQLiteDriver( QLibrary *lib = 0l );
24 ~OSQLiteDriver(); 27 ~OSQLiteDriver();
25 QString id()const; 28 QString id()const;
26 void setUserName( const QString& ); 29 void setUserName( const QString& );
27 void setPassword( const QString& ); 30 void setPassword( const QString& );
28 void setUrl( const QString& url ); 31 void setUrl( const QString& url );
29 void setOptions( const QStringList& ); 32 void setOptions( const QStringList& );
30 bool open(); 33 bool open();
31 bool close(); 34 bool close();
32 OSQLError lastError(); 35 OSQLError lastError();
33 OSQLResult query( OSQLQuery* ); 36 OSQLResult query( OSQLQuery* );
34 OSQLTable::ValueList tables()const; 37 OSQLTable::ValueList tables()const;
35 38
36private: 39private: