You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

feiqwin.h 810 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #ifndef FEIQWIN_H
  2. #define FEIQWIN_H
  3. #include "recvtextedit.h"
  4. #include "sendtextedit.h"
  5. #include "qsettings.h"
  6. #include "fellowlistwidget.h"
  7. #include "feiqlib/feiqmodel.h"
  8. #include "settings.h"
  9. class MainWindow;
  10. class IPlugin;
  11. /**
  12. * @brief The FeiqWin class
  13. * 其实就是MainWindow的代言人,用来隔离插件和MainWindow,方便控制MainWindow对插件的可见性
  14. */
  15. class FeiqWin
  16. {
  17. public:
  18. FeiqWin();
  19. public:
  20. RecvTextEdit* recvTextEdit();
  21. SendTextEdit* sendTextEdit();
  22. FellowListWidget* fellowListWidget();
  23. const FeiqModel* feiqModel();
  24. Settings* settings();
  25. private:
  26. void init(MainWindow* mainWin);
  27. void unInit();
  28. void loadPlugins();
  29. private:
  30. friend class MainWindow;
  31. MainWindow* mMainWin;
  32. QList<IPlugin*> mPlugins;
  33. };
  34. #endif // FEIQWIN_H

mac下的“飞秋”大多数只是飞鸽传书协议,而且未发现令人满意的开源项目,所以基于c++与qt实现了基础的飞秋协议。

Contributors (1)