Back to index

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

List of all members.

Public Member Functions

virtual nsresult GetData (nsIURI *aURI, nsIChannel *aChannel, nsACString &aContentType, void **aData, PRUint32 *aSize)

Detailed Description

Definition at line 106 of file MailFrame.cpp.

Member Function Documentation

virtual nsresult MailChannelCallback::GetData ( nsIURI aURI,
nsIChannel aChannel,
nsACString &  aContentType,
void **  aData,
PRUint32 aSize 
) [inline, virtual]

Implements GeckoChannelCallback.

Definition at line 109 of file MailFrame.cpp.

        nsCAutoString txt;

        nsCAutoString path;

        long i;
        if (sscanf(path.get(), "//%ld", &i) == 1)
            txt = gSampleMessages[i].mBody;
            return NS_ERROR_FAILURE;

        size_t size = txt.Length();
        *aData = (void *) nsMemory::Alloc(size + 1);
        if (!*aData)
            return NS_ERROR_OUT_OF_MEMORY;
        memset(*aData, 0, size + 1);
        memcpy(*aData, txt.get(), size);
        *aSize = size;
        return NS_OK;

Here is the call graph for this function:

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