#include <ConnectionDialog.h>
Signals | |
void | buildFolderTree (cool::IDatabasePtr dbPtr, const QString connectionString) |
Public Member Functions | |
ConnectionDialog (QWidget *parent=0, Qt::WindowFlags f=0) | |
~ConnectionDialog () | |
void | closeConnection (QString connectionString) |
bool | isConnected (QString connectionString="") |
Private Slots | |
void | slotConnect () |
void | slotRemoveHistoryEntry () |
void | slotRemoveAllHistory () |
void | slotPredefinedCS (bool enabled) |
void | slotPrepareDBType (int choice) |
void | slotPrepareDBType_2 (int choice) |
Private Member Functions | |
void | closeEvent (QCloseEvent *event) |
void | setConnections () |
QString | buildConnectionString () |
void | loadConnectionSettings (bool reload=false) |
void | saveConnectionSettings () |
Private Attributes | |
QHash< QString, cool::IDatabasePtr > | connectionHash |
QString | dbConnectionQString |
Definition at line 13 of file ConnectionDialog.h.
ConnectionDialog::ConnectionDialog | ( | QWidget * | parent = 0 , |
|
Qt::WindowFlags | f = 0 | |||
) |
Definition at line 12 of file ConnectionDialog.cpp.
References loadConnectionSettings(), setConnections(), and Ui_ConnectionDialog_BASE::setupUi().
ConnectionDialog::~ConnectionDialog | ( | ) |
Definition at line 22 of file ConnectionDialog.cpp.
void ConnectionDialog::closeConnection | ( | QString | connectionString | ) |
Definition at line 506 of file ConnectionDialog.cpp.
References connectionHash.
Referenced by MainWindow::slotConnectionDisconnect().
bool ConnectionDialog::isConnected | ( | QString | connectionString = "" |
) |
Definition at line 511 of file ConnectionDialog.cpp.
References connectionHash.
Referenced by MainWindow::slotConnectionDisconnect(), and MainWindow::slotCreateFolderTree().
void ConnectionDialog::closeEvent | ( | QCloseEvent * | event | ) | [private] |
Definition at line 37 of file ConnectionDialog.cpp.
void ConnectionDialog::setConnections | ( | ) | [private] |
Definition at line 27 of file ConnectionDialog.cpp.
References Ui_ConnectionDialog_BASE::comboBox_DBType, Ui_ConnectionDialog_BASE::comboBox_DBType_2, Ui_ConnectionDialog_BASE::pushButton_Connect, Ui_ConnectionDialog_BASE::pushButton_RemoveAllHistory, Ui_ConnectionDialog_BASE::pushButton_RemoveHistoryEntry, Ui_ConnectionDialog_BASE::radioButton_PredefinedConnections, slotConnect(), slotPredefinedCS(), slotPrepareDBType(), slotPrepareDBType_2(), slotRemoveAllHistory(), and slotRemoveHistoryEntry().
Referenced by ConnectionDialog().
QString ConnectionDialog::buildConnectionString | ( | ) | [private] |
Definition at line 42 of file ConnectionDialog.cpp.
References Ui_ConnectionDialog_BASE::checkBox_UseConnectionAlias, Ui_ConnectionDialog_BASE::comboBox_ConnectionAlias, Ui_ConnectionDialog_BASE::comboBox_ConnectionHistory, Ui_ConnectionDialog_BASE::comboBox_DBName, Ui_ConnectionDialog_BASE::comboBox_DBName_2, Ui_ConnectionDialog_BASE::comboBox_DBType, Ui_ConnectionDialog_BASE::comboBox_DBType_2, Ui_ConnectionDialog_BASE::comboBox_Login, Ui_ConnectionDialog_BASE::comboBox_Role, Ui_ConnectionDialog_BASE::comboBox_Schema, Ui_ConnectionDialog_BASE::comboBox_Schema_2, Ui_ConnectionDialog_BASE::comboBox_Server, Ui_ConnectionDialog_BASE::comboBox_Server_2, Ui_ConnectionDialog_BASE::lineEdit_Password, Ui_ConnectionDialog_BASE::stackedWidget_ConnectionBuilder, and Ui_ConnectionDialog_BASE::tabWidget_ConnectionBuilder.
Referenced by slotConnect().
void ConnectionDialog::loadConnectionSettings | ( | bool | reload = false |
) | [private] |
Definition at line 225 of file ConnectionDialog.cpp.
References Ui_ConnectionDialog_BASE::comboBox_ConnectionHistory, Ui_ConnectionDialog_BASE::comboBox_DBName, Ui_ConnectionDialog_BASE::comboBox_DBType, Ui_ConnectionDialog_BASE::comboBox_Login, Ui_ConnectionDialog_BASE::comboBox_Schema, Ui_ConnectionDialog_BASE::comboBox_Server, and Ui_ConnectionDialog_BASE::tabWidget_ConnectionBuilder.
Referenced by ConnectionDialog(), and slotConnect().
void ConnectionDialog::saveConnectionSettings | ( | ) | [private] |
Definition at line 322 of file ConnectionDialog.cpp.
References Ui_ConnectionDialog_BASE::comboBox_ConnectionHistory, Ui_ConnectionDialog_BASE::comboBox_DBName, Ui_ConnectionDialog_BASE::comboBox_DBType, Ui_ConnectionDialog_BASE::comboBox_Login, Ui_ConnectionDialog_BASE::comboBox_Schema, Ui_ConnectionDialog_BASE::comboBox_Server, connectionHash, dbConnectionQString, and Ui_ConnectionDialog_BASE::tabWidget_ConnectionBuilder.
Referenced by slotConnect().
void ConnectionDialog::buildFolderTree | ( | cool::IDatabasePtr | dbPtr, | |
const QString | connectionString | |||
) | [signal] |
Referenced by slotConnect().
void ConnectionDialog::slotConnect | ( | ) | [private, slot] |
Definition at line 172 of file ConnectionDialog.cpp.
References buildConnectionString(), buildFolderTree(), connectionHash, dbConnectionQString, loadConnectionSettings(), cool::openDatabase(), and saveConnectionSettings().
Referenced by setConnections().
void ConnectionDialog::slotRemoveHistoryEntry | ( | ) | [private, slot] |
Definition at line 215 of file ConnectionDialog.cpp.
References Ui_ConnectionDialog_BASE::comboBox_ConnectionHistory.
Referenced by setConnections().
void ConnectionDialog::slotRemoveAllHistory | ( | ) | [private, slot] |
Definition at line 220 of file ConnectionDialog.cpp.
References Ui_ConnectionDialog_BASE::comboBox_ConnectionHistory.
Referenced by setConnections().
void ConnectionDialog::slotPredefinedCS | ( | bool | enabled | ) | [private, slot] |
Definition at line 132 of file ConnectionDialog.cpp.
References Ui_ConnectionDialog_BASE::stackedWidget_ConnectionBuilder.
Referenced by setConnections().
void ConnectionDialog::slotPrepareDBType | ( | int | choice | ) | [private, slot] |
void ConnectionDialog::slotPrepareDBType_2 | ( | int | choice | ) | [private, slot] |
Definition at line 137 of file ConnectionDialog.cpp.
References Ui_ConnectionDialog_BASE::comboBox_Schema_2, Ui_ConnectionDialog_BASE::label_wildcard_1, and Ui_ConnectionDialog_BASE::label_wildcard_2.
Referenced by setConnections().
QHash< QString, cool::IDatabasePtr > ConnectionDialog::connectionHash [private] |
Definition at line 24 of file ConnectionDialog.h.
Referenced by closeConnection(), isConnected(), saveConnectionSettings(), and slotConnect().
QString ConnectionDialog::dbConnectionQString [private] |
Definition at line 25 of file ConnectionDialog.h.
Referenced by saveConnectionSettings(), and slotConnect().