Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Protected Attributes
nsPrivateTextRangeList Class Reference

#include <nsPrivateTextRange.h>

Inheritance diagram for nsPrivateTextRangeList:
Inheritance graph
Collaboration diagram for nsPrivateTextRangeList:
Collaboration graph

List of all members.

Public Member Functions

 nsPrivateTextRangeList (PRUint16 aLength, nsIPrivateTextRange **aList)
virtual ~nsPrivateTextRangeList (void)
NS_IMETHOD GetLength (PRUint16 *aLength)
NS_IMETHOD Item (PRUint16 aIndex, nsIPrivateTextRange **aReturn)

Protected Attributes

PRUint16 mLength
nsIPrivateTextRange ** mList

Detailed Description

Definition at line 67 of file nsPrivateTextRange.h.

Constructor & Destructor Documentation

Definition at line 91 of file nsPrivateTextRange.cpp.

:      mLength(aLength), mList(aList)
        if(! aList) {
           NS_WARN_IF_FALSE(!aLength, "Geez, this deosn't make sense");
           mLength = 0;


Definition at line 102 of file nsPrivateTextRange.cpp.

       int    i;
        if(mList) {
              delete [] mList;


Member Function Documentation

Implements nsIPrivateTextRangeList.

Definition at line 115 of file nsPrivateTextRange.cpp.

       *aLength = mLength;
       return NS_OK;
NS_METHOD nsPrivateTextRangeList::Item ( PRUint16  aIndex,
nsIPrivateTextRange **  aReturn 
) [virtual]

Implements nsIPrivateTextRangeList.

Definition at line 121 of file nsPrivateTextRange.cpp.

       if (aIndex>=mLength) {
              *aReturn = nsnull;
              return NS_ERROR_FAILURE;

       *aReturn = mList[aIndex];

       return NS_OK;

Member Data Documentation

Definition at line 81 of file nsPrivateTextRange.h.

Definition at line 82 of file nsPrivateTextRange.h.

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