summaryrefslogtreecommitdiff
path: root/libopie2/opiedb/osqltable.cpp
authormickeyl <mickeyl>2003-08-10 15:40:31 (UTC)
committer mickeyl <mickeyl>2003-08-10 15:40:31 (UTC)
commit616e919ff6aea6a30e18edb37128c229e806beae (patch) (unidiff)
tree31e36f7d631b3dc55460aefd05bc6a455e73ace1 /libopie2/opiedb/osqltable.cpp
parentdfcbe21d8b263c13283e226bd16596c2d7c2f9a3 (diff)
downloadopie-616e919ff6aea6a30e18edb37128c229e806beae.zip
opie-616e919ff6aea6a30e18edb37128c229e806beae.tar.gz
opie-616e919ff6aea6a30e18edb37128c229e806beae.tar.bz2
merge zeckes libsql into libopie2
Diffstat (limited to 'libopie2/opiedb/osqltable.cpp') (more/less context) (show whitespace changes)
-rw-r--r--libopie2/opiedb/osqltable.cpp46
1 files changed, 46 insertions, 0 deletions
diff --git a/libopie2/opiedb/osqltable.cpp b/libopie2/opiedb/osqltable.cpp
new file mode 100644
index 0000000..cde40f4
--- a/dev/null
+++ b/libopie2/opiedb/osqltable.cpp
@@ -0,0 +1,46 @@
1#include "osqltable.h"
2
3OSQLTableItem::OSQLTableItem() {}
4OSQLTableItem::OSQLTableItem( enum Type type,
5 const QString& field,
6 const QVariant& var)
7 : m_type( type ), m_field( field ), m_var( var )
8{
9
10}
11OSQLTableItem::~OSQLTableItem() {}
12OSQLTableItem::OSQLTableItem( const OSQLTableItem& item) {
13 *this = item;
14}
15OSQLTableItem &OSQLTableItem::operator=(const OSQLTableItem& other) {
16 m_var = other.m_var;
17 m_field = other.m_field;
18 m_type = other.m_type;
19 return *this;
20}
21QString OSQLTableItem::fieldName()const{
22 return m_field;
23}
24OSQLTableItem::Type OSQLTableItem::type()const {
25 return m_type;
26}
27QVariant OSQLTableItem::more()const {
28 return m_var;
29}
30
31OSQLTable::OSQLTable( const QString& tableName )
32 : m_table( tableName )
33{
34
35}
36OSQLTable::~OSQLTable() {
37}
38void OSQLTable::setColumns( const OSQLTableItem::ValueList& list) {
39 m_list = list;
40}
41OSQLTableItem::ValueList OSQLTable::columns()const {
42 return m_list;
43}
44QString OSQLTable::tableName()const {
45 return m_table;
46}