00001 /*************************************************************************** 00002 *Copyright (C) 2004 by Tomeu Borrás Riera * 00003 * * 00004 * This program is free software; you can redistribute it and/or modify * 00005 * it under the terms of the GNU General Public License as published by * 00006 * the Free Software Foundation; either version 2 of the License, or * 00007 * (at your option) any later version. * 00008 * * 00009 * This program is distributed in the hope that it will be useful, * 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00012 * GNU General Public License for more details. * 00013 * * 00014 * You should have received a copy of the GNU General Public License * 00015 * along with this program; if not, write to the * 00016 * Free Software Foundation, Inc., * 00017 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * 00018 ***************************************************************************/ 00024 #ifndef importainteligente_H 00025 #define importainteligente_H 00026 00027 #include <qxml.h> 00028 #include <qptrstack.h> 00029 #include <qmap.h> 00030 00031 class QString; 00032 class empresa; 00033 class postgresiface2; 00034 00041 class importainteligente: public QXmlDefaultHandler { 00042 private: 00044 QString tag; 00046 QString data; 00048 QMap<QString, QString> tvalores; 00050 postgresiface2 *conexionbase; 00052 empresa *empresaactual; 00053 public: 00055 importainteligente( empresa * ); 00057 bool startElement( const QString&, const QString&, const QString& , const QXmlAttributes& ); 00059 bool endElement( const QString&, const QString&, const QString& ); 00061 bool characters (const QString &); 00062 }; 00063 00064 00065 #endif