1
0

textfeedcb.h 668 B

12345678910111213141516171819202122232425262728293031323334
  1. #error this file is going away
  2. #if 0
  3. #ifndef __TEXTFEEDCB_H
  4. #define __TEXTFEEDCB_H
  5. #include "dispatch.h"
  6. #include "../common/common.h"
  7. class TextFeedCallback : public Dispatchable {
  8. public:
  9. void textfeed_onReceiveText(const wchar_t *text);
  10. enum {
  11. TEXTFEEDCB_ONRECEIVETEXT = 10,
  12. };
  13. };
  14. inline void TextFeedCallback::textfeed_onReceiveText(const wchar_t *text) {
  15. _voidcall(TEXTFEEDCB_ONRECEIVETEXT, text);
  16. }
  17. class TextFeedCallbackI : public TextFeedCallback {
  18. public:
  19. TextFeedCallbackI() {}
  20. virtual ~TextFeedCallbackI() {}
  21. virtual void textfeed_onReceiveText(const wchar_t *text)=0;
  22. protected:
  23. RECVS_DISPATCH;
  24. };
  25. #endif
  26. #endif