author | zecke <zecke> | 2004-03-13 19:51:45 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-03-13 19:51:45 (UTC) |
commit | 6d08277737e22b7a1527124623f3571969073ddf (patch) (unidiff) | |
tree | 4129e674e21df767b31299e873dd44e33a308e1b /libopie2/opiedb/osqldriver.h | |
parent | 8e28911f7199f4450ac5eef09482069f9b9caea2 (diff) | |
download | opie-6d08277737e22b7a1527124623f3571969073ddf.zip opie-6d08277737e22b7a1527124623f3571969073ddf.tar.gz opie-6d08277737e22b7a1527124623f3571969073ddf.tar.bz2 |
Move XML class to internal PIM
Add namespaces!!!
Opie::Core and Opie::Core::Private
Opie::Net and Opie::Net::Private
Opie::Ui and Opie::Ui::Private
Opie::MM and Opie::MM::Private
Opie::DB and Opie::DB::Private
PIM classes are not yet converted because we will do other work
on it as well
Diffstat (limited to 'libopie2/opiedb/osqldriver.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opiedb/osqldriver.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libopie2/opiedb/osqldriver.h b/libopie2/opiedb/osqldriver.h index 68d8ee6..492b8dd 100644 --- a/libopie2/opiedb/osqldriver.h +++ b/libopie2/opiedb/osqldriver.h | |||
@@ -1,33 +1,37 @@ | |||
1 | #ifndef OSQL_DRIVER_H | 1 | #ifndef OSQL_DRIVER_H |
2 | #define OSQL_DRIVER_H | 2 | #define OSQL_DRIVER_H |
3 | 3 | ||
4 | #include <qobject.h> | 4 | #include <qobject.h> |
5 | #include <qstring.h> | 5 | #include <qstring.h> |
6 | 6 | ||
7 | #include "osqltable.h" | 7 | #include "osqltable.h" |
8 | 8 | ||
9 | class QLibrary; | 9 | class QLibrary; |
10 | |||
11 | namespace Opie { | ||
12 | namespace DB { | ||
13 | |||
10 | class OSQLResult; | 14 | class OSQLResult; |
11 | class OSQLQuery; | 15 | class OSQLQuery; |
12 | class OSQLError; | 16 | class OSQLError; |
13 | 17 | ||
14 | /** | 18 | /** |
15 | * A OSQLDriver implements the communication with | 19 | * A OSQLDriver implements the communication with |
16 | * a database. | 20 | * a database. |
17 | * After you queried and loaded a driver you can | 21 | * After you queried and loaded a driver you can |
18 | * set some informations and finally try to open | 22 | * set some informations and finally try to open |
19 | * the database | 23 | * the database |
20 | * | 24 | * |
21 | */ | 25 | */ |
22 | class OSQLDriver : public QObject{ | 26 | class OSQLDriver : public QObject{ |
23 | Q_OBJECT | 27 | Q_OBJECT |
24 | public: | 28 | public: |
25 | enum Capabilities { RowID=0 }; | 29 | enum Capabilities { RowID=0 }; |
26 | /** | 30 | /** |
27 | * OSQLDriver constructor. It takes the QLibrary | 31 | * OSQLDriver constructor. It takes the QLibrary |
28 | * as parent. | 32 | * as parent. |
29 | * | 33 | * |
30 | */ | 34 | */ |
31 | OSQLDriver( QLibrary* lib=0 ); | 35 | OSQLDriver( QLibrary* lib=0 ); |
32 | 36 | ||
33 | virtual ~OSQLDriver(); | 37 | virtual ~OSQLDriver(); |
@@ -63,25 +67,28 @@ public: | |||
63 | virtual bool close() = 0; | 67 | virtual bool close() = 0; |
64 | 68 | ||
65 | virtual OSQLError lastError() = 0; | 69 | virtual OSQLError lastError() = 0; |
66 | 70 | ||
67 | /** | 71 | /** |
68 | * Query the Database with a OSQLQuery | 72 | * Query the Database with a OSQLQuery |
69 | * OSQLResult holds the result | 73 | * OSQLResult holds the result |
70 | */ | 74 | */ |
71 | virtual OSQLResult query( OSQLQuery* ) = 0; | 75 | virtual OSQLResult query( OSQLQuery* ) = 0; |
72 | 76 | ||
73 | /** | 77 | /** |
74 | * Get a list of tables | 78 | * Get a list of tables |
75 | */ | 79 | */ |
76 | virtual OSQLTable::ValueList tables() const = 0l; | 80 | virtual OSQLTable::ValueList tables() const = 0l; |
77 | virtual bool sync(); | 81 | virtual bool sync(); |
78 | 82 | ||
79 | 83 | ||
80 | private: | 84 | private: |
81 | QLibrary* m_lib; | 85 | QLibrary* m_lib; |
82 | class OSQLDriverPrivate; | 86 | class OSQLDriverPrivate; |
83 | OSQLDriverPrivate *d; | 87 | OSQLDriverPrivate *d; |
84 | 88 | ||
85 | }; | 89 | }; |
86 | 90 | ||
91 | } | ||
92 | } | ||
93 | |||
87 | #endif | 94 | #endif |