diff options
| author | Jean-Francois Mauguit <jfmauguit@mac.com> | 2024-09-24 09:03:25 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-24 09:03:25 -0400 |
| commit | bab614c421ed7ae329d26bf028c4a3b1d2450f5a (patch) | |
| tree | 12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/Plugins/Library/ml_wire/RSSCOM.h | |
| parent | 4bde6044fddf053f31795b9eaccdd2a5a527d21f (diff) | |
| parent | 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (diff) | |
| download | winamp-bab614c421ed7ae329d26bf028c4a3b1d2450f5a.tar.gz | |
Merge pull request #5 from WinampDesktop/community
Merge to main
Diffstat (limited to 'Src/Plugins/Library/ml_wire/RSSCOM.h')
| -rw-r--r-- | Src/Plugins/Library/ml_wire/RSSCOM.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/Src/Plugins/Library/ml_wire/RSSCOM.h b/Src/Plugins/Library/ml_wire/RSSCOM.h new file mode 100644 index 00000000..39d0e58b --- /dev/null +++ b/Src/Plugins/Library/ml_wire/RSSCOM.h @@ -0,0 +1,42 @@ +#ifndef NULLSOFT_PODCAST_PLUGIN_RSS_COM_HEADER +#define NULLSOFT_PODCAST_PLUGIN_RSS_COM_HEADER + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#include <wtypes.h> +#include <atomic> + +#include "../nu/dispatchTable.h" + +class RssCOM : public IDispatch +{ +public: + typedef enum + { + DISPATCH_SUBSCRIBE = 0, + } DispatchCodes; + +protected: + RssCOM(); + ~RssCOM(); + +public: + static HRESULT CreateInstance(RssCOM **instance); + static HRESULT SubscribeUrl(BSTR url, VARIANT FAR *result); + static LPCWSTR GetName(); + + /* IUnknown*/ + STDMETHOD(QueryInterface)(REFIID riid, PVOID *ppvObject); + STDMETHOD_(ULONG, AddRef)(void); + STDMETHOD_(ULONG, Release)(void); + +protected: + DISPTABLE_INCLUDE(); + DISPHANDLER_REGISTER(OnSubscribe); + + std::atomic<std::size_t> _ref = 1; +}; + +#endif //NULLSOFT_PODCAST_PLUGIN_RSS_COM_HEADER
\ No newline at end of file |
