emailQt/EmailClient.hpp

44 lines
892 B
C++
Raw Normal View History

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