Back to index

lightning-sunbird  0.9+nobinonly
nsXPCDispTestWrappedJS.h
Go to the documentation of this file.
00001 // nsXPCDispTestWrappedJS.h: Definition of the nsXPCDispTestWrappedJS class
00002 //
00004 
00005 #if !defined(AFX_NSXPCDISPTESTWRAPPEDJS_H__DAAB3C99_1894_40C2_B12B_A360739F8977__INCLUDED_)
00006 #define AFX_NSXPCDISPTESTWRAPPEDJS_H__DAAB3C99_1894_40C2_B12B_A360739F8977__INCLUDED_
00007 
00008 #if _MSC_VER > 1000
00009 #pragma once
00010 #endif // _MSC_VER > 1000
00011 
00012 #include "resource.h"       // main symbols
00013 
00015 // nsXPCDispTestWrappedJS
00016 
00017 class nsXPCDispTestWrappedJS : 
00018        public IDispatchImpl<nsIXPCDispTestWrappedJS, &IID_nsIXPCDispTestWrappedJS, &LIBID_IDispatchTestLib>, 
00019        public ISupportErrorInfo,
00020        public CComObjectRoot,
00021        public CComCoClass<nsXPCDispTestWrappedJS,&CLSID_nsXPCDispTestWrappedJS>
00022 {
00023 public:
00024        nsXPCDispTestWrappedJS() {}
00025 BEGIN_CATEGORY_MAP(nsXPCDispTestWrappedJS)
00026     IMPLEMENTED_CATEGORY(CATID_SafeForScripting)
00027 END_CATEGORY_MAP()
00028 BEGIN_COM_MAP(nsXPCDispTestWrappedJS)
00029        COM_INTERFACE_ENTRY(IDispatch)
00030        COM_INTERFACE_ENTRY(nsIXPCDispTestWrappedJS)
00031        COM_INTERFACE_ENTRY(ISupportErrorInfo)
00032 END_COM_MAP()
00033 DECLARE_NOT_AGGREGATABLE(nsXPCDispTestWrappedJS) 
00034 
00035 DECLARE_REGISTRY_RESOURCEID(IDR_nsXPCDispTestWrappedJS)
00036 // ISupportsErrorInfo
00037        STDMETHOD(InterfaceSupportsErrorInfo)(REFIID riid);
00038 
00039 // nsIXPCDispTestWrappedJS
00040 public:
00046        STDMETHOD(TestParamTypes)(/*[in]*/ IDispatch * obj, 
00047                               /*[out]*/BSTR * errMsg);
00048 };
00049 
00050 #endif // !defined(AFX_NSXPCDISPTESTWRAPPEDJS_H__DAAB3C99_1894_40C2_B12B_A360739F8977__INCLUDED_)