kexi

kexidbfield.h

00001 /***************************************************************************
00002  * kexidbfield.h
00003  * This file is part of the KDE project
00004  * copyright (C)2004-2005 by Sebastian Sauer (mail@dipe.org)
00005  *
00006  * This program is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU Library General Public
00008  * License as published by the Free Software Foundation; either
00009  * version 2 of the License, or (at your option) any later version.
00010  * This program is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013  * Library General Public License for more details.
00014  * You should have received a copy of the GNU Library General Public License
00015  * along with this program; see the file COPYING.  If not, write to
00016  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017  * Boston, MA 02110-1301, USA.
00018  ***************************************************************************/
00019 
00020 #ifndef KROSS_KEXIDB_KEXIDBFIELD_H
00021 #define KROSS_KEXIDB_KEXIDBFIELD_H
00022 
00023 #include <qstring.h>
00024 
00025 #include <api/object.h>
00026 #include <api/list.h>
00027 #include <api/class.h>
00028 
00029 #include <kexidb/drivermanager.h>
00030 #include <kexidb/field.h>
00031 
00032 namespace Kross { namespace KexiDB {
00033 
00034     class KexiDBField : public Kross::Api::Class<KexiDBField>
00035     {
00036         public:
00037 
00044             KexiDBField(::KexiDB::Field* field);
00045 
00049             virtual ~KexiDBField();
00050 
00052             virtual const QString getClassName() const;
00053 
00054             ::KexiDB::Field* field() { return m_field; }
00055 
00056         private:
00057             ::KexiDB::Field* m_field;
00058 
00060             Kross::Api::Object::Ptr type(Kross::Api::List::Ptr);
00062             Kross::Api::Object::Ptr setType(Kross::Api::List::Ptr);
00063 
00065             Kross::Api::Object::Ptr variantType(Kross::Api::List::Ptr);
00067             Kross::Api::Object::Ptr setVariantType(Kross::Api::List::Ptr);
00068 
00073             Kross::Api::Object::Ptr subType(Kross::Api::List::Ptr);
00075             Kross::Api::Object::Ptr setSubType(Kross::Api::List::Ptr);
00076 
00079             Kross::Api::Object::Ptr typeGroup(Kross::Api::List::Ptr);
00080 
00082             Kross::Api::Object::Ptr isAutoInc(Kross::Api::List::Ptr);
00084             Kross::Api::Object::Ptr setAutoInc(Kross::Api::List::Ptr);
00085 
00087             Kross::Api::Object::Ptr isUniqueKey(Kross::Api::List::Ptr);
00090             Kross::Api::Object::Ptr setUniqueKey(Kross::Api::List::Ptr);
00091 
00093             Kross::Api::Object::Ptr isPrimaryKey(Kross::Api::List::Ptr);
00095             Kross::Api::Object::Ptr setPrimaryKey(Kross::Api::List::Ptr);
00096 
00098             Kross::Api::Object::Ptr isForeignKey(Kross::Api::List::Ptr);
00100             Kross::Api::Object::Ptr setForeignKey(Kross::Api::List::Ptr);
00101 
00103             Kross::Api::Object::Ptr isNotNull(Kross::Api::List::Ptr);
00105             Kross::Api::Object::Ptr setNotNull(Kross::Api::List::Ptr);
00106 
00108             Kross::Api::Object::Ptr isNotEmpty(Kross::Api::List::Ptr);
00110             Kross::Api::Object::Ptr setNotEmpty(Kross::Api::List::Ptr);
00111 
00113             Kross::Api::Object::Ptr isIndexed(Kross::Api::List::Ptr);
00115             Kross::Api::Object::Ptr setIndexed(Kross::Api::List::Ptr);
00116 
00118             Kross::Api::Object::Ptr isUnsigned(Kross::Api::List::Ptr);
00120             Kross::Api::Object::Ptr setUnsigned(Kross::Api::List::Ptr);
00121 
00123             Kross::Api::Object::Ptr name(Kross::Api::List::Ptr);
00125             Kross::Api::Object::Ptr setName(Kross::Api::List::Ptr);
00126 
00128             Kross::Api::Object::Ptr caption(Kross::Api::List::Ptr);
00130             Kross::Api::Object::Ptr setCaption(Kross::Api::List::Ptr);
00131 
00133             Kross::Api::Object::Ptr description(Kross::Api::List::Ptr);
00135             Kross::Api::Object::Ptr setDescription(Kross::Api::List::Ptr);
00136 
00138             Kross::Api::Object::Ptr length(Kross::Api::List::Ptr);
00141             Kross::Api::Object::Ptr setLength(Kross::Api::List::Ptr);
00142 
00145             Kross::Api::Object::Ptr precision(Kross::Api::List::Ptr);
00147             Kross::Api::Object::Ptr setPrecision(Kross::Api::List::Ptr);
00148 
00151             Kross::Api::Object::Ptr width(Kross::Api::List::Ptr);
00153             Kross::Api::Object::Ptr setWidth(Kross::Api::List::Ptr);
00154 
00156             Kross::Api::Object::Ptr defaultValue(Kross::Api::List::Ptr);
00158             Kross::Api::Object::Ptr setDefaultValue(Kross::Api::List::Ptr);
00159 
00160     };
00161 
00162 }}
00163 
00164 #endif
00165 
KDE Home | KDE Accessibility Home | Description of Access Keys