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.

platformdepend.h 669 B

9 years ago
1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef PLATFORMDEPEND_H
  2. #define PLATFORMDEPEND_H
  3. #include <QString>
  4. class IPlatform
  5. {
  6. public:
  7. virtual ~IPlatform(){}
  8. virtual void showNotify(const QString& title, const QString& content) = 0;
  9. virtual void hideAllNotify() = 0;
  10. virtual void setBadgeNumber(int number) = 0;
  11. };
  12. class PlatformDepend : public IPlatform
  13. {
  14. private:
  15. PlatformDepend();
  16. ~PlatformDepend();
  17. public:
  18. static PlatformDepend& instance();
  19. public:
  20. void showNotify(const QString& title, const QString& content) override;
  21. void hideAllNotify() override;
  22. void setBadgeNumber(int number) override;
  23. private:
  24. IPlatform* mImpl;
  25. };
  26. #endif // PLATFORMDEPEND_H

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

Contributors (1)