summaryrefslogtreecommitdiff
path: root/libsql/osqldriver.h
authormickeyl <mickeyl>2003-08-10 15:42:26 (UTC)
committer mickeyl <mickeyl>2003-08-10 15:42:26 (UTC)
commit90dbd3e9e7139c1280e71f9c77ed4362b8d0f367 (patch) (side-by-side diff)
tree22f0947337ea9b21a1d8f56d04ce3292c9d6f19e /libsql/osqldriver.h
parent616e919ff6aea6a30e18edb37128c229e806beae (diff)
downloadopie-90dbd3e9e7139c1280e71f9c77ed4362b8d0f367.zip
opie-90dbd3e9e7139c1280e71f9c77ed4362b8d0f367.tar.gz
opie-90dbd3e9e7139c1280e71f9c77ed4362b8d0f367.tar.bz2
libsql is now a part of libopie2
Diffstat (limited to 'libsql/osqldriver.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libsql/osqldriver.h87
1 files changed, 0 insertions, 87 deletions
diff --git a/libsql/osqldriver.h b/libsql/osqldriver.h
deleted file mode 100644
index 68d8ee6..0000000
--- a/libsql/osqldriver.h
+++ b/dev/null
@@ -1,87 +0,0 @@
-#ifndef OSQL_DRIVER_H
-#define OSQL_DRIVER_H
-
-#include <qobject.h>
-#include <qstring.h>
-
-#include "osqltable.h"
-
-class QLibrary;
-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