Back to index

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

#include <nsDialogParamBlock.h>

Inheritance diagram for nsDialogParamBlock:
Inheritance graph
[legend]
Collaboration diagram for nsDialogParamBlock:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 nsDialogParamBlock ()
virtual ~nsDialogParamBlock ()
PRInt32 GetInt (in PRInt32 inIndex)
 Get or set an interger to pass.
void SetInt (in PRInt32 inIndex, in PRInt32 inInt)
void SetNumberStrings (in PRInt32 inNumStrings)
 Set the maximum number of strings to pass.
wstring GetString (in PRInt32 inIndex)
 Get or set an string to pass.
void SetString (in PRInt32 inIndex, in wstring inString)

Public Attributes

attribute nsIMutableArray objects
 A place where you can store an nsIMutableArray to pass nsISupports.

Private Types

enum  { kNumInts = 8, kNumStrings = 16 }

Private Member Functions

nsresult InBounds (PRInt32 inIndex, PRInt32 inMax)

Private Attributes

PRInt32 mInt [kNumInts]
PRInt32 mNumStrings
nsStringmString
nsCOMPtr< nsIMutableArraymObjects

Detailed Description

Definition at line 51 of file nsDialogParamBlock.h.


Member Enumeration Documentation

anonymous enum [private]
Enumerator:
kNumInts 
kNumStrings 

Definition at line 62 of file nsDialogParamBlock.h.

{kNumInts = 8, kNumStrings = 16};

Constructor & Destructor Documentation

Definition at line 44 of file nsDialogParamBlock.cpp.

                                       : mNumStrings(0), mString(NULL)
{
  for(PRInt32 i = 0; i < kNumInts; i++)
    mInt[i] = 0;
}

Definition at line 50 of file nsDialogParamBlock.cpp.

{
  delete [] mString;
}

Member Function Documentation

PRInt32 nsIDialogParamBlock::GetInt ( in PRInt32  inIndex) [inherited]

Get or set an interger to pass.

Index must be in the range 0..7

Here is the caller graph for this function:

wstring nsIDialogParamBlock::GetString ( in PRInt32  inIndex) [inherited]

Get or set an string to pass.

Index starts at 0

nsresult nsDialogParamBlock::InBounds ( PRInt32  inIndex,
PRInt32  inMax 
) [inline, private]

Definition at line 64 of file nsDialogParamBlock.h.

                                                    {
    return inIndex >= 0 && inIndex < inMax ? NS_OK : NS_ERROR_ILLEGAL_VALUE;
  }
void nsIDialogParamBlock::SetInt ( in PRInt32  inIndex,
in PRInt32  inInt 
) [inherited]
void nsIDialogParamBlock::SetNumberStrings ( in PRInt32  inNumStrings) [inherited]

Set the maximum number of strings to pass.

Default is 16. Use before setting any string (If you want to change it from the default).

void nsIDialogParamBlock::SetString ( in PRInt32  inIndex,
in wstring  inString 
) [inherited]

Member Data Documentation

Definition at line 68 of file nsDialogParamBlock.h.

Definition at line 69 of file nsDialogParamBlock.h.

Definition at line 71 of file nsDialogParamBlock.h.

Definition at line 70 of file nsDialogParamBlock.h.

A place where you can store an nsIMutableArray to pass nsISupports.

Definition at line 68 of file nsIDialogParamBlock.idl.


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