00001
00002
00003
00004
00005
00006 #ifndef __WGURLLISTRECEIVER_H_
00007 #define __WGURLLISTRECEIVER_H_
00008
00009 #include "resource.h"
00010 #include <objsafe.h>
00011
00012 class ATL_NO_VTABLE CWgUrlListReceiver :
00013 public CComObjectRootEx<CComSingleThreadModel>,
00014 public CComCoClass<CWgUrlListReceiver, &CLSID_WGUrlListReceiver>,
00015 public IDispatchImpl<IWGUrlListReceiver, &IID_IWGUrlListReceiver, &LIBID_FdmLib>
00016 {
00017 public:
00018 CWgUrlListReceiver()
00019 {
00020 }
00021
00022 DECLARE_REGISTRY_RESOURCEID(IDR_WGURLLISTRECEIVER)
00023
00024 DECLARE_PROTECT_FINAL_CONSTRUCT()
00025
00026 BEGIN_COM_MAP(CWgUrlListReceiver)
00027 COM_INTERFACE_ENTRY(IWGUrlListReceiver)
00028 COM_INTERFACE_ENTRY(IDispatch)
00029 END_COM_MAP()
00030
00031 BEGIN_CATEGORY_MAP(CWGUrlReceiver)
00032 IMPLEMENTED_CATEGORY(CATID_SafeForScripting)
00033 IMPLEMENTED_CATEGORY(CATID_SafeForInitializing)
00034 END_CATEGORY_MAP()
00035
00036 public:
00037 STDMETHOD(get_Cookies)( BSTR *pVal);
00038 STDMETHOD(put_Cookies)( BSTR newVal);
00039 STDMETHOD(GetUrlListFromDocumentSelection)( IDispatch *pDispatch);
00040 STDMETHOD(AddUrlToList)();
00041 STDMETHOD(ShowAddUrlListDialog)();
00042 STDMETHOD(get_Referer)( BSTR *pVal);
00043 STDMETHOD(put_Referer)( BSTR newVal);
00044 STDMETHOD(get_Comment)( BSTR *pVal);
00045 STDMETHOD(put_Comment)( BSTR newVal);
00046 STDMETHOD(get_Url)( BSTR *pVal);
00047 STDMETHOD(put_Url)( BSTR newVal);
00048 protected:
00049 static DWORD WINAPI _threadAddUrlListDialog(LPVOID lp);
00050 fs::list <fsString> m_vUrls, m_vComments, m_vReferers, m_vCookies;
00051 CComBSTR m_bstrUrl, m_bstrComment, m_bstrReferer, m_bstrCookies;
00052 };
00053
00054 #endif