summaryrefslogtreecommitdiff
path: root/libsql/osqlbackend.h
authorzecke <zecke>2002-08-27 20:17:50 (UTC)
committer zecke <zecke>2002-08-27 20:17:50 (UTC)
commit86352e32f449ecf00de254674b7dcac72bc34a14 (patch) (side-by-side diff)
treeb5803b69ca00dceea1e2a76a5eee390f0748f27e /libsql/osqlbackend.h
parent1398b50ffc193bc9ab69ebe198aeda847c39516e (diff)
downloadopie-86352e32f449ecf00de254674b7dcac72bc34a14.zip
opie-86352e32f449ecf00de254674b7dcac72bc34a14.tar.gz
opie-86352e32f449ecf00de254674b7dcac72bc34a14.tar.bz2
Initial check in of the light wrapper library
around normal SQL The first driver implementation is a SQLite version
Diffstat (limited to 'libsql/osqlbackend.h') (more/less context) (show whitespace changes)
-rw-r--r--libsql/osqlbackend.h75
1 files changed, 75 insertions, 0 deletions
diff --git a/libsql/osqlbackend.h b/libsql/osqlbackend.h
new file mode 100644
index 0000000..ad879a4
--- a/dev/null
+++ b/libsql/osqlbackend.h
@@ -0,0 +1,75 @@
+
+#ifndef OSQL_BACKEND_H
+#define OSQL_BACKEND_H
+
+#include <qcstring.h>
+#include <qstring.h>
+#include <qvaluelist.h>
+
+/**
+ * OSQLBackEnd represents an available backend
+ * to the Opie Database Service
+ * It's used to easily extend OSQL services by
+ * 3rd party plugins.
+ * It's used to show
+ */
+class OSQLBackEnd /*: public QShared */ {
+public:
+ typedef QValueList<OSQLBackEnd> ValueList;
+ /**
+ * A basic c'tor
+ * @param name the user visible name of the service
+ * @param vendor the vendor of the service
+ * @param license the license of the service
+ * @param library what is the name of lib if builtin it's builtin
+ */
+ OSQLBackEnd( const QString& name = QString::null,
+ const QString& vendor = QString::null,
+ const QString& license = QString::null,
+ const QCString& library = QCString() );
+ OSQLBackEnd( const OSQLBackEnd& );
+ OSQLBackEnd &operator=( const OSQLBackEnd& );
+ bool operator==(const OSQLBackEnd& );
+
+ ~OSQLBackEnd();
+
+ /** @return the name */
+ QString name()const;
+
+ /** @return the vendor */
+ QString vendor()const;
+
+ /** @return the license */
+ QString license()const;
+
+ /** @return the name of the library */
+ QCString library() const;
+
+ bool isDefault()const;
+ int preference()const;
+
+ /** @param name the name to set */
+ void setName( const QString& name );
+
+ /** @param vendor the vendor to set */
+ void setVendor( const QString& vendor );
+
+ /** @param license the license applied */
+ void setLicense( const QString& license );
+
+ /** @param the lib to set */
+ void setLibrary( const QCString& lib );
+
+ void setDefault( bool );
+ void setPreference( int );
+
+private:
+ QString m_name;
+ QString m_vendor;
+ QString m_license;
+ QCString m_lib;
+ bool m_default :1;
+ int m_pref;
+};
+
+#endif