Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Functions
nsMIMEInputStream.cpp File Reference
#include "nsCOMPtr.h"
#include "nsComponentManagerUtils.h"
#include "nsIMultiplexInputStream.h"
#include "nsIMIMEInputStream.h"
#include "nsISeekableStream.h"
#include "nsIStringStream.h"

Go to the source code of this file.

Classes

class  nsMIMEInputStream
 The MIME stream separates headers and a datastream. More...
struct  nsMIMEInputStream::ReadSegmentsState

Defines

#define INITSTREAMS

Functions

 NS_IMPL_THREADSAFE_ISUPPORTS3 (nsMIMEInputStream, nsIMIMEInputStream, nsIInputStream, nsISeekableStream) nsMIMEInputStream
NS_METHOD nsMIMEInputStreamConstructor (nsISupports *outer, REFNSIID iid, void **result)
 Factory method used by do_CreateInstance.

Class Documentation

struct nsMIMEInputStream::ReadSegmentsState

Definition at line 69 of file nsMIMEInputStream.cpp.

Collaboration diagram for nsMIMEInputStream::ReadSegmentsState:
Class Members
void * mClosure
nsIInputStream * mThisStream
nsWriteSegmentFun mWriter

Define Documentation

Value:
if (!mStartedReading) {     \
    InitStreams();          \
}

Definition at line 203 of file nsMIMEInputStream.cpp.


Function Documentation

Definition at line 90 of file nsMIMEInputStream.cpp.

                                     : mAddContentLength(PR_FALSE),
                                         mStartedReading(PR_FALSE)
{
}
NS_METHOD nsMIMEInputStreamConstructor ( nsISupports *  outer,
REFNSIID  iid,
void **  result 
)

Factory method used by do_CreateInstance.

Definition at line 284 of file nsMIMEInputStream.cpp.

{
    *result = nsnull;

    if (outer)
        return NS_ERROR_NO_AGGREGATION;

    nsMIMEInputStream *inst;
    NS_NEWXPCOM(inst, nsMIMEInputStream);
    if (!inst)
        return NS_ERROR_OUT_OF_MEMORY;

    NS_ADDREF(inst);

    nsresult rv = inst->Init();
    if (NS_FAILED(rv)) {
        NS_RELEASE(inst);
        return rv;
    }

    rv = inst->QueryInterface(iid, result);
    NS_RELEASE(inst);

    return rv;
}

Here is the call graph for this function: