summaryrefslogtreecommitdiff
path: root/libsql/osqltable.cpp
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/osqltable.cpp
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/osqltable.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--libsql/osqltable.cpp46
1 files changed, 46 insertions, 0 deletions
diff --git a/libsql/osqltable.cpp b/libsql/osqltable.cpp
new file mode 100644
index 0000000..cde40f4
--- a/dev/null
+++ b/libsql/osqltable.cpp
@@ -0,0 +1,46 @@
+#include "osqltable.h"
+
+OSQLTableItem::OSQLTableItem() {}
+OSQLTableItem::OSQLTableItem( enum Type type,
+ const QString& field,
+ const QVariant& var)
+ : m_type( type ), m_field( field ), m_var( var )
+{
+
+}
+OSQLTableItem::~OSQLTableItem() {}
+OSQLTableItem::OSQLTableItem( const OSQLTableItem& item) {
+ *this = item;
+}
+OSQLTableItem &OSQLTableItem::operator=(const OSQLTableItem& other) {
+ m_var = other.m_var;
+ m_field = other.m_field;
+ m_type = other.m_type;
+ return *this;
+}
+QString OSQLTableItem::fieldName()const{
+ return m_field;
+}
+OSQLTableItem::Type OSQLTableItem::type()const {
+ return m_type;
+}
+QVariant OSQLTableItem::more()const {
+ return m_var;
+}
+
+OSQLTable::OSQLTable( const QString& tableName )
+ : m_table( tableName )
+{
+
+}
+OSQLTable::~OSQLTable() {
+}
+void OSQLTable::setColumns( const OSQLTableItem::ValueList& list) {
+ m_list = list;
+}
+OSQLTableItem::ValueList OSQLTable::columns()const {
+ return m_list;
+}
+QString OSQLTable::tableName()const {
+ return m_table;
+}