#ifndef ORBITHUB_PROFILE_DIALOG_H #define ORBITHUB_PROFILE_DIALOG_H #include "profile_repository.h" #include class QComboBox; class QLineEdit; class QSpinBox; class ProfileDialog : public QDialog { Q_OBJECT public: explicit ProfileDialog(QWidget* parent = nullptr); void setDialogTitle(const QString& title); void setProfile(const Profile& profile); Profile profile() const; protected: void accept() override; private: QLineEdit* m_nameInput; QLineEdit* m_hostInput; QSpinBox* m_portInput; QLineEdit* m_usernameInput; QComboBox* m_protocolInput; QComboBox* m_authModeInput; }; #endif