1 #ifndef DLGEDITCONNECTION_H
2 #define DLGEDITCONNECTION_H
4 #include <qfexception.h>
5 #include "servertreeitem.h"
7 #include "ui_dlgeditconnection.h"
10 class XmlConfigElement;
13 class DlgEditConnection
: public QDialog
, private Ui::DlgEditConnection
17 enum OptionIndex
{OptionIndexMySql
= 0, OptionIndexSqlite
};
19 void on_btOk_clicked();
20 void on_btCancel_clicked() {reject();}
21 void on_cbxDriver_currentIndexChanged(const QString
&s
);
22 void on_btFindDatabaseFile_clicked();
26 static QStringList mysqlCodecs
;
27 //QFXmlTreeModel* model();
28 Connection
*currConnection
;
30 DlgEditConnection(QWidget
*parent
= 0);
31 void setContent(Connection
& connection
) throw(QFException
);
34 #endif // DLGEDITCONNECTION_H