-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainmenu.h
54 lines (38 loc) · 1.08 KB
/
mainmenu.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#ifndef MAINMENU_H
#define MAINMENU_H
#include <QWidget>
#include <QString>
#include "qtablewidget.h"
#include "usermanager.h"
namespace Ui {
class MainMenu;
}
class MainMenu : public QWidget {
Q_OBJECT
public:
explicit MainMenu(QWidget *parent = nullptr);
~MainMenu();
void setUserEmail(const QString& email,UserManager* manager);
void setUserManager(UserManager* manager);
signals:
void logoutRequested();
// private slots:
// void on_logoutButton_clicked();
// private slots:
// void on_compose_userEmail_linkHovered(const QString &link);
private slots:
void on_pushButton_compose_sendMail_clicked();
void refreshInbox(UserManager* manager);
void onInboxItemDoubleClicked(QTableWidgetItem* item);
void refreshSentMail(UserManager* manager);
void onSentMailItemDoubleClicked(QTableWidgetItem* item);
void on_logout_clicked();
private:
Ui::MainMenu *ui;
QString userEmail;
UserManager* userManager;
void clearComposeFields();
void showEmailDialog(const Email& email);
void showSentEmailDialog(const Email& email);
};
#endif // MAINMENU_H