diff options
author | Jef <jef@targetspot.com> | 2024-09-24 08:54:57 -0400 |
---|---|---|
committer | Jef <jef@targetspot.com> | 2024-09-24 08:54:57 -0400 |
commit | 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (patch) | |
tree | 12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/Wasabi/api/skin/feeds/ezfeed.h | |
parent | 537bcbc86291b32fc04ae4133ce4d7cac8ebe9a7 (diff) | |
download | winamp-20d28e80a5c861a9d5f449ea911ab75b4f37ad0d.tar.gz |
Initial community commit
Diffstat (limited to 'Src/Wasabi/api/skin/feeds/ezfeed.h')
-rw-r--r-- | Src/Wasabi/api/skin/feeds/ezfeed.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Src/Wasabi/api/skin/feeds/ezfeed.h b/Src/Wasabi/api/skin/feeds/ezfeed.h new file mode 100644 index 00000000..cc607d10 --- /dev/null +++ b/Src/Wasabi/api/skin/feeds/ezfeed.h @@ -0,0 +1,27 @@ +#ifndef _EZFEED_H +#define _EZFEED_H + +//#include <bfc/wasabi_std.h> +#include <api/service/waservicefactorybase.h> +#include <api/skin/feeds/textfeed.h> + +class EzFeed : public waServiceFactoryBase<svc_textFeed, EzFeed>, public TextFeed +{ +public: + EzFeed() : registered(0) { } + static const char *getServiceName() { return "EzTextFeed"; } + virtual svc_textFeed *newService() { return this; } + virtual int delService(svc_textFeed *service) { return TRUE; } + + virtual int svc_notify(int msg, int param1 = 0, int param2 = 0) + { + if (msg == SvcNotify::ONREGISTERED) registered = 1; + else if (msg == SvcNotify::ONDEREGISTERED) registered = 0; + return 1; + } + +private: + int registered; +}; + +#endif |