Back to index

lightning-sunbird  0.9+nobinonly
TestScriptHelper.h
Go to the documentation of this file.
00001 // TestScriptHelper.h : Declaration of the CTestScriptHelper
00002 
00003 #ifndef __TESTSCRIPTHELPER_H_
00004 #define __TESTSCRIPTHELPER_H_
00005 
00006 #include "resource.h"       // main symbols
00007 
00009 // CTestScriptHelper
00010 class ATL_NO_VTABLE CTestScriptHelper : 
00011        public CComObjectRootEx<CComSingleThreadModel>,
00012        public CComCoClass<CTestScriptHelper, &CLSID_TestScriptHelper>,
00013        public IDispatchImpl<DITestScriptHelper, &IID_DITestScriptHelper, &LIBID_CbrowseLib>
00014 {
00015 public:
00016        CTestScriptHelper()
00017        {
00018               m_pBrowserInfo = NULL;
00019        }
00020 
00021        BrowserInfo *m_pBrowserInfo;
00022 
00023 DECLARE_REGISTRY_RESOURCEID(IDR_TESTSCRIPTHELPER)
00024 
00025 DECLARE_PROTECT_FINAL_CONSTRUCT()
00026 
00027 BEGIN_COM_MAP(CTestScriptHelper)
00028        COM_INTERFACE_ENTRY(DITestScriptHelper)
00029        COM_INTERFACE_ENTRY(IDispatch)
00030 END_COM_MAP()
00031 
00032 // DITestScriptHelper
00033 public:
00034        STDMETHOD(get_TestCGI)(/*[out, retval]*/ BSTR *pVal);
00035        STDMETHOD(get_TestURL)(/*[out, retval]*/ BSTR *pVal);
00036        STDMETHOD(put_Result)(/*[in]*/ TestResult newVal);
00037        STDMETHOD(get_WebBrowser)(/*[out, retval]*/ LPDISPATCH *pVal);
00038        STDMETHOD(OutputString)(BSTR bstrMessage);
00039 };
00040 
00041 typedef CComObject<CTestScriptHelper> CTestScriptHelperInstance;
00042 
00043 #endif //__TESTSCRIPTHELPER_H_