summaryrefslogtreecommitdiff
path: root/libopie2/opiedb/osqltable.cpp
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/osqltable.cpp
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/osqltable.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiedb/osqltable.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/libopie2/opiedb/osqltable.cpp b/libopie2/opiedb/osqltable.cpp
index cde40f4..117cf21 100644
--- a/libopie2/opiedb/osqltable.cpp
+++ b/libopie2/opiedb/osqltable.cpp
@@ -1,46 +1,48 @@
#include "osqltable.h"
+using namespace Opie::DB;
+
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;
}