aboutsummaryrefslogtreecommitdiff
path: root/Src/Wasabi/api/skin/feeds/textfeedcb.h
blob: da8d804a924d54516e1adbab44ccc9413143d2ed (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#error this file is going away
#if 0
#ifndef __TEXTFEEDCB_H
#define __TEXTFEEDCB_H

#include "dispatch.h"
#include "../common/common.h"

class TextFeedCallback : public Dispatchable {
  public:

    void textfeed_onReceiveText(const wchar_t *text);

  enum {
    TEXTFEEDCB_ONRECEIVETEXT = 10,
  };
};

inline void TextFeedCallback::textfeed_onReceiveText(const wchar_t *text) {
  _voidcall(TEXTFEEDCB_ONRECEIVETEXT, text);
}

class TextFeedCallbackI : public TextFeedCallback {
  public:
    TextFeedCallbackI() {}
    virtual ~TextFeedCallbackI() {}

    virtual void textfeed_onReceiveText(const wchar_t *text)=0;

  protected:
    RECVS_DISPATCH;
};
#endif
#endif