Eneboo - Documentación para desarrolladores
|
00001 /*************************************************************************** 00002 FLConnectDBDialog.h 00003 ------------------- 00004 begin : Sun Jul 1 2001 00005 copyright : (C) 2001-2005 by InfoSiAL S.L. 00006 email : mail@infosial.com 00007 ***************************************************************************/ 00008 /*************************************************************************** 00009 * This program is free software; you can redistribute it and/or modify * 00010 * it under the terms of the GNU General Public License as published by * 00011 * the Free Software Foundation; version 2 of the License. * 00012 ***************************************************************************/ 00013 /*************************************************************************** 00014 Este programa es software libre. Puede redistribuirlo y/o modificarlo 00015 bajo los términos de la Licencia Pública General de GNU en su 00016 versión 2, publicada por la Free Software Foundation. 00017 ***************************************************************************/ 00018 00019 #ifndef FLSESSIONDB_H 00020 #define FLSESSIONDB_H 00021 00022 #include <qlineedit.h> 00023 #include <qcombobox.h> 00024 #include <qlistbox.h> 00025 #include <qimage.h> 00026 #include <qcheckbox.h> 00027 00028 #include "FLWidgetConnectDB.h" 00029 00030 class FLTableMetaData; 00031 00042 class FL_EXPORT FLConnectDBDialog: public FLWidgetConnectDB 00043 { 00044 00045 Q_OBJECT 00046 00047 public: 00048 00052 FLConnectDBDialog(bool disabled = false, QWidget *parent = 0, const char *name = 0, 00053 WFlags fl = 0, const QString &strConn = QString::null); 00054 00058 ~FLConnectDBDialog(); 00059 00063 bool error() const { 00064 return error_; 00065 } 00066 00067 protected: 00068 00072 void closeEvent(QCloseEvent *e); 00073 00074 void paintEvent(QPaintEvent *pe); 00075 00076 public slots: 00077 00081 void tryConnect(); 00082 00083 protected slots: 00084 00088 void cancel(); 00089 00093 void driverChanged(const QString &); 00094 00098 void changeDB(const QString &DB); 00099 00103 void addMark(); 00104 00108 void removeMark(); 00109 00113 void selectMark(const QString &); 00114 00119 void popupMarks(); 00120 00124 void setRememberPasswd(bool on); 00125 00129 void setOldApi(bool on); 00130 00131 private slots: 00132 00136 void tryConnectMark(const QString &); 00137 00138 private: 00139 00143 bool error_; 00144 00148 bool rememberPasswd_; 00149 00153 bool oldApi_; 00154 00155 QImage logo; 00156 }; 00157 00158 #endif