blob: 6007a008f38e3d03fdbdb5f6eb884e7163a645ed (
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
|
#ifndef NULLSOFT_WINAMP_FEEDBASE_H
#define NULLSOFT_WINAMP_FEEDBASE_H
#include <api/dependency/api_dependent.h>
#include <api/skin/feeds/api_textfeed.h>
#include <vector>
#include <bfc/multipatch.h>
enum {DependentPatch = 10, TextFeedPatch = 20 };
class FeedBase
: public MultiPatch<DependentPatch, api_dependent>,
public MultiPatch<TextFeedPatch, svc_textFeed>
{
private:
void dependent_regViewer(api_dependentviewer *viewer, int add);
void *dependent_getInterface(const GUID *classguid);
virtual int hasFeed(const wchar_t *name)=0;
virtual const wchar_t *getFeedText(const wchar_t *name)=0;
virtual const wchar_t *getFeedDescription(const wchar_t *name)=0;
api_dependent *getDependencyPtr();
protected:
void CallViewers(const wchar_t *feedid, const wchar_t *text, size_t length);
protected:
std::vector<api_dependentviewer*> viewers;
protected:
RECVS_MULTIPATCH;
};
#endif
|