forked from compilelife/feiq
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfeiqwin.h
More file actions
41 lines (34 loc) · 810 Bytes
/
feiqwin.h
File metadata and controls
41 lines (34 loc) · 810 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef FEIQWIN_H
#define FEIQWIN_H
#include "recvtextedit.h"
#include "sendtextedit.h"
#include "qsettings.h"
#include "fellowlistwidget.h"
#include "feiqlib/feiqmodel.h"
#include "settings.h"
class MainWindow;
class IPlugin;
/**
* @brief The FeiqWin class
* 其实就是MainWindow的代言人,用来隔离插件和MainWindow,方便控制MainWindow对插件的可见性
*/
class FeiqWin
{
public:
FeiqWin();
public:
RecvTextEdit* recvTextEdit();
SendTextEdit* sendTextEdit();
FellowListWidget* fellowListWidget();
const FeiqModel* feiqModel();
Settings* settings();
private:
void init(MainWindow* mainWin);
void unInit();
void loadPlugins();
private:
friend class MainWindow;
MainWindow* mMainWin;
QList<IPlugin*> mPlugins;
};
#endif // FEIQWIN_H