Go to the documentation of this file.00001 #ifndef NEWCONNECTION_H
00002 #define NEWCONNECTION_H
00003
00004 #include <QDialog>
00005 #include <QtSql>
00006 #include "connection.h"
00007 namespace Ui {
00008 class NewConnection;
00009 }
00010
00011 class NewConnection : public QDialog
00012 {
00013 Q_OBJECT
00014 public:
00015 explicit NewConnection(QWidget *parent = 0);
00016 ~NewConnection();
00017 QSqlDatabase db;
00018 private:
00019 Ui::NewConnection *ui;
00020 signals:
00021 void connectionSelected(bool);
00022 void connectionChanged(bool);
00023 private slots:
00024 void on_txtPassword_textEdited(QString );
00025 void on_txtUserName_textEdited(QString );
00026 void on_txtServerName_textEdited(QString );
00027 void on_cboConnections_currentIndexChanged(QString );
00028 void on_cmdCancel_clicked();
00029 void on_cmdConnect_clicked();
00030 void newConnection();
00031 void saveConnection();
00032 void deleteConnection();
00033 void loadConnections();
00034 void renameConnection();
00035 bool checkConnectionName(QString checkName);
00036 };
00037
00038 #endif // NEWCONNECTION_H