Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions
nsOperationStreamListeners.cpp File Reference
#include "nsWebDAVInternal.h"
#include "nsIHttpChannel.h"
#include "nsIIOService.h"
#include "nsNetUtil.h"
#include "nsIURL.h"
#include "nsIDOM3Node.h"
#include "nsIDOMDocument.h"
#include "nsIDOMElement.h"
#include "nsIDOMNodeList.h"
#include "nsIDOMRange.h"
#include "nsIDocument.h"
#include "nsIDocumentEncoder.h"
#include "nsContentCID.h"
#include "nsIWebDAVResource.h"
#include "nsIWebDAVListener.h"
#include "nsString.h"
#include "nsISupportsPrimitives.h"

Go to the source code of this file.

Classes

class  OperationStreamListener
class  PropfindStreamListener
class  ReportStreamListener
class  GetToStringStreamListener

Functions

nsIStreamListenerNS_WD_NewPropfindStreamListener (nsIWebDAVResource *resource, nsIWebDAVOperationListener *listener, nsISupports *closure, PRBool isPropname)
nsIStreamListenerNS_WD_NewReportStreamListener (nsIWebDAVResource *resource, nsIWebDAVOperationListener *listener, nsISupports *closure)
nsresult NS_WD_NewOperationStreamListener (nsIWebDAVResource *resource, nsIWebDAVOperationListener *listener, nsISupports *closure, PRUint32 operation, nsIStreamListener **streamListener)
nsresult NS_WD_NewGetOperationRequestObserver (nsIWebDAVResource *resource, nsIWebDAVOperationListener *listener, nsISupports *closure, nsIOutputStream *outstream, nsIRequestObserver **observer)
nsresult NS_WD_NewGetToStringOperationRequestObserver (nsIWebDAVResource *resource, nsIWebDAVOperationListener *listener, nsISupports *closure, nsIStreamListener **streamListener)

Function Documentation

nsresult NS_WD_NewGetOperationRequestObserver ( nsIWebDAVResource resource,
nsIWebDAVOperationListener listener,
nsISupports *  closure,
nsIOutputStream outstream,
nsIRequestObserver **  observer 
)

Definition at line 565 of file nsOperationStreamListeners.cpp.

{
    nsCOMPtr<nsIRequestObserver> osl = 
        new OperationStreamListener(resource, listener, closure, outstream,
                                    nsIWebDAVOperationListener::GET);
    if (!osl)
        return NS_ERROR_OUT_OF_MEMORY;
    return CallQueryInterface(osl, observer);
}

Here is the call graph for this function:

nsresult NS_WD_NewGetToStringOperationRequestObserver ( nsIWebDAVResource resource,
nsIWebDAVOperationListener listener,
nsISupports *  closure,
nsIStreamListener **  streamListener 
)

Definition at line 580 of file nsOperationStreamListeners.cpp.

{
    nsCOMPtr<nsIRequestObserver> osl = 
        new GetToStringStreamListener(resource, listener, closure);
    if (!osl)
        return NS_ERROR_OUT_OF_MEMORY;
    return CallQueryInterface(osl, streamListener);
}

Here is the call graph for this function:

nsresult NS_WD_NewOperationStreamListener ( nsIWebDAVResource resource,
nsIWebDAVOperationListener listener,
nsISupports *  closure,
PRUint32  operation,
nsIStreamListener **  streamListener 
)

Definition at line 550 of file nsOperationStreamListeners.cpp.

{
    nsCOMPtr<nsIRequestObserver> osl = 
        new OperationStreamListener(resource, listener, closure, nsnull,
                                    operation);
    if (!osl)
        return NS_ERROR_OUT_OF_MEMORY;
    return CallQueryInterface(osl, streamListener);
}

Here is the call graph for this function:

nsIStreamListener* NS_WD_NewPropfindStreamListener ( nsIWebDAVResource resource,
nsIWebDAVOperationListener listener,
nsISupports *  closure,
PRBool  isPropname 
)

Definition at line 533 of file nsOperationStreamListeners.cpp.

{
    return new PropfindStreamListener(resource, listener, closure, isPropname);
}

Here is the caller graph for this function:

nsIStreamListener* NS_WD_NewReportStreamListener ( nsIWebDAVResource resource,
nsIWebDAVOperationListener listener,
nsISupports *  closure 
)

Definition at line 542 of file nsOperationStreamListeners.cpp.

{
    return new ReportStreamListener(resource, listener, closure);
}