Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes | Private Attributes
txResultBuffer Class Reference

#include <txBufferingHandler.h>

Collaboration diagram for txResultBuffer:
Collaboration graph

List of all members.

Public Member Functions

 ~txResultBuffer ()
nsresult addTransaction (txOutputTransaction *aTransaction)
nsresult flushToHandler (txAXMLEventHandler **aHandler)
 Flush the transactions to aHandler.
txOutputTransactiongetLastTransaction ()

Public Attributes

nsString mStringValue

Private Attributes

nsVoidArray mTransactions

Detailed Description

Definition at line 51 of file txBufferingHandler.h.

Constructor & Destructor Documentation

Definition at line 305 of file txBufferingHandler.cpp.

    mTransactions.EnumerateForwards(deleteTransaction, nsnull);

Here is the call graph for this function:

Member Function Documentation

Definition at line 311 of file txBufferingHandler.cpp.

    if (!mTransactions.AppendElement(aTransaction)) {
        return NS_ERROR_OUT_OF_MEMORY;
    return NS_OK;

Flush the transactions to aHandler.

Some handlers create a new handler and replace themselves with the new handler. The pointer that aHandler points to should be updated in that case.

Definition at line 400 of file txBufferingHandler.cpp.

    Holder data = { aHandler };
    mTransactions.EnumerateForwards(flushTransaction, &data);
    return NS_OK;

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 409 of file txBufferingHandler.cpp.

    PRInt32 last = mTransactions.Count() - 1;
    if (last < 0) {
        return nsnull;
    return NS_STATIC_CAST(txOutputTransaction*, mTransactions[last]);

Member Data Documentation

Definition at line 67 of file txBufferingHandler.h.

Definition at line 70 of file txBufferingHandler.h.

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