00001 /*************************************************************************** 00002 abreempresaview.h - description 00003 ------------------- 00004 begin : Wed Nov 27 2002 00005 copyright : (C) 2002 by Tomeu Borrás Riera 00006 email : tborras@conetxia.com 00007 ***************************************************************************/ 00008 /*************************************************************************** 00009 * * 00010 * This program is free software; you can redistribute it and/or modify * 00011 * it under the terms of the GNU General Public License as published by * 00012 * the Free Software Foundation; either version 2 of the License, or * 00013 * (at your option) any later version. * 00014 * * 00015 ***************************************************************************/ 00020 #ifndef ABREEMPRESAVIEW_H 00021 #define ABREEMPRESAVIEW_H 00022 00023 #include <qstring.h> 00024 #include ".ui/abreempresadlg.h" 00025 00034 class abreempresaview : public abreempresadlg { 00035 Q_OBJECT 00036 00037 private: 00039 QString m_empresabd; 00041 QString m_nombreempresa; 00043 QString m_tipo; 00045 QString m_tipoempresa; 00047 QString user; 00049 QString password; 00050 00051 public: 00053 abreempresaview(QWidget *parent=0,QString tipo=0, const char *name=0, bool modal=true); 00054 ~abreempresaview(); 00056 QString nomDB() {return m_empresabd;}; 00058 QString nomEmpresa() {return m_nombreempresa;}; 00060 QString tipoEmpresa() {return m_tipoempresa;}; 00061 private: 00063 void guardaArchivo(); 00065 void cargaArchivo(); 00066 00067 private: 00069 void insertCompany(QString , QString , QString , QString); 00070 00071 private slots: 00073 virtual void closeEvent(QCloseEvent * e); 00075 virtual void s_botonCancelar() {exit(1);}; 00076 00077 public slots: 00079 virtual void accept(); 00081 virtual void s_reloadButton(); 00082 }; 00083 00084 #endif