00001
00002
00003
00004
00005
00006 #ifndef __FDMFLASHVIDEODOWNLOADS_H_
00007 #define __FDMFLASHVIDEODOWNLOADS_H_
00008
00009 #include "resource.h"
00010
00011 class ATL_NO_VTABLE CFDMFlashVideoDownloads :
00012 public CComObjectRootEx<CComSingleThreadModel>,
00013 public CComCoClass<CFDMFlashVideoDownloads, &CLSID_FDMFlashVideoDownloads>,
00014 public IDispatchImpl<IFDMFlashVideoDownloads, &IID_IFDMFlashVideoDownloads, &LIBID_FdmLib>
00015 {
00016 public:
00017 CFDMFlashVideoDownloads()
00018 {
00019 }
00020
00021 DECLARE_REGISTRY_RESOURCEID(IDR_FDMFLASHVIDEODOWNLOADS)
00022
00023 DECLARE_PROTECT_FINAL_CONSTRUCT()
00024
00025 BEGIN_COM_MAP(CFDMFlashVideoDownloads)
00026 COM_INTERFACE_ENTRY(IFDMFlashVideoDownloads)
00027 COM_INTERFACE_ENTRY(IDispatch)
00028 END_COM_MAP()
00029
00030 public:
00031 STDMETHOD(CreateFromUrl)( BSTR bstrUrl);
00032 STDMETHOD(ProcessHtml)( BSTR bstrHost, BSTR bstrHtml);
00033 STDMETHOD(ProcessIeDocument)( IDispatch *pDispatch);
00034 protected:
00035 static DWORD WINAPI _threadCreateDownload (LPVOID lp);
00036 void ProcessHtml (LPCSTR pszHost, LPCSTR pszHtml);
00037 };
00038
00039 #endif