kexi

kexidbparser.h

00001 /***************************************************************************
00002  * kexidbparser.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_KEXIDBPARSER_H
00021 #define KROSS_KEXIDB_KEXIDBPARSER_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/parser/parser.h>
00031 
00032 namespace Kross { namespace KexiDB {
00033 
00034     // Forward declaration.
00035     class KexiDBConnection;
00036 
00037     class KexiDBParser : public Kross::Api::Class<KexiDBParser>
00038     {
00039         public:
00040 
00044             KexiDBParser(KexiDBConnection* connection, ::KexiDB::Parser* parser);
00045 
00049             virtual ~KexiDBParser();
00050 
00052             virtual const QString getClassName() const;
00053 
00054         private:
00055             KexiDBConnection* m_connection;
00056             ::KexiDB::Parser* m_parser;
00057 
00060             Kross::Api::Object::Ptr parse(Kross::Api::List::Ptr);
00062             Kross::Api::Object::Ptr clear(Kross::Api::List::Ptr);
00064             Kross::Api::Object::Ptr operation(Kross::Api::List::Ptr);
00065 
00067             Kross::Api::Object::Ptr table(Kross::Api::List::Ptr);
00069             Kross::Api::Object::Ptr query(Kross::Api::List::Ptr);
00071             Kross::Api::Object::Ptr connection(Kross::Api::List::Ptr);
00073             Kross::Api::Object::Ptr statement(Kross::Api::List::Ptr);
00074 
00076             Kross::Api::Object::Ptr errorType(Kross::Api::List::Ptr);
00078             Kross::Api::Object::Ptr errorMsg(Kross::Api::List::Ptr);
00080             Kross::Api::Object::Ptr errorAt(Kross::Api::List::Ptr);
00081     };
00082 
00083 }}
00084 
00085 #endif
00086 
KDE Home | KDE Accessibility Home | Description of Access Keys