Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions
nsCLiveconnectFactory Class Reference

#include <nsCLiveconnectFactory.h>

Inheritance diagram for nsCLiveconnectFactory:
Inheritance graph
Collaboration diagram for nsCLiveconnectFactory:
Collaboration graph

List of all members.

Public Member Functions

NS_DECL_ISUPPORTS NS_IMETHOD CreateInstance (nsISupports *aOuter, REFNSIID aIID, void **aResult)
NS_IMETHOD LockFactory (PRBool aLock)
 nsCLiveconnectFactory (void)
virtual ~nsCLiveconnectFactory (void)
void createInstance (in nsISupports aOuter, in nsIIDRef iid,[retval, iid_is(iid)] out nsQIResult result)
 Creates an instance of a component.
void lockFactory (in PRBool lock)
 LockFactory provides the client a way to keep the component in memory until it is finished with it.

Detailed Description

Definition at line 52 of file nsCLiveconnectFactory.h.

Constructor & Destructor Documentation

Definition at line 111 of file nsCLiveconnectFactory.cpp.


Definition at line 115 of file nsCLiveconnectFactory.cpp.


Member Function Documentation

NS_METHOD nsCLiveconnectFactory::CreateInstance ( nsISupports *  aOuter,
void **  aResult 

Definition at line 82 of file nsCLiveconnectFactory.cpp.

       if (!aResult)
              return NS_ERROR_INVALID_POINTER;

       *aResult  = NULL;


       nsCLiveconnect* liveconnect = new nsCLiveconnect(aOuter);
       if (liveconnect == NULL)
              return NS_ERROR_OUT_OF_MEMORY;
       nsresult result = liveconnect->AggregatedQueryInterface(aIID, aResult);
       if (NS_FAILED(result))
              delete liveconnect;

       return result;
void nsIFactory::createInstance ( in nsISupports  aOuter,
in nsIIDRef  iid,
[retval, iid_is(iid)] out nsQIResult  result 
) [inherited]

Creates an instance of a component.

aOuterPointer to a component that wishes to be aggregated in the resulting instance. This will be nsnull if no aggregation is requested.
iidThe IID of the interface being requested in the component which is being currently created.
result[out] Pointer to the newly created instance, if successful.
NS_OK - Component successfully created and the interface being requested was successfully returned in result. NS_NOINTERFACE - Interface not accessible. NS_ERROR_NO_AGGREGATION - if an 'outer' object is supplied, but the component is not aggregatable. NS_ERROR* - Method failure.

Definition at line 103 of file nsCLiveconnectFactory.cpp.

   return NS_OK;
void nsIFactory::lockFactory ( in PRBool  lock) [inherited]

LockFactory provides the client a way to keep the component in memory until it is finished with it.

The client can call LockFactory(PR_TRUE) to lock the factory and LockFactory(PR_FALSE) to release the factory.

lock- Must be PR_TRUE or PR_FALSE
NS_OK - If the lock operation was successful. NS_ERROR* - Method failure.

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