Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions
nsMIMEInputStream.h File Reference
#include "nsIMIMEInputStream.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define NS_MIMEINPUTSTREAM_CLASSNAME   "nsMIMEInputStream"
 The MIME stream separates headers and a datastream.
#define NS_MIMEINPUTSTREAM_CONTRACTID   "@mozilla.org/network/mime-input-stream;1"
#define NS_MIMEINPUTSTREAM_CID

Functions

NS_METHOD nsMIMEInputStreamConstructor (nsISupports *outer, REFNSIID iid, void **result)
 Factory method used by do_CreateInstance.

Define Documentation

Value:
{ /* 58a1c31c-1dd2-11b2-a3f6-d36949d48268 */         \
    0x58a1c31c,                                      \
    0x1dd2,                                          \
    0x11b2,                                          \
    {0xa3, 0xf6, 0xd3, 0x69, 0x49, 0xd4, 0x82, 0x68} \
}

Definition at line 51 of file nsMIMEInputStream.h.

#define NS_MIMEINPUTSTREAM_CLASSNAME   "nsMIMEInputStream"

The MIME stream separates headers and a datastream.

It also allows automatic creation of the content-length header.

Definition at line 49 of file nsMIMEInputStream.h.

#define NS_MIMEINPUTSTREAM_CONTRACTID   "@mozilla.org/network/mime-input-stream;1"

Definition at line 50 of file nsMIMEInputStream.h.


Function Documentation

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: