Back to index

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

#include <nsXPCDispSimple.h>

Inheritance diagram for nsXPCDispSimple:
Inheritance graph
Collaboration diagram for nsXPCDispSimple:
Collaboration graph

List of all members.

Public Member Functions

 nsXPCDispSimple ()
STDMETHOD() InterfaceSupportsErrorInfo (REFIID riid)
STDMETHOD() ClassName (BSTR *name)
STDMETHOD() get_Number (LONG *result)
STDMETHOD() put_Number (LONG result)

Static Public Member Functions

template<class T >
static HRESULT CreateInstance (T **result)

Private Attributes

long mNumber

Detailed Description

Definition at line 17 of file nsXPCDispSimple.h.

Constructor & Destructor Documentation

Definition at line 24 of file nsXPCDispSimple.h.

: mNumber(5) {}

Member Function Documentation

STDMETHODIMP nsXPCDispSimple::ClassName ( BSTR *  name)

Definition at line 25 of file nsXPCDispSimple.cpp.

    if (name == NULL)
        return E_POINTER;
    CComBSTR x("nsXPCDispSimple");
    *name = x.Detach();
    return S_OK;
template<class T >
static HRESULT nsXPCDispSimple::CreateInstance ( T **  result) [inline, static]

Definition at line 46 of file nsXPCDispSimple.h.

        return CoCreateInstance(CLSID_nsXPCDispSimple, 0, CLSCTX_ALL,
STDMETHODIMP nsXPCDispSimple::get_Number ( LONG result)

Definition at line 33 of file nsXPCDispSimple.cpp.

    if (result == NULL)
        return E_POINTER;
    *result = mNumber;
    return S_OK;
STDMETHODIMP nsXPCDispSimple::InterfaceSupportsErrorInfo ( REFIID  riid)

Definition at line 10 of file nsXPCDispSimple.cpp.

    static const IID* arr[] = 

    for (int i=0;i<sizeof(arr)/sizeof(arr[0]);i++)
        if (InlineIsEqualGUID(*arr[i],riid))
            return S_OK;
    return S_FALSE;
STDMETHODIMP nsXPCDispSimple::put_Number ( LONG  result)

Definition at line 40 of file nsXPCDispSimple.cpp.

    mNumber = result;
    return S_OK;

Member Data Documentation

Definition at line 53 of file nsXPCDispSimple.h.

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