Back to index

lightning-sunbird  0.9+nobinonly
nsXPCDispTestProperties.h
Go to the documentation of this file.
00001 // nsXPCDispTestProperties.h: Definition of the nsXPCDispTestProperties class
00002 //
00004 
00005 #if !defined(AFX_NSXPCDISPTESTPROPERTIES_H__9E10C7AC_36AF_4A3A_91C7_2CFB9EB166A5__INCLUDED_)
00006 #define AFX_NSXPCDISPTESTPROPERTIES_H__9E10C7AC_36AF_4A3A_91C7_2CFB9EB166A5__INCLUDED_
00007 
00008 #if _MSC_VER > 1000
00009 #pragma once
00010 #endif // _MSC_VER > 1000
00011 
00012 #include "resource.h"       // main symbols
00013 
00015 // nsXPCDispTestProperties
00016 
00017 class nsXPCDispTestProperties : 
00018     public IDispatchImpl<nsIXPCDispTestProperties, &IID_nsIXPCDispTestProperties, &LIBID_IDispatchTestLib>, 
00019     public ISupportErrorInfo,
00020     public CComObjectRoot,
00021     public CComCoClass<nsXPCDispTestProperties,&CLSID_nsXPCDispTestProperties>
00022 {
00023 public:
00024     nsXPCDispTestProperties();
00025     virtual ~nsXPCDispTestProperties();
00026 BEGIN_CATEGORY_MAP(nsXPCDispTestProperties)
00027     IMPLEMENTED_CATEGORY(CATID_SafeForScripting)
00028 END_CATEGORY_MAP()
00029 BEGIN_COM_MAP(nsXPCDispTestProperties)
00030     COM_INTERFACE_ENTRY(IDispatch)
00031     COM_INTERFACE_ENTRY(nsIXPCDispTestProperties)
00032     COM_INTERFACE_ENTRY(ISupportErrorInfo)
00033 END_COM_MAP()
00034 DECLARE_NOT_AGGREGATABLE(nsXPCDispTestProperties) 
00035 
00036 DECLARE_REGISTRY_RESOURCEID(IDR_nsXPCDispTestProperties)
00037 // ISupportsErrorInfo
00038     STDMETHOD(InterfaceSupportsErrorInfo)(REFIID riid);
00039 
00040 // nsIXPCDispTestProperties
00041 public:
00042        STDMETHOD(get_ParameterizedPropertyCount)(/*[out, retval]*/ long *pVal);
00043        STDMETHOD(get_ParameterizedProperty)(/*[in]*/long aIndex, /*[out, retval]*/ long *pVal);
00044        STDMETHOD(put_ParameterizedProperty)(/*[in]*/long aIndex, /*[in]*/ long newVal);
00045     STDMETHOD(get_Char)(/*[out, retval]*/ unsigned char *pVal);
00046     STDMETHOD(put_Char)(/*[in]*/ unsigned char newVal);
00047     STDMETHOD(get_COMPtr)(/*[out, retval]*/ IUnknown* *pVal);
00048     STDMETHOD(put_COMPtr)(/*[in]*/ IUnknown* newVal);
00049     STDMETHOD(get_Variant)(/*[out, retval]*/ VARIANT *pVal);
00050     STDMETHOD(put_Variant)(/*[in]*/ VARIANT newVal);
00051     STDMETHOD(get_Boolean)(/*[out, retval]*/ BOOL *pVal);
00052     STDMETHOD(put_Boolean)(/*[in]*/ BOOL newVal);
00053     STDMETHOD(get_SCode)(/*[out, retval]*/ SCODE *pVal);
00054     STDMETHOD(put_SCode)(/*[in]*/ SCODE newVal);
00055     STDMETHOD(get_DispatchPtr)(/*[out, retval]*/ IDispatch* *pVal);
00056     STDMETHOD(put_DispatchPtr)(/*[in]*/ IDispatch* newVal);
00057     STDMETHOD(get_String)(/*[out, retval]*/ BSTR *pVal);
00058     STDMETHOD(put_String)(/*[in]*/ BSTR newVal);
00059     STDMETHOD(get_Date)(/*[out, retval]*/ DATE *pVal);
00060     STDMETHOD(put_Date)(/*[in]*/ DATE newVal);
00061     STDMETHOD(get_Currency)(/*[out, retval]*/ CURRENCY *pVal);
00062     STDMETHOD(put_Currency)(/*[in]*/ CURRENCY newVal);
00063     STDMETHOD(get_Double)(/*[out, retval]*/ double *pVal);
00064     STDMETHOD(put_Double)(/*[in]*/ double newVal);
00065     STDMETHOD(get_Float)(/*[out, retval]*/ float *pVal);
00066     STDMETHOD(put_Float)(/*[in]*/ float newVal);
00067     STDMETHOD(get_Long)(/*[out, retval]*/ long *pVal);
00068     STDMETHOD(put_Long)(/*[in]*/ long newVal);
00069     STDMETHOD(get_Short)(/*[out, retval]*/ short *pVal);
00070     STDMETHOD(put_Short)(/*[in]*/ short newVal);
00071 private:
00072     unsigned char       mChar;
00073     CComPtr<IUnknown>   mIUnknown;
00074     CComVariant         mVariant;
00075     BOOL                mBOOL;
00076     SCODE               mSCode;
00077     CComPtr<IDispatch>  mIDispatch;
00078     CComBSTR            mBSTR;
00079     DATE                mDATE;
00080     CURRENCY            mCURRENCY;
00081     double              mDouble;
00082     float               mFloat;
00083     long                mLong;
00084     short               mShort;
00085     long *              mParameterizedProperty;
00086 };
00087 
00088 #endif // !defined(AFX_NSXPCDISPTESTPROPERTIES_H__9E10C7AC_36AF_4A3A_91C7_2CFB9EB166A5__INCLUDED_)