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