kexi

kexidbfieldlist.h

00001 /***************************************************************************
00002  * kexidbfieldlist.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_KEXIDBFIELDLIST_H
00021 #define KROSS_KEXIDB_KEXIDBFIELDLIST_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/fieldlist.h>
00031 
00032 namespace Kross { namespace KexiDB {
00033 
00034     class KexiDBFieldList : public Kross::Api::Class<KexiDBFieldList>
00035     {
00036         public:
00037 
00041             KexiDBFieldList(::KexiDB::FieldList* fieldlist);
00042 
00046             virtual ~KexiDBFieldList();
00047 
00049             virtual const QString getClassName() const;
00050 
00051             ::KexiDB::FieldList* fieldlist() { return m_fieldlist; }
00052 
00053         private:
00054             ::KexiDB::FieldList* m_fieldlist;
00055 
00057             Kross::Api::Object::Ptr fieldCount(Kross::Api::List::Ptr);
00059             Kross::Api::Object::Ptr field(Kross::Api::List::Ptr);
00061             Kross::Api::Object::Ptr fields(Kross::Api::List::Ptr);
00064             Kross::Api::Object::Ptr hasField(Kross::Api::List::Ptr);
00066             Kross::Api::Object::Ptr names(Kross::Api::List::Ptr);
00067 
00069             Kross::Api::Object::Ptr addField(Kross::Api::List::Ptr);
00072             Kross::Api::Object::Ptr insertField(Kross::Api::List::Ptr);
00075             Kross::Api::Object::Ptr removeField(Kross::Api::List::Ptr);
00077             Kross::Api::Object::Ptr clear(Kross::Api::List::Ptr);
00079             Kross::Api::Object::Ptr setFields(Kross::Api::List::Ptr);
00080 
00082             Kross::Api::Object::Ptr subList(Kross::Api::List::Ptr);
00083     };
00084 
00085 }}
00086 
00087 #endif
00088 
KDE Home | KDE Accessibility Home | Description of Access Keys