Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Functions
nsXPCDispTestWrappedJS.cpp File Reference
#include "stdafx.h"
#include "XPCIDispatchTest.h"
#include "nsXPCDispTestWrappedJS.h"
#include <string>
#include <sstream>

Go to the source code of this file.

Classes

struct  TestData

Defines

#define CompareFunction(type)

Functions

bool CompareVariant (const _variant_t &left, const _variant_t &right)
 CompareFunction (float)
 CompareFunction (double)
 CompareFunction (_bstr_t)
DISPID GetIDsOfNames (IDispatch *pIDispatch, char const *i_Method)

Define Documentation

Value:
bool CompareVariant##type(const _variant_t & left, const _variant_t & right)     \
{                                                                           \
    return static_cast<type>(left) == static_cast<type>(right);   \
}

Definition at line 44 of file nsXPCDispTestWrappedJS.cpp.


Function Documentation

CompareFunction ( float  )
CompareFunction ( double  )
CompareFunction ( _bstr_t  )
bool CompareVariant ( const _variant_t &  left,
const _variant_t &  right 
)

Definition at line 38 of file nsXPCDispTestWrappedJS.cpp.

{
    return left == right;
}

Here is the caller graph for this function:

DISPID GetIDsOfNames ( IDispatch pIDispatch,
char const i_Method 
)

Definition at line 55 of file nsXPCDispTestWrappedJS.cpp.

{
    DISPID dispid;
    CComBSTR method(i_Method);
    OLECHAR * pMethod = method;
    HRESULT hresult = pIDispatch->GetIDsOfNames(
        IID_NULL,
        &pMethod,
        1, 
        LOCALE_SYSTEM_DEFAULT,
        &dispid);
    if (!SUCCEEDED(hresult))
    {
        dispid = 0;
    }
    return dispid;
}

Here is the caller graph for this function: