Back to index

lightning-sunbird  0.9+nobinonly
nsXPCDispTestMethods.h
Go to the documentation of this file.
00001 // nsXPCDispTestMethods.h: Definition of the nsXPCDispTestMethods class
00002 //
00004 
00005 #if !defined(AFX_NSXPCDISPTESTMETHODS_H__A516B1D7_1971_419C_AE35_EDFAC27D1227__INCLUDED_)
00006 #define AFX_NSXPCDISPTESTMETHODS_H__A516B1D7_1971_419C_AE35_EDFAC27D1227__INCLUDED_
00007 
00008 #if _MSC_VER > 1000
00009 #pragma once
00010 #endif // _MSC_VER > 1000
00011 
00012 #include "resource.h"       // main symbols
00013 #include "XPCIDispatchTest.h"
00014 
00016 // nsXPCDispTestMethods
00017 
00018 class nsXPCDispTestMethods : 
00019     public ISupportErrorInfo,
00020     public CComObjectRoot,
00021     public CComCoClass<nsXPCDispTestMethods,&CLSID_nsXPCDispTestMethods>,
00022     public IDispatchImpl<nsIXPCDispTestMethods, &IID_nsIXPCDispTestMethods, &LIBID_IDispatchTestLib>
00023 {
00024 public:
00025     nsXPCDispTestMethods() {}
00026 BEGIN_CATEGORY_MAP(nsXPCDispTestMethods)
00027     IMPLEMENTED_CATEGORY(CATID_SafeForScripting)
00028 END_CATEGORY_MAP()
00029 BEGIN_COM_MAP(nsXPCDispTestMethods)
00030     COM_INTERFACE_ENTRY(IDispatch)
00031     COM_INTERFACE_ENTRY(ISupportErrorInfo)
00032     COM_INTERFACE_ENTRY(nsIXPCDispTestMethods)
00033 END_COM_MAP()
00034 DECLARE_NOT_AGGREGATABLE(nsXPCDispTestMethods) 
00035 
00036 DECLARE_REGISTRY_RESOURCEID(IDR_nsXPCDispTestMethods)
00037 // ISupportsErrorInfo
00038     STDMETHOD(InterfaceSupportsErrorInfo)(REFIID riid);
00039 
00040 // nsIXPCDispTestMethods
00041 public:
00042 // nsIXPCDispTestMethod
00043     STDMETHOD(NoParameters)();
00044     STDMETHOD(ReturnBSTR)(BSTR * result);
00045     STDMETHOD(ReturnI4)(INT * result);
00046     STDMETHOD(ReturnUI1)(BYTE * result);
00047     STDMETHOD(ReturnI2)(SHORT * result);
00048     STDMETHOD(ReturnR4)(FLOAT * result);
00049     STDMETHOD(ReturnR8)(DOUBLE * result);
00050     STDMETHOD(ReturnBool)(VARIANT_BOOL * result);
00051     STDMETHOD(ReturnIDispatch)(IDispatch * * result);
00052     STDMETHOD(ReturnError)(SCODE * result);
00053     STDMETHOD(ReturnDate)(DATE * result);
00054     STDMETHOD(ReturnIUnknown)(IUnknown * * result);
00055     STDMETHOD(ReturnI1)(unsigned char * result);
00056     STDMETHOD(ReturnUI2)(USHORT * result);
00057     STDMETHOD(ReturnUI4)(ULONG * result);
00058     STDMETHOD(ReturnInt)(INT * result);
00059     STDMETHOD(ReturnUInt)(UINT * result);
00060     STDMETHOD(TakesBSTR)(BSTR result);
00061     STDMETHOD(TakesI4)(INT result);
00062     STDMETHOD(TakesUI1)(BYTE result);
00063     STDMETHOD(TakesI2)(SHORT result);
00064     STDMETHOD(TakesR4)(FLOAT result);
00065     STDMETHOD(TakesR8)(DOUBLE result);
00066     STDMETHOD(TakesBool)(VARIANT_BOOL result);
00067     STDMETHOD(TakesIDispatch)(IDispatch * result);
00068     STDMETHOD(TakesError)(SCODE result);
00069     STDMETHOD(TakesDate)(DATE result);
00070     STDMETHOD(TakesIUnknown)(IUnknown * result);
00071     STDMETHOD(TakesI1)(unsigned char result);
00072     STDMETHOD(TakesUI2)(USHORT result);
00073     STDMETHOD(TakesUI4)(ULONG result);
00074     STDMETHOD(TakesInt)(INT result);
00075     STDMETHOD(TakesUInt)(UINT result);
00076     STDMETHOD(OutputsBSTR)(BSTR * result);
00077     STDMETHOD(OutputsI4)(LONG * result);
00078     STDMETHOD(OutputsUI1)(BYTE * result);
00079     STDMETHOD(OutputsI2)(SHORT * result);
00080     STDMETHOD(OutputsR4)(FLOAT * result);
00081     STDMETHOD(OutputsR8)(DOUBLE * result);
00082     STDMETHOD(OutputsBool)(VARIANT_BOOL * result);
00083     STDMETHOD(OutputsIDispatch)(IDispatch * * result);
00084     STDMETHOD(OutputsError)(SCODE * result);
00085     STDMETHOD(OutputsDate)(DATE * result);
00086     STDMETHOD(OutputsIUnknown)(IUnknown * * result);
00087     STDMETHOD(OutputsI1)(unsigned char * result);
00088     STDMETHOD(OutputsUI2)(USHORT * result);
00089     STDMETHOD(OutputsUI4)(ULONG * result);
00090     STDMETHOD(InOutsBSTR)(BSTR * result);
00091     STDMETHOD(InOutsI4)(LONG * result);
00092     STDMETHOD(InOutsUI1)(BYTE * result);
00093     STDMETHOD(InOutsI2)(SHORT * result);
00094     STDMETHOD(InOutsR4)(FLOAT * result);
00095     STDMETHOD(InOutsR8)(DOUBLE * result);
00096     STDMETHOD(InOutsBool)(VARIANT_BOOL * result);
00097     STDMETHOD(InOutsIDispatch)(IDispatch * * result);
00098     STDMETHOD(InOutsError)(SCODE * result);
00099     STDMETHOD(InOutsDate)(DATE * result);
00100     STDMETHOD(InOutsIUnknown)(IUnknown * * result);
00101     STDMETHOD(InOutsI1)(unsigned char * result);
00102     STDMETHOD(InOutsUI2)(USHORT * result);
00103     STDMETHOD(InOutsUI4)(ULONG * result);
00104     STDMETHOD(OneParameterWithReturn)(LONG input, LONG * result);
00105     STDMETHOD(StringInputAndReturn)(BSTR str, BSTR * result);
00106     STDMETHOD(IDispatchInputAndReturn)(IDispatch * input, IDispatch** result);
00107     STDMETHOD(TwoParameters)(LONG one, LONG two);
00108     STDMETHOD(TwelveInParameters)(LONG one, LONG two, LONG three, LONG four,
00109                                   LONG five, LONG six, LONG seven, LONG eight,
00110                                   LONG nine, LONG ten, LONG eleven,
00111                                   LONG twelve);
00112     STDMETHOD(TwelveOutParameters)(LONG * one, LONG * two, LONG * three, 
00113                                    LONG * four, LONG * five, LONG * six,
00114                                    LONG * seven, LONG * eight, LONG * nine,
00115                                    LONG * ten, LONG * eleven, LONG * twelve);
00116     STDMETHOD(TwelveStrings)(BSTR one, BSTR two, BSTR three, BSTR four,
00117                              BSTR five, BSTR six, BSTR seven, BSTR eight,
00118                              BSTR nine, BSTR ten, BSTR eleven, BSTR twelve);
00119     STDMETHOD(TwelveOutStrings)(BSTR * one, BSTR * two, BSTR * three,
00120                                 BSTR * four, BSTR * five, BSTR * six,
00121                                 BSTR * seven, BSTR * eight, BSTR * nine,
00122                                 BSTR * ten, BSTR * eleven, BSTR * twelve);
00123     STDMETHOD(TwelveIDispatch)(IDispatch * one, IDispatch * two,
00124                                IDispatch * three, IDispatch * four,
00125                                IDispatch * five, IDispatch * six,
00126                                IDispatch * seven, IDispatch * eight,
00127                                IDispatch * nine, IDispatch * ten,
00128                                IDispatch * eleven, IDispatch * twelve);
00129     STDMETHOD(TwelveOutIDispatch)(IDispatch * * one, IDispatch * * two,
00130                                   IDispatch * * three, IDispatch * * four,
00131                                   IDispatch * * five, IDispatch * * six,
00132                                   IDispatch * * seven, IDispatch * * eight,
00133                                   IDispatch * * nine, IDispatch * * ten,
00134                                   IDispatch * * eleven, IDispatch * * twelve);
00135     STDMETHOD(CreateError)();
00136 };
00137 
00138 #endif // !defined(AFX_NSXPCDISPTESTMETHODS_H__A516B1D7_1971_419C_AE35_EDFAC27D1227__INCLUDED_)