blob: 62405cfec5639abe78728f25b5dd22f0a251e9fb (
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
35
|
#ifndef NULLSOFT_WASABI_TEXTFEEDENUM_H
#define NULLSOFT_WASABI_TEXTFEEDENUM_H
#include <bfc/string/StringW.h>
#include <api/skin/feeds/api_textfeed.h>
// see helper class TextFeed
#include <api/service/servicei.h>
template <class T>
class TextFeedCreatorSingle : public waServiceFactoryTSingle<svc_textFeed, T>
{
public:
svc_textFeed *getFeed()
{
return getSingleService();
}
};
#include <api/service/svc_enum.h>
class TextFeedEnum : public SvcEnumT<svc_textFeed>
{
public:
TextFeedEnum(const wchar_t *_feedid) : feedid(_feedid) {}
protected:
virtual int testService(svc_textFeed *svc)
{
return (svc->hasFeed(feedid));
}
private:
StringW feedid;
};
#endif
|