Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions
NotificationCallbacks Class Reference
Inheritance diagram for NotificationCallbacks:
Inheritance graph
Collaboration diagram for NotificationCallbacks:
Collaboration graph

List of all members.

Public Member Functions

NS_DECL_ISUPPORTS NotificationCallbacks ()
NS_IMETHOD GetInterface (const nsIID &iid, void **result)
void getInterface (in nsIIDRef uuid,[iid_is(uuid), retval] out nsQIResult result)
 Retrieves the specified interface pointer.

Detailed Description

Definition at line 570 of file TestProtocols.cpp.

Constructor & Destructor Documentation

Definition at line 574 of file TestProtocols.cpp.


Member Function Documentation

void nsIInterfaceRequestor::getInterface ( in nsIIDRef  uuid,
[iid_is(uuid), retval] out nsQIResult  result 
) [inherited]

Retrieves the specified interface pointer.

uuidThe IID of the interface being requested.
result[out] The interface pointer to be filled in if the interface is accessible.
NS_OK - interface was successfully returned. NS_NOINTERFACE - interface not accessible. NS_ERROR* - method failure.
NS_IMETHOD NotificationCallbacks::GetInterface ( const nsIID iid,
void **  result 
) [inline]

Definition at line 577 of file TestProtocols.cpp.

        nsresult rv = NS_ERROR_FAILURE;

        if (iid.Equals(NS_GET_IID(nsIChannelEventSink))) {
          TestChannelEventSink *sink;

          sink = new TestChannelEventSink();
          if (sink == nsnull)
            return NS_ERROR_OUT_OF_MEMORY;
          rv = sink->QueryInterface(iid, result);

        if (iid.Equals(NS_GET_IID(nsIAuthPrompt))) {
          TestAuthPrompt *prompt;

          prompt = new TestAuthPrompt();
          if (prompt == nsnull)
            return NS_ERROR_OUT_OF_MEMORY;
          rv = prompt->QueryInterface(iid, result);
        return rv;

Here is the call graph for this function:

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