#ifndef CONNECTIONCONFIGURATIONWIDGET_H #define CONNECTIONCONFIGURATIONWIDGET_H #include #include class ConnectionController; class ConnectionConfig; class QFormLayout; class QLabel; class QLineEdit; class QSpinBox; class QComboBox; class QDataWidgetMapper; class ConnectionConfigurationWidget : public QWidget { Q_OBJECT public: static void editExistingInWindow(ConnectionController *ctrl, const ConnectionConfig &cfg); explicit ConnectionConfigurationWidget(QWidget *parent = nullptr); void retranslateUi(); void setData(const ConnectionConfig &cfg); ConnectionConfig data() const; signals: private: QUuid m_uuid; QFormLayout *formLayout; QLabel *lblName; QLineEdit *edtName; QLabel *lblHost; QLineEdit *edtHost; QLabel *lblPort; QSpinBox *spinPort; QLabel *lblUser; QLineEdit *edtUser; QLabel *lblDbName; QLineEdit *edtDbname; QLabel *lblSsl; QComboBox *cmbbxSsl; QLabel *lblCert; QLineEdit *edtCert; QLabel *lblKey; QLineEdit *edtKey; QLabel *lblRootCert; QLineEdit *edtRootCert; QLabel *lblCrl; QLineEdit *edtCrl; public slots: }; #endif // CONNECTIONCONFIGURATIONWIDGET_H