33 lines
600 B
C++
33 lines
600 B
C++
|
#pragma once
|
||
|
|
||
|
#include <QDialog>
|
||
|
#include <QIntValidator>
|
||
|
#include <QLabel>
|
||
|
#include <QLineEdit>
|
||
|
#include <QPushButton>
|
||
|
#include <QVBoxLayout>
|
||
|
|
||
|
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;
|
||
|
};
|