emailQt/ParametersProvider.hpp

33 lines
600 B
C++
Raw Normal View History

2024-03-08 12:10:58 -05:00
#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;
};