summaryrefslogtreecommitdiff
path: root/libopie2/opiedb/osqldriver.h
authorzecke <zecke>2004-03-13 19:51:45 (UTC)
committer zecke <zecke>2004-03-13 19:51:45 (UTC)
commit6d08277737e22b7a1527124623f3571969073ddf (patch) (side-by-side diff)
tree4129e674e21df767b31299e873dd44e33a308e1b /libopie2/opiedb/osqldriver.h
parent8e28911f7199f4450ac5eef09482069f9b9caea2 (diff)
downloadopie-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.h7
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,87 +1,94 @@
#ifndef OSQL_DRIVER_H
#define OSQL_DRIVER_H
#include <qobject.h>
#include <qstring.h>
#include "osqltable.h"
class QLibrary;
+
+namespace Opie {
+namespace DB {
+
class OSQLResult;
class OSQLQuery;
class OSQLError;
/**
* A OSQLDriver implements the communication with
* a database.
* After you queried and loaded a driver you can
* set some informations and finally try to open
* the database
*
*/
class OSQLDriver : public QObject{
Q_OBJECT
public:
enum Capabilities { RowID=0 };
/**
* OSQLDriver constructor. It takes the QLibrary
* as parent.
*
*/
OSQLDriver( QLibrary* lib=0 );
virtual ~OSQLDriver();
/**
* Id returns the identifier of the OSQLDriver
*/
virtual QString id()const = 0;
/**
* set the UserName to the database
*/
virtual void setUserName( const QString& ) = 0;
/**
* set the PassWord to the database
*/
virtual void setPassword( const QString& )= 0;
/**
* set the Url
*/
virtual void setUrl( const QString& ) = 0;
/**
* setOptions
*/
virtual void setOptions( const QStringList& ) = 0;
/**
* tries to open a connection to the database
*/
virtual bool open() = 0;
virtual bool close() = 0;
virtual OSQLError lastError() = 0;
/**
* Query the Database with a OSQLQuery
* OSQLResult holds the result
*/
virtual OSQLResult query( OSQLQuery* ) = 0;
/**
* Get a list of tables
*/
virtual OSQLTable::ValueList tables() const = 0l;
virtual bool sync();
private:
QLibrary* m_lib;
class OSQLDriverPrivate;
OSQLDriverPrivate *d;
};
+}
+}
+
#endif