#pragma once #include #include #include #include #include #include class ParametersProvider : public QDialog { Q_OBJECT public: struct settings { std::string userS, passS, imapS; int port; }; explicit ParametersProvider(QWidget *parent = nullptr); ~ParametersProvider() = default; void start(); void setFocusInternal(); const settings &getSettings(); signals: void done(); private: settings sett; QLineEdit *userField, *passField, *imapField, *portField; };