aboutsummaryrefslogtreecommitdiff
path: root/Src/Winamp/FeedBase.h
diff options
context:
space:
mode:
authorJef <jef@targetspot.com>2024-09-24 08:54:57 -0400
committerJef <jef@targetspot.com>2024-09-24 08:54:57 -0400
commit20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (patch)
tree12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/Winamp/FeedBase.h
parent537bcbc86291b32fc04ae4133ce4d7cac8ebe9a7 (diff)
downloadwinamp-20d28e80a5c861a9d5f449ea911ab75b4f37ad0d.tar.gz
Initial community commit
Diffstat (limited to 'Src/Winamp/FeedBase.h')
-rw-r--r--Src/Winamp/FeedBase.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/Src/Winamp/FeedBase.h b/Src/Winamp/FeedBase.h
new file mode 100644
index 00000000..6007a008
--- /dev/null
+++ b/Src/Winamp/FeedBase.h
@@ -0,0 +1,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 \ No newline at end of file