44 lines
892 B
C++
Executable File
44 lines
892 B
C++
Executable File
#pragma once
|
|
|
|
#include <algorithm>
|
|
#include <iostream>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
#include <QListWidget>
|
|
#include <QList>
|
|
#include <QMainWindow>
|
|
#include <QString>
|
|
#include <QTextEdit>
|
|
#include <QVBoxLayout>
|
|
#include <QWidget>
|
|
|
|
#include "CurlHandler.hpp"
|
|
#include "Email.hpp"
|
|
#include "EmailDetails.hpp"
|
|
#include "ParametersProvider.hpp"
|
|
|
|
class EmailClient : public QMainWindow {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit EmailClient(QWidget *parent = nullptr);
|
|
~EmailClient() = default;
|
|
|
|
void start();
|
|
|
|
public slots:
|
|
void parametersDone();
|
|
void itemActivated(QListWidgetItem *item);
|
|
void updateList(size_t threadId, int uid);
|
|
|
|
private:
|
|
ParametersProvider provider;
|
|
CurlHandler handler;
|
|
QListWidget *response;
|
|
|
|
std::vector<std::string> *emailsString{};
|
|
QList<QString> emailTitles;
|
|
EmailDetails det;
|
|
};
|