Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Private Attributes
nsXPCDispTestProperties Class Reference

#include <nsXPCDispTestProperties.h>

Inheritance diagram for nsXPCDispTestProperties:
Inheritance graph
[legend]
Collaboration diagram for nsXPCDispTestProperties:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 nsXPCDispTestProperties ()
virtual ~nsXPCDispTestProperties ()
STDMETHOD() InterfaceSupportsErrorInfo (REFIID riid)
STDMETHOD() get_ParameterizedPropertyCount (long *pVal)
STDMETHOD() get_ParameterizedProperty (long aIndex, long *pVal)
STDMETHOD() put_ParameterizedProperty (long aIndex, long newVal)
STDMETHOD() get_Char (unsigned char *pVal)
STDMETHOD() put_Char (unsigned char newVal)
STDMETHOD() get_COMPtr (IUnknown **pVal)
STDMETHOD() put_COMPtr (IUnknown *newVal)
STDMETHOD() get_Variant (VARIANT *pVal)
STDMETHOD() put_Variant (VARIANT newVal)
STDMETHOD() get_Boolean (BOOL *pVal)
STDMETHOD() put_Boolean (BOOL newVal)
STDMETHOD() get_SCode (SCODE *pVal)
STDMETHOD() put_SCode (SCODE newVal)
STDMETHOD() get_DispatchPtr (IDispatch **pVal)
STDMETHOD() put_DispatchPtr (IDispatch *newVal)
STDMETHOD() get_String (BSTR *pVal)
STDMETHOD() put_String (BSTR newVal)
STDMETHOD() get_Date (DATE *pVal)
STDMETHOD() put_Date (DATE newVal)
STDMETHOD() get_Currency (CURRENCY *pVal)
STDMETHOD() put_Currency (CURRENCY newVal)
STDMETHOD() get_Double (double *pVal)
STDMETHOD() put_Double (double newVal)
STDMETHOD() get_Float (float *pVal)
STDMETHOD() put_Float (float newVal)
STDMETHOD() get_Long (long *pVal)
STDMETHOD() put_Long (long newVal)
STDMETHOD() get_Short (short *pVal)
STDMETHOD() put_Short (short newVal)

Private Attributes

unsigned char mChar
CComPtr< IUnknownmIUnknown
CComVariant mVariant
BOOL mBOOL
SCODE mSCode
CComPtr< IDispatchmIDispatch
CComBSTR mBSTR
DATE mDATE
CURRENCY mCURRENCY
double mDouble
float mFloat
long mLong
short mShort
longmParameterizedProperty

Detailed Description

Definition at line 17 of file nsXPCDispTestProperties.h.


Constructor & Destructor Documentation

Definition at line 26 of file nsXPCDispTestProperties.cpp.

                                                 :
    mChar('a'),
    mBOOL(FALSE),
    mSCode(0),
    mDATE(0),
    mDouble(0.0),
    mFloat(0.0f),
    mLong(0),
    mShort(0),
    mParameterizedProperty(new long[PARAMETERIZED_PROPERTY_COUNT])
{
    mCURRENCY.int64 = 0;
    CComBSTR string("Initial value");
    mBSTR = string.Detach();
    for (long index = 0; index < PARAMETERIZED_PROPERTY_COUNT; ++index)
        mParameterizedProperty[index] = index + 1;
}

Definition at line 44 of file nsXPCDispTestProperties.cpp.

{
    delete [] mParameterizedProperty;
}

Member Function Documentation

STDMETHODIMP nsXPCDispTestProperties::get_Boolean ( BOOL pVal)

Definition at line 175 of file nsXPCDispTestProperties.cpp.

{
    *pVal = mBOOL;

    return S_OK;
}
STDMETHODIMP nsXPCDispTestProperties::get_Char ( unsigned char *  pVal)

Definition at line 217 of file nsXPCDispTestProperties.cpp.

{
    *pVal = mChar;

    return S_OK;
}
STDMETHODIMP nsXPCDispTestProperties::get_COMPtr ( IUnknown **  pVal)

Definition at line 203 of file nsXPCDispTestProperties.cpp.

{
    mIUnknown.CopyTo(pVal);

    return S_OK;
}
STDMETHODIMP nsXPCDispTestProperties::get_Currency ( CURRENCY *  pVal)

Definition at line 105 of file nsXPCDispTestProperties.cpp.

{
    *pVal = mCURRENCY;

    return S_OK;
}
STDMETHODIMP nsXPCDispTestProperties::get_Date ( DATE *  pVal)

Definition at line 119 of file nsXPCDispTestProperties.cpp.

{
    *pVal = mDATE;

    return S_OK;
}

Definition at line 147 of file nsXPCDispTestProperties.cpp.

{
    mIDispatch.CopyTo(pVal);

    return S_OK;
}
STDMETHODIMP nsXPCDispTestProperties::get_Double ( double *  pVal)

Definition at line 91 of file nsXPCDispTestProperties.cpp.

{
    *pVal = mDouble;

    return S_OK;
}
STDMETHODIMP nsXPCDispTestProperties::get_Float ( float *  pVal)

Definition at line 77 of file nsXPCDispTestProperties.cpp.

{
    *pVal = mFloat;

    return S_OK;
}
STDMETHODIMP nsXPCDispTestProperties::get_Long ( long pVal)

Definition at line 63 of file nsXPCDispTestProperties.cpp.

{
    *pVal = mLong;

    return S_OK;
}
STDMETHODIMP nsXPCDispTestProperties::get_ParameterizedProperty ( long  aIndex,
long pVal 
)

Definition at line 231 of file nsXPCDispTestProperties.cpp.

{
    if (aIndex < 0 || aIndex >= PARAMETERIZED_PROPERTY_COUNT)
        return E_FAIL;

       *pVal = mParameterizedProperty[aIndex];

       return S_OK;
}

Definition at line 251 of file nsXPCDispTestProperties.cpp.

{
       *pVal = PARAMETERIZED_PROPERTY_COUNT;

       return S_OK;
}
STDMETHODIMP nsXPCDispTestProperties::get_SCode ( SCODE *  pVal)

Definition at line 161 of file nsXPCDispTestProperties.cpp.

{
    *pVal = mSCode;

    return S_OK;
}
STDMETHODIMP nsXPCDispTestProperties::get_Short ( short *  pVal)

Definition at line 49 of file nsXPCDispTestProperties.cpp.

{
    *pVal = mShort;

    return S_OK;
}
STDMETHODIMP nsXPCDispTestProperties::get_String ( BSTR *  pVal)

Definition at line 133 of file nsXPCDispTestProperties.cpp.

{
    *pVal = mBSTR.Copy();

    return S_OK;
}
STDMETHODIMP nsXPCDispTestProperties::get_Variant ( VARIANT *  pVal)

Definition at line 189 of file nsXPCDispTestProperties.cpp.

{
    ::VariantCopy(pVal, &mVariant);

    return S_OK;
}

Definition at line 11 of file nsXPCDispTestProperties.cpp.

{
    static const IID* arr[] = 
    {
        &IID_nsIXPCDispTestProperties,
    };

    for (int i=0;i<sizeof(arr)/sizeof(arr[0]);i++)
    {
        if (InlineIsEqualGUID(*arr[i],riid))
            return S_OK;
    }
    return S_FALSE;
}
STDMETHODIMP nsXPCDispTestProperties::put_Boolean ( BOOL  newVal)

Definition at line 182 of file nsXPCDispTestProperties.cpp.

{
    mBOOL = newVal;

    return S_OK;
}
STDMETHODIMP nsXPCDispTestProperties::put_Char ( unsigned char  newVal)

Definition at line 224 of file nsXPCDispTestProperties.cpp.

{
    mChar = newVal;

    return S_OK;
}
STDMETHODIMP nsXPCDispTestProperties::put_COMPtr ( IUnknown newVal)

Definition at line 210 of file nsXPCDispTestProperties.cpp.

{
    mIUnknown = newVal;

    return S_OK;
}
STDMETHODIMP nsXPCDispTestProperties::put_Currency ( CURRENCY  newVal)

Definition at line 112 of file nsXPCDispTestProperties.cpp.

{
    mCURRENCY = newVal;

    return S_OK;
}
STDMETHODIMP nsXPCDispTestProperties::put_Date ( DATE  newVal)

Definition at line 126 of file nsXPCDispTestProperties.cpp.

{
    mDATE = newVal;

    return S_OK;
}

Definition at line 154 of file nsXPCDispTestProperties.cpp.

{
    mIDispatch = newVal;

    return S_OK;
}
STDMETHODIMP nsXPCDispTestProperties::put_Double ( double  newVal)

Definition at line 98 of file nsXPCDispTestProperties.cpp.

{
    mDouble = newVal;

    return S_OK;
}
STDMETHODIMP nsXPCDispTestProperties::put_Float ( float  newVal)

Definition at line 84 of file nsXPCDispTestProperties.cpp.

{
    mFloat = newVal;

    return S_OK;
}
STDMETHODIMP nsXPCDispTestProperties::put_Long ( long  newVal)

Definition at line 70 of file nsXPCDispTestProperties.cpp.

{
    mLong = newVal;

    return S_OK;
}
STDMETHODIMP nsXPCDispTestProperties::put_ParameterizedProperty ( long  aIndex,
long  newVal 
)

Definition at line 241 of file nsXPCDispTestProperties.cpp.

{
    if (aIndex < 0 || aIndex >= PARAMETERIZED_PROPERTY_COUNT)
        return E_FAIL;

       mParameterizedProperty[aIndex] = newVal;

       return S_OK;
}
STDMETHODIMP nsXPCDispTestProperties::put_SCode ( SCODE  newVal)

Definition at line 168 of file nsXPCDispTestProperties.cpp.

{
    mSCode = newVal;

    return S_OK;
}
STDMETHODIMP nsXPCDispTestProperties::put_Short ( short  newVal)

Definition at line 56 of file nsXPCDispTestProperties.cpp.

{
    mShort = newVal;

    return S_OK;
}
STDMETHODIMP nsXPCDispTestProperties::put_String ( BSTR  newVal)

Definition at line 140 of file nsXPCDispTestProperties.cpp.

{
    mBSTR = newVal;

    return S_OK;
}
STDMETHODIMP nsXPCDispTestProperties::put_Variant ( VARIANT  newVal)

Definition at line 196 of file nsXPCDispTestProperties.cpp.

{
    mVariant = newVal;

    return S_OK;
}

Member Data Documentation

Definition at line 75 of file nsXPCDispTestProperties.h.

CComBSTR nsXPCDispTestProperties::mBSTR [private]

Definition at line 78 of file nsXPCDispTestProperties.h.

unsigned char nsXPCDispTestProperties::mChar [private]

Definition at line 72 of file nsXPCDispTestProperties.h.

Definition at line 80 of file nsXPCDispTestProperties.h.

Definition at line 79 of file nsXPCDispTestProperties.h.

Definition at line 81 of file nsXPCDispTestProperties.h.

Definition at line 82 of file nsXPCDispTestProperties.h.

Definition at line 77 of file nsXPCDispTestProperties.h.

Definition at line 73 of file nsXPCDispTestProperties.h.

Definition at line 83 of file nsXPCDispTestProperties.h.

Definition at line 85 of file nsXPCDispTestProperties.h.

Definition at line 76 of file nsXPCDispTestProperties.h.

Definition at line 84 of file nsXPCDispTestProperties.h.

CComVariant nsXPCDispTestProperties::mVariant [private]

Definition at line 74 of file nsXPCDispTestProperties.h.


The documentation for this class was generated from the following files: