Back to index

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

#include <PalmSyncFactory.h>

List of all members.

Public Member Functions

STDMETHODIMP QueryInterface (REFIID aIid, void **aPpv)
 STDMETHODIMP_ (ULONG) AddRef(void)
 STDMETHODIMP_ (ULONG) Release(void)
STDMETHODIMP CreateInstance (LPUNKNOWN aUnkOuter, REFIID aIid, void **aPpv)
STDMETHODIMP LockServer (BOOL aLock)
 CPalmSyncFactory ()
 ~CPalmSyncFactory ()

Private Attributes

PRInt32 m_cRef

Detailed Description

Definition at line 46 of file PalmSyncFactory.h.


Constructor & Destructor Documentation

Definition at line 44 of file PalmSyncFactory.cpp.

: m_cRef(1)
{
}

Definition at line 49 of file PalmSyncFactory.cpp.

{
}

Member Function Documentation

STDMETHODIMP CPalmSyncFactory::CreateInstance ( LPUNKNOWN  aUnkOuter,
REFIID  aIid,
void **  aPpv 
)

Definition at line 86 of file PalmSyncFactory.cpp.

{
    // Cannot aggregate.

    if (aUnknownOuter != NULL)
    {
        return CLASS_E_NOAGGREGATION ;
    }

    // Create component.

    CPalmSyncImp* pImp = new CPalmSyncImp();
    if (pImp == NULL)
    {
        return E_OUTOFMEMORY ;
    }

    // Get the requested interface.
    HRESULT hr = pImp->QueryInterface(aIid, aPpv);

    // Release the IUnknown pointer.
    // (If QueryInterface failed, component will delete itself.)

    pImp->Release();
    return hr;
}

Here is the call graph for this function:

STDMETHODIMP CPalmSyncFactory::LockServer ( BOOL  aLock)

Definition at line 115 of file PalmSyncFactory.cpp.

{
    return S_OK ;
}
STDMETHODIMP CPalmSyncFactory::QueryInterface ( REFIID  aIid,
void **  aPpv 
)

Definition at line 53 of file PalmSyncFactory.cpp.

{    
    if ((aIid == IID_IUnknown) || (aIid == IID_IClassFactory))
    {
        *aPpv = static_cast<IClassFactory*>(this); 
    }
    else
    {
        *aPpv = NULL;
        return E_NOINTERFACE;
    }
    reinterpret_cast<IUnknown*>(*aPpv)->AddRef();
    return S_OK;
}

Here is the call graph for this function:


Member Data Documentation

Definition at line 66 of file PalmSyncFactory.h.


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