Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

osqltable.cpp

Go to the documentation of this file.
00001 #include "osqltable.h"
00002 
00003 using namespace Opie::DB;
00004 
00005 OSQLTableItem::OSQLTableItem() {}
00006 OSQLTableItem::OSQLTableItem( enum Type type,
00007                               const QString& field,
00008                               const QVariant& var)
00009     : m_type( type ), m_field( field ), m_var( var )
00010 {
00011 
00012 }
00013 OSQLTableItem::~OSQLTableItem() {}
00014 OSQLTableItem::OSQLTableItem( const OSQLTableItem& item) {
00015     *this = item;
00016 }
00017 OSQLTableItem &OSQLTableItem::operator=(const OSQLTableItem& other) {
00018     m_var = other.m_var;
00019     m_field = other.m_field;
00020     m_type = other.m_type;
00021     return *this;
00022 }
00023 QString OSQLTableItem::fieldName()const{
00024     return m_field;
00025 }
00026 OSQLTableItem::Type OSQLTableItem::type()const {
00027     return m_type;
00028 }
00029 QVariant OSQLTableItem::more()const {
00030     return m_var;
00031 }
00032 
00033 OSQLTable::OSQLTable( const QString& tableName )
00034     : m_table( tableName )
00035 {
00036 
00037 }
00038 OSQLTable::~OSQLTable() {
00039 }
00040 void OSQLTable::setColumns( const OSQLTableItem::ValueList& list) {
00041     m_list = list;
00042 }
00043 OSQLTableItem::ValueList OSQLTable::columns()const {
00044     return m_list;
00045 }
00046 QString OSQLTable::tableName()const {
00047     return m_table;
00048 }

Generated on Sat Nov 5 16:16:11 2005 for OPIE by  doxygen 1.4.2