Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Private Member Functions | Private Attributes
nsLayoutHistoryState Class Reference
Inheritance diagram for nsLayoutHistoryState:
Inheritance graph
[legend]
Collaboration diagram for nsLayoutHistoryState:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 NS_HIDDEN_ (nsresult) Init()
NS_DECL_ISUPPORTS NS_IMETHOD AddState (const nsCString &aKey, nsPresState *aState)
 Set |aState| as the state object for |aKey|.
NS_IMETHOD GetState (const nsCString &aKey, nsPresState **aState)
 Look up the state object for |aKey|.
NS_IMETHOD RemoveState (const nsCString &aKey)
 Remove the state object for |aKey|.

Private Member Functions

 ~nsLayoutHistoryState ()

Private Attributes

nsClassHashtable
< nsCStringHashKey,
nsPresState
mStates

Detailed Description

Definition at line 44 of file nsLayoutHistoryState.cpp.


Constructor & Destructor Documentation

Definition at line 59 of file nsLayoutHistoryState.cpp.

{}

Member Function Documentation

Set |aState| as the state object for |aKey|.

This transfers_ownership of |aState| to the LayoutHistoryState. It will be freed when RemoveState() is called or when the LayoutHistoryState is destroyed.

Implements nsILayoutHistoryState.

Definition at line 96 of file nsLayoutHistoryState.cpp.

{
  return mStates.Put(aStateKey, aState) ? NS_OK : NS_ERROR_OUT_OF_MEMORY;
}

Here is the call graph for this function:

Look up the state object for |aKey|.

Implements nsILayoutHistoryState.

Definition at line 102 of file nsLayoutHistoryState.cpp.

{
  mStates.Get(aKey, aState);
  return NS_OK;
}

Here is the call graph for this function:

Remove the state object for |aKey|.

Implements nsILayoutHistoryState.

Definition at line 109 of file nsLayoutHistoryState.cpp.

{
  mStates.Remove(aKey);
  return NS_OK;
}

Here is the call graph for this function:


Member Data Documentation

Definition at line 61 of file nsLayoutHistoryState.cpp.


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