-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUI.hpp
More file actions
27 lines (25 loc) · 714 Bytes
/
UI.hpp
File metadata and controls
27 lines (25 loc) · 714 Bytes
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
#ifndef UI_H
#define UI_H
#include "imap.hpp"
#include <final/final.h>
struct UI {
int argc;
char** argv;
UI(int argc, char** argv) : argc(argc), argv(argv) {}
std::map<std::string, finalcut::FLineEdit*> inputFields{};
finalcut::FApplication* app{};
finalcut::FDialog* initDialog{};
finalcut::FListView* mailListView{};
finalcut::FDialog* mailDialog{};
std::map<finalcut::FObject*, IMAP::Message*>* viewToMessageMap{};
finalcut::FButton* loginButton{};
finalcut::FStatusBar* statusBar{};
IMAP::Session* imapSession{};
void refreshMailList();
void loginClicked(finalcut::FWidget*);
void quitKeyActivated(finalcut::FWidget*);
void loginFieldActivated() {}
int exec();
~UI();
};
#endif /* UI_H */