TestPushServer.h 563 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #ifndef _TestPushServer_H_
  2. #define _TestPushServer_H_
  3. #include <iostream>
  4. #include "servant/Application.h"
  5. #include "TestPushThread.h"
  6. using namespace tars;
  7. /**
  8. *
  9. **/
  10. class TestPushServer : public Application
  11. {
  12. public:
  13. /**
  14. *
  15. **/
  16. virtual ~TestPushServer() {};
  17. /**
  18. *
  19. **/
  20. virtual void initialize();
  21. /**
  22. *
  23. **/
  24. virtual void destroyApp();
  25. private:
  26. //用于push消息的线程
  27. PushInfoThread pushThread;
  28. };
  29. extern TestPushServer g_app;
  30. ////////////////////////////////////////////
  31. #endif