LLNetwork2080FolderBridge Class Reference

Bridge for folders. More...

#include <llfloaterproject.h>

Inheritance diagram for LLNetwork2080FolderBridge:

Inheritance graph
[legend]
Collaboration diagram for LLNetwork2080FolderBridge:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLNetwork2080FolderBridge (const U32 id, const LLString &name, S32 children)
virtual LLViewerImagegetIcon () const
virtual void openItem ()
virtual LLString getChildrenURL () const
 Get the URL to retrieve the children of this node.
virtual BOOL hasChildren () const
 Whether the node has children Note that this also applies to children that aren't currently loaded. This returning TRUE will result in an expandable node even if there's nothing in the tree under it yet.
virtual BOOL isUpToDate () const
 Whether the node is up to date This indicates that the node (and its children) are fully loaded.
bool isLoaded () const
bool isLoading () const
void setLoading (bool loading)
void setLoaded (bool loaded)

Private Attributes

S32 mChildren
bool mLoaded
bool mLoading

Detailed Description

Bridge for folders.

Definition at line 198 of file llfloaterproject.h.


Constructor & Destructor Documentation

LLNetwork2080FolderBridge::LLNetwork2080FolderBridge ( const U32  id,
const LLString name,
S32  children 
) [inline]

Definition at line 206 of file llfloaterproject.h.


Member Function Documentation

LLString LLNetwork2080FolderBridge::getChildrenURL (  )  const [virtual]

Get the URL to retrieve the children of this node.

Returns:
URL

Reimplemented from LLNetwork2080Bridge.

Definition at line 211 of file llfloaterproject.cpp.

References FOLDER_URL, and LLNetwork2080Bridge::mID.

Referenced by LLFloaterNetwork2080::requestChildren().

LLViewerImage * LLNetwork2080FolderBridge::getIcon (  )  const [virtual]

Reimplemented from LLNetwork2080Bridge.

Definition at line 202 of file llfloaterproject.cpp.

References LLViewerImageList::getImage(), gImageList, MIPMAP_FALSE, LLImageGL::setClamp(), and TRUE.

virtual BOOL LLNetwork2080FolderBridge::hasChildren (  )  const [inline, virtual]

Whether the node has children Note that this also applies to children that aren't currently loaded. This returning TRUE will result in an expandable node even if there's nothing in the tree under it yet.

Note:
This value is only relevant if isUpToDate() is FALSE. In this case the value returned by this function determines whether this node is expandable.
Returns:
Whether the node has children

Reimplemented from LLNetwork2080Bridge.

Definition at line 210 of file llfloaterproject.h.

References mChildren.

Referenced by LLFloaterNetwork2080::requestChildren().

bool LLNetwork2080FolderBridge::isLoaded (  )  const [inline]

Definition at line 213 of file llfloaterproject.h.

References mLoaded.

Referenced by LLFloaterNetwork2080::requestChildren().

bool LLNetwork2080FolderBridge::isLoading (  )  const [inline]

Definition at line 214 of file llfloaterproject.h.

References mLoaded, and mLoading.

Referenced by LLFloaterNetwork2080::requestChildren().

virtual BOOL LLNetwork2080FolderBridge::isUpToDate (  )  const [inline, virtual]

Whether the node is up to date This indicates that the node (and its children) are fully loaded.

Note:
If FALSE, then hasChildren() determines whether the node is expandable. If TRUE, then the presence of visible children in the tree determines whether the node is expandable.
Returns:
Whether the node is up to date

Reimplemented from LLNetwork2080Bridge.

Definition at line 211 of file llfloaterproject.h.

References mLoaded.

void LLNetwork2080FolderBridge::openItem (  )  [virtual]

Reimplemented from LLNetwork2080Bridge.

Definition at line 258 of file llfloaterproject.cpp.

References gFloaterProject, llendl, llinfos, mChildren, LLNetwork2080Bridge::mID, and LLFloaterNetwork2080::requestChildren().

void LLNetwork2080FolderBridge::setLoaded ( bool  loaded  )  [inline]

Definition at line 217 of file llfloaterproject.h.

References mLoaded, and mLoading.

Referenced by LLFloaterNetwork2080::addNode().

void LLNetwork2080FolderBridge::setLoading ( bool  loading  )  [inline]

Definition at line 216 of file llfloaterproject.h.

References mLoading.

Referenced by LLFloaterNetwork2080::requestChildren().


Member Data Documentation

S32 LLNetwork2080FolderBridge::mChildren [private]

Definition at line 201 of file llfloaterproject.h.

Referenced by hasChildren(), and openItem().

bool LLNetwork2080FolderBridge::mLoaded [private]

Definition at line 202 of file llfloaterproject.h.

Referenced by isLoaded(), isLoading(), isUpToDate(), and setLoaded().

bool LLNetwork2080FolderBridge::mLoading [private]

Definition at line 203 of file llfloaterproject.h.

Referenced by isLoading(), setLoaded(), and setLoading().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:32 2010 for Second Life Viewer by  doxygen 1.4.7