Back to index

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

#include <nsProxiedService.h>

Collaboration diagram for nsProxiedService:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 nsProxiedService (const nsCID &aClass, const nsIID &aIID, nsIEventQueue *aEventQ, PRBool always, nsresult *rv)
 nsProxiedService (const char *aContractID, const nsIID &aIID, nsIEventQueue *aEventQ, PRBool always, nsresult *rv)
 operator nsISupports * () const

Private Member Functions

void InitProxy (nsISupports *aObj, const nsIID &aIID, nsIEventQueue *aEventQ, PRBool always, nsresult *rv)

Private Attributes

nsCOMPtr< nsISupports > mProxiedService

Detailed Description

Definition at line 95 of file nsProxiedService.h.


Constructor & Destructor Documentation

nsProxiedService::nsProxiedService ( const nsCID aClass,
const nsIID aIID,
nsIEventQueue aEventQ,
PRBool  always,
nsresult rv 
) [inline]

Definition at line 98 of file nsProxiedService.h.

    {
        nsCOMPtr<nsISupports> svc = do_GetService(aClass, rv);
        if (NS_SUCCEEDED(*rv))
            InitProxy(svc, aIID, aEventQ, always, rv);
    }

Here is the call graph for this function:

nsProxiedService::nsProxiedService ( const char *  aContractID,
const nsIID aIID,
nsIEventQueue aEventQ,
PRBool  always,
nsresult rv 
) [inline]

Definition at line 106 of file nsProxiedService.h.

    {
        nsCOMPtr<nsISupports> svc = do_GetService(aContractID, rv);
        if (NS_SUCCEEDED(*rv))
            InitProxy(svc, aIID, aEventQ, always, rv);
    }

Here is the call graph for this function:


Member Function Documentation

void nsProxiedService::InitProxy ( nsISupports *  aObj,
const nsIID aIID,
nsIEventQueue aEventQ,
PRBool  always,
nsresult rv 
) [inline, private]

Definition at line 121 of file nsProxiedService.h.

    {
        PRInt32 proxyType = PROXY_SYNC;
        if (always)
            proxyType |= PROXY_ALWAYS;

        *rv = NS_GetProxyForObject(aEventQ, 
                                   aIID, 
                                   aObj,
                                   proxyType, 
                                   getter_AddRefs(mProxiedService));
    }

Here is the call graph for this function:

Here is the caller graph for this function:

nsProxiedService::operator nsISupports * ( ) const [inline]

Definition at line 114 of file nsProxiedService.h.

    {
        return mProxiedService;
    }

Member Data Documentation

Definition at line 135 of file nsProxiedService.h.


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