Back to index

lightning-sunbird  0.9+nobinonly
Functions
nsComponentManagerUtils.cpp File Reference
#include "nsXPCOM.h"
#include "nsCOMPtr.h"
#include "nsComponentManagerUtils.h"
#include "nsServiceManagerUtils.h"
#include "nsIComponentManager.h"

Go to the source code of this file.

Functions

nsresult CallGetService (const nsCID &aCID, const nsIID &aIID, void **aResult)
nsresult CallGetService (const char *aContractID, const nsIID &aIID, void **aResult)
nsresult CallCreateInstance (const nsCID &aCID, nsISupports *aDelegate, const nsIID &aIID, void **aResult)
nsresult CallCreateInstance (const char *aContractID, nsISupports *aDelegate, const nsIID &aIID, void **aResult)
nsresult CallGetClassObject (const nsCID &aCID, const nsIID &aIID, void **aResult)
nsresult CallGetClassObject (const char *aContractID, const nsIID &aIID, void **aResult)

Function Documentation

nsresult CallCreateInstance ( const nsCID aCID,
nsISupports *  aDelegate,
const nsIID aIID,
void **  aResult 
)

Definition at line 102 of file nsComponentManagerUtils.cpp.

{
    nsCOMPtr<nsIComponentManager> compMgr;
    nsresult status = NS_GetComponentManager(getter_AddRefs(compMgr));
    if (compMgr)
        status = compMgr->CreateInstance(aCID, aDelegate, aIID, aResult);
    return status;
}

Here is the call graph for this function:

nsresult CallCreateInstance ( const char *  aContractID,
nsISupports *  aDelegate,
const nsIID aIID,
void **  aResult 
)

Definition at line 113 of file nsComponentManagerUtils.cpp.

{
    nsCOMPtr<nsIComponentManager> compMgr;
    nsresult status = NS_GetComponentManager(getter_AddRefs(compMgr));
    if (compMgr)
        status = compMgr->CreateInstanceByContractID(aContractID, aDelegate,
                                                     aIID, aResult);
    return status;
}

Here is the call graph for this function:

nsresult CallGetClassObject ( const nsCID aCID,
const nsIID aIID,
void **  aResult 
)

Definition at line 125 of file nsComponentManagerUtils.cpp.

{
    nsCOMPtr<nsIComponentManager> compMgr;
    nsresult status = NS_GetComponentManager(getter_AddRefs(compMgr));
    if (compMgr)
        status = compMgr->GetClassObject(aCID, aIID, aResult);
    return status;
}

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult CallGetClassObject ( const char *  aContractID,
const nsIID aIID,
void **  aResult 
)

Definition at line 135 of file nsComponentManagerUtils.cpp.

{
    nsCOMPtr<nsIComponentManager> compMgr;
    nsresult status = NS_GetComponentManager(getter_AddRefs(compMgr));
    if (compMgr)
        status = compMgr->GetClassObjectByContractID(aContractID, aIID,
                                                     aResult);
    return status;
}

Here is the call graph for this function:

nsresult CallGetService ( const nsCID aCID,
const nsIID aIID,
void **  aResult 
)

Definition at line 54 of file nsComponentManagerUtils.cpp.

{
    nsCOMPtr<nsIServiceManager> servMgr;
    nsresult status = NS_GetServiceManager(getter_AddRefs(servMgr));
    if (servMgr)
        status = servMgr->GetService(aCID, aIID, aResult);
    return status;
}

Here is the call graph for this function:

nsresult CallGetService ( const char *  aContractID,
const nsIID aIID,
void **  aResult 
)

Definition at line 64 of file nsComponentManagerUtils.cpp.

{
    nsCOMPtr<nsIServiceManager> servMgr;
    nsresult status = NS_GetServiceManager(getter_AddRefs(servMgr));
    if (servMgr)
        status = servMgr->GetServiceByContractID(aContractID, aIID, aResult);
    return status;
}

Here is the call graph for this function: