Initial community commit
This commit is contained in:
parent
537bcbc862
commit
fc06254474
16440 changed files with 4239995 additions and 2 deletions
42
Src/Plugins/Library/ml_wire/RSSCOM.h
Normal file
42
Src/Plugins/Library/ml_wire/RSSCOM.h
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue