Diffstat (limited to 'libopie2/opiedb/osqlitedriver.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opiedb/osqlitedriver.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/libopie2/opiedb/osqlitedriver.h b/libopie2/opiedb/osqlitedriver.h index 33037b8..e38fd52 100644 --- a/libopie2/opiedb/osqlitedriver.h +++ b/libopie2/opiedb/osqlitedriver.h | |||
@@ -1,34 +1,29 @@ | |||
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> | 5 | #include <sys/types.h> |
7 | #endif | ||
8 | #ifdef Q_OS_MACX | ||
9 | #include <sys/types.h> | ||
10 | #endif | ||
11 | #include <regex.h> | 6 | #include <regex.h> |
12 | 7 | ||
13 | #include "osqldriver.h" | 8 | #include "osqldriver.h" |
14 | #include "osqlerror.h" | 9 | #include "osqlerror.h" |
15 | #include "osqlresult.h" | 10 | #include "osqlresult.h" |
16 | 11 | ||
17 | namespace Opie { | 12 | namespace Opie { |
18 | namespace DB { | 13 | namespace DB { |
19 | namespace Internal { | 14 | namespace Internal { |
20 | 15 | ||
21 | struct sqregex { | 16 | struct sqregex { |
22 | char *regex_raw; | 17 | char *regex_raw; |
23 | regex_t regex_c; | 18 | regex_t regex_c; |
24 | }; | 19 | }; |
25 | 20 | ||
26 | class OSQLiteDriver : public OSQLDriver { | 21 | class OSQLiteDriver : public OSQLDriver { |
27 | Q_OBJECT | 22 | Q_OBJECT |
28 | public: | 23 | public: |
29 | OSQLiteDriver( QLibrary *lib = 0l ); | 24 | OSQLiteDriver( QLibrary *lib = 0l ); |
30 | ~OSQLiteDriver(); | 25 | ~OSQLiteDriver(); |
31 | QString id()const; | 26 | QString id()const; |
32 | void setUserName( const QString& ); | 27 | void setUserName( const QString& ); |
33 | void setPassword( const QString& ); | 28 | void setPassword( const QString& ); |
34 | void setUrl( const QString& url ); | 29 | void setUrl( const QString& url ); |