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 824 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. class MainWindow;
  9. class IPlugin;
  10. /**
  11. * @brief The FeiqWin class
  12. * 其实就是MainWindow的代言人,用来隔离插件和MainWindow,方便控制MainWindow对插件的可见性
  13. */
  14. class FeiqWin
  15. {
  16. public:
  17. FeiqWin();
  18. public:
  19. RecvTextEdit* recvTextEdit();
  20. SendTextEdit* sendTextEdit();
  21. FellowListWidget* fellowListWidget();
  22. const FeiqModel* feiqModel();
  23. QSettings* settings();
  24. public:
  25. int getUnreadCount();
  26. private:
  27. void init(MainWindow* mainWin);
  28. void unInit();
  29. void loadPlugins();
  30. private:
  31. friend class MainWindow;
  32. MainWindow* mMainWin;
  33. QList<IPlugin*> mPlugins;
  34. };
  35. #endif // FEIQWIN_H

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

Contributors (1)