#pragma once #include #include #include #include #include #include #include #include #include #include #include #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 *emailsString{}; QList emailTitles; EmailDetails det; };