Back to index

lightning-sunbird  0.9+nobinonly
nsXPCDispTestArrays.h
Go to the documentation of this file.
00001 // nsXPCDispTestArrays.h: Definition of the nsXPCDispTestArrays class
00002 //
00004 
00005 #if !defined(AFX_NSXPCDISPTESTARRAYS_H__5F59BD4C_16A4_4BD6_8281_796DE6A2889C__INCLUDED_)
00006 #define AFX_NSXPCDISPTESTARRAYS_H__5F59BD4C_16A4_4BD6_8281_796DE6A2889C__INCLUDED_
00007 
00008 #if _MSC_VER > 1000
00009 #pragma once
00010 #endif // _MSC_VER > 1000
00011 
00012 #include "resource.h"       // main symbols
00013 
00015 // nsXPCDispTestArrays
00016 
00017 class nsXPCDispTestArrays : 
00018     public IDispatchImpl<nsIXPCDispTestArrays, &IID_nsIXPCDispTestArrays, &LIBID_IDispatchTestLib>,
00019     public ISupportErrorInfo,
00020     public CComObjectRoot,
00021     public CComCoClass<nsXPCDispTestArrays,&CLSID_nsXPCDispTestArrays>
00022 {
00023 public:
00024     nsXPCDispTestArrays() {}
00025 BEGIN_CATEGORY_MAP(nsXPCDispTestArrays)
00026     IMPLEMENTED_CATEGORY(CATID_SafeForScripting)
00027 END_CATEGORY_MAP()
00028 BEGIN_COM_MAP(nsXPCDispTestArrays)
00029     COM_INTERFACE_ENTRY(IDispatch)
00030     COM_INTERFACE_ENTRY(ISupportErrorInfo)
00031     COM_INTERFACE_ENTRY(nsIXPCDispTestArrays)
00032 END_COM_MAP()
00033 DECLARE_NOT_AGGREGATABLE(nsXPCDispTestArrays) 
00034 
00035 DECLARE_REGISTRY_RESOURCEID(IDR_nsXPCDispTestArrays)
00036 // ISupportsErrorInfo
00037     STDMETHOD(InterfaceSupportsErrorInfo)(REFIID riid);
00038 
00039 // nsIXPCDispTestArrays
00040 public:
00041 // nsIXPCDispTestArrays
00042     STDMETHOD(ReturnSafeArray)(LPSAFEARRAY * result);
00043     STDMETHOD(ReturnSafeArrayBSTR)(LPSAFEARRAY * result);
00044     STDMETHOD(ReturnSafeArrayIDispatch)(LPSAFEARRAY * result);
00045     STDMETHOD(TakesSafeArray)(LPSAFEARRAY array);
00046     STDMETHOD(TakesSafeArrayBSTR)(LPSAFEARRAY array);
00047     STDMETHOD(TakesSafeArrayIDispatch)(LPSAFEARRAY array);
00048     STDMETHOD(InOutSafeArray)(LPSAFEARRAY * array);
00049     STDMETHOD(InOutSafeArrayBSTR)(LPSAFEARRAY * array);
00050     STDMETHOD(InOutSafeArrayIDispatch)(LPSAFEARRAY * array);
00051 };
00052 
00053 #endif // !defined(AFX_NSXPCDISPTESTARRAYS_H__5F59BD4C_16A4_4BD6_8281_796DE6A2889C__INCLUDED_)