LLNetwork2080Bridge Class Reference

Bridge for the tree nodes This class defines the behavior of the nodes, and adds members for specific information related to the content of the node. More...

#include <llfloaterproject.h>

Inheritance diagram for LLNetwork2080Bridge:

Inheritance graph
[legend]
Collaboration diagram for LLNetwork2080Bridge:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLNetwork2080Bridge (const U32 id, const LLString &name)
S32 getID () const
 ID of this node This is the identifier assigned by the Netwok2080 backend.
virtual ~LLNetwork2080Bridge (void)
virtual LLFontGL::StyleFlags getLabelStyle () const
virtual LLString getLabelSuffix () const
virtual void showProperties ()
virtual const LLStringgetName () const
virtual const LLStringgetDisplayName () const
virtual PermissionMask getPermissionMask () const
virtual const LLUUIDgetUUID () const
virtual U32 getCreationDate () const
virtual LLViewerImagegetIcon () const
virtual void openItem ()
virtual void previewItem ()
virtual void selectItem ()
virtual BOOL isItemRenameable () const
virtual BOOL renameItem (const LLString &new_name)
virtual BOOL isItemMovable ()
virtual BOOL isItemRemovable ()
virtual BOOL removeItem ()
virtual void removeBatch (LLDynamicArray< LLFolderViewEventListener * > &batch)
virtual void move (LLFolderViewEventListener *parent_listener)
virtual BOOL isItemCopyable () const
virtual BOOL copyToClipboard () const
virtual void cutToClipboard ()
virtual BOOL isClipboardPasteable () const
virtual void pasteFromClipboard ()
virtual void buildContextMenu (LLMenuGL &menu, U32 flags)
virtual void performAction (LLFolderView *folder, LLInventoryModel *model, LLString action)
virtual BOOL isUpToDate () const
 Whether the node is up to date This indicates that the node (and its children) are fully loaded.
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 LLInventoryType::EType getInventoryType () const
virtual BOOL startDrag (EDragAndDropType *type, LLUUID *id)
virtual BOOL dragOrDrop (MASK mask, BOOL drop, EDragAndDropType cargo_type, void *cargo_data)
virtual LLString getChildrenURL () const
 Get the URL to retrieve the children of this node.
virtual LLString getURL () const
 Get the URL to be loaded when this node is selected.
virtual bool getQueueButtonsEnabled () const
 Whether the queue buttons need to be enabled when this node is selected.
void setSortOrder (S32 order)
 Sets the sort order.
S32 getSortOrder () const
 Gets the sort order.

Static Public Member Functions

static LLUUID getRandomID ()
 Generates a random identifier and returns it Used when we want to create a new item, but don't know what ID to give it.
static LLUUID makeID (S32 id)
 Generate an UUID based on a S32 to an UUID form This is done to convert IDs sent by the server This of course is affected by endianess, but it doesn't matter as this is for local use only.

Protected Member Functions

LLInventoryItemfindItem () const

Protected Attributes

U32 mID
LLUUID mUUID
LLString mName
S32 mSortOrder

Detailed Description

Bridge for the tree nodes This class defines the behavior of the nodes, and adds members for specific information related to the content of the node.

Definition at line 44 of file llfloaterproject.h.


Constructor & Destructor Documentation

LLNetwork2080Bridge::LLNetwork2080Bridge ( const U32  id,
const LLString name 
) [inline]

Definition at line 55 of file llfloaterproject.h.

References getRandomID(), makeID(), mID, and mUUID.

virtual LLNetwork2080Bridge::~LLNetwork2080Bridge ( void   )  [inline, virtual]

Definition at line 75 of file llfloaterproject.h.


Member Function Documentation

void LLNetwork2080Bridge::buildContextMenu ( LLMenuGL menu,
U32  flags 
) [virtual]

Implements LLFolderViewEventListener.

Definition at line 330 of file llfloaterproject.cpp.

References llendl, and llinfos.

virtual BOOL LLNetwork2080Bridge::copyToClipboard (  )  const [inline, virtual]

Implements LLFolderViewEventListener.

Definition at line 99 of file llfloaterproject.h.

References FALSE.

void LLNetwork2080Bridge::cutToClipboard (  )  [virtual]

Implements LLFolderViewEventListener.

Definition at line 300 of file llfloaterproject.cpp.

References llendl, and llinfos.

BOOL LLNetwork2080Bridge::dragOrDrop ( MASK  mask,
BOOL  drop,
EDragAndDropType  cargo_type,
void cargo_data 
) [virtual]

Implements LLFolderViewEventListener.

Definition at line 316 of file llfloaterproject.cpp.

References FALSE.

LLInventoryItem* LLNetwork2080Bridge::findItem (  )  const [protected]

virtual LLString LLNetwork2080Bridge::getChildrenURL (  )  const [inline, virtual]

Get the URL to retrieve the children of this node.

Returns:
URL

Reimplemented in LLNetwork2080FolderBridge.

Definition at line 167 of file llfloaterproject.h.

virtual U32 LLNetwork2080Bridge::getCreationDate (  )  const [inline, virtual]

Implements LLFolderViewEventListener.

Definition at line 86 of file llfloaterproject.h.

virtual const LLString& LLNetwork2080Bridge::getDisplayName (  )  const [inline, virtual]

Implements LLFolderViewEventListener.

Definition at line 83 of file llfloaterproject.h.

References mName.

virtual LLViewerImage* LLNetwork2080Bridge::getIcon (  )  const [inline, virtual]

Implements LLFolderViewEventListener.

Reimplemented in LLNetwork2080FolderBridge, LLNetwork2080PlayableContentBridge, and LLNetwork2080PageBridge.

Definition at line 87 of file llfloaterproject.h.

References NULL.

Referenced by LLFloaterNetwork2080::addNode().

S32 LLNetwork2080Bridge::getID (  )  const [inline]

ID of this node This is the identifier assigned by the Netwok2080 backend.

Returns:
ID

Definition at line 73 of file llfloaterproject.h.

References mID.

Referenced by LLFloaterNetwork2080::addNode(), and LLFloaterNetwork2080::selectionCallback().

virtual LLInventoryType::EType LLNetwork2080Bridge::getInventoryType (  )  const [inline, virtual]

Implements LLFolderViewEventListener.

Definition at line 127 of file llfloaterproject.h.

References LLInventoryType::IT_NONE.

virtual LLFontGL::StyleFlags LLNetwork2080Bridge::getLabelStyle (  )  const [inline, virtual]

Implements LLFolderViewEventListener.

Definition at line 77 of file llfloaterproject.h.

References LLFontGL::NORMAL.

virtual LLString LLNetwork2080Bridge::getLabelSuffix (  )  const [inline, virtual]

Implements LLFolderViewEventListener.

Definition at line 78 of file llfloaterproject.h.

References LLStringBase< char >::null.

virtual const LLString& LLNetwork2080Bridge::getName ( void   )  const [inline, virtual]

Implements LLFolderViewEventListener.

Definition at line 82 of file llfloaterproject.h.

References mName.

Referenced by LLFloaterNetwork2080::addNode().

virtual PermissionMask LLNetwork2080Bridge::getPermissionMask (  )  const [inline, virtual]

Implements LLFolderViewEventListener.

Definition at line 84 of file llfloaterproject.h.

References PERM_NONE.

virtual bool LLNetwork2080Bridge::getQueueButtonsEnabled (  )  const [inline, virtual]

Whether the queue buttons need to be enabled when this node is selected.

Returns:
true if buttons need to be enabled

Reimplemented in LLNetwork2080PlayableContentBridge.

Definition at line 179 of file llfloaterproject.h.

References FALSE.

Referenced by LLFloaterNetwork2080::selectionCallback().

static LLUUID LLNetwork2080Bridge::getRandomID (  )  [inline, static]

Generates a random identifier and returns it Used when we want to create a new item, but don't know what ID to give it.

Returns:
Generated UUID

Definition at line 139 of file llfloaterproject.h.

References LLUUID::generate().

Referenced by LLFloaterNetwork2080::LLFloaterNetwork2080(), and LLNetwork2080Bridge().

S32 LLNetwork2080Bridge::getSortOrder (  )  const [inline]

Gets the sort order.

Returns:
Sort order

Definition at line 191 of file llfloaterproject.h.

References mSortOrder.

Referenced by LLFloaterNetwork2080::compare().

virtual LLString LLNetwork2080Bridge::getURL (  )  const [inline, virtual]

Get the URL to be loaded when this node is selected.

Returns:
URL

Reimplemented in LLNetwork2080PlayableContentBridge, and LLNetwork2080PageBridge.

Definition at line 173 of file llfloaterproject.h.

Referenced by LLFloaterNetwork2080::selectionCallback().

virtual const LLUUID& LLNetwork2080Bridge::getUUID (  )  const [inline, virtual]

Implements LLFolderViewEventListener.

Definition at line 85 of file llfloaterproject.h.

References mUUID.

virtual BOOL LLNetwork2080Bridge::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

Implements LLFolderViewEventListener.

Reimplemented in LLNetwork2080FolderBridge.

Definition at line 125 of file llfloaterproject.h.

References FALSE.

virtual BOOL LLNetwork2080Bridge::isClipboardPasteable (  )  const [inline, virtual]

Implements LLFolderViewEventListener.

Definition at line 101 of file llfloaterproject.h.

References FALSE.

virtual BOOL LLNetwork2080Bridge::isItemCopyable (  )  const [inline, virtual]

Implements LLFolderViewEventListener.

Definition at line 98 of file llfloaterproject.h.

References FALSE.

virtual BOOL LLNetwork2080Bridge::isItemMovable ( void   )  [inline, virtual]

Implements LLFolderViewEventListener.

Definition at line 93 of file llfloaterproject.h.

References FALSE.

virtual BOOL LLNetwork2080Bridge::isItemRemovable ( void   )  [inline, virtual]

Implements LLFolderViewEventListener.

Definition at line 94 of file llfloaterproject.h.

References FALSE.

virtual BOOL LLNetwork2080Bridge::isItemRenameable (  )  const [inline, virtual]

Implements LLFolderViewEventListener.

Definition at line 91 of file llfloaterproject.h.

References FALSE.

virtual BOOL LLNetwork2080Bridge::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

Implements LLFolderViewEventListener.

Reimplemented in LLNetwork2080FolderBridge.

Definition at line 114 of file llfloaterproject.h.

References TRUE.

static LLUUID LLNetwork2080Bridge::makeID ( S32  id  )  [inline, static]

Generate an UUID based on a S32 to an UUID form This is done to convert IDs sent by the server This of course is affected by endianess, but it doesn't matter as this is for local use only.

Parameters:
id ID to generate UUID from
Returns:
Generated UUID

Definition at line 153 of file llfloaterproject.h.

References LLUUID::mData.

Referenced by LLFloaterNetwork2080::addNode(), LLNetwork2080Bridge(), and LLFloaterNetwork2080::requestChildren().

void LLNetwork2080Bridge::move ( LLFolderViewEventListener parent_listener  )  [virtual]

Implements LLFolderViewEventListener.

Definition at line 295 of file llfloaterproject.cpp.

References llendl, and llinfos.

void LLNetwork2080Bridge::openItem (  )  [virtual]

Implements LLFolderViewEventListener.

Reimplemented in LLNetwork2080FolderBridge.

Definition at line 251 of file llfloaterproject.cpp.

References llendl, and llinfos.

Referenced by previewItem().

void LLNetwork2080Bridge::pasteFromClipboard (  )  [virtual]

Implements LLFolderViewEventListener.

Definition at line 305 of file llfloaterproject.cpp.

References llendl, and llinfos.

void LLNetwork2080Bridge::performAction ( LLFolderView folder,
LLInventoryModel model,
LLString  action 
) [virtual]

Reimplemented from LLFolderViewEventListener.

Definition at line 325 of file llfloaterproject.cpp.

References llendl, and llinfos.

void LLNetwork2080Bridge::previewItem (  )  [virtual]

Implements LLFolderViewEventListener.

Definition at line 270 of file llfloaterproject.cpp.

References llendl, llinfos, and openItem().

void LLNetwork2080Bridge::removeBatch ( LLDynamicArray< LLFolderViewEventListener * > &  batch  )  [virtual]

Implements LLFolderViewEventListener.

Definition at line 290 of file llfloaterproject.cpp.

References llendl, and llinfos.

BOOL LLNetwork2080Bridge::removeItem (  )  [virtual]

Implements LLFolderViewEventListener.

Definition at line 284 of file llfloaterproject.cpp.

References llendl, llinfos, and TRUE.

BOOL LLNetwork2080Bridge::renameItem ( const LLString new_name  )  [virtual]

Implements LLFolderViewEventListener.

Definition at line 277 of file llfloaterproject.cpp.

References FALSE, llendl, and llinfos.

virtual void LLNetwork2080Bridge::selectItem ( void   )  [inline, virtual]

Implements LLFolderViewEventListener.

Definition at line 90 of file llfloaterproject.h.

void LLNetwork2080Bridge::setSortOrder ( S32  order  )  [inline]

Sets the sort order.

Parameters:
order Order

Definition at line 185 of file llfloaterproject.h.

References mSortOrder.

Referenced by LLFloaterNetwork2080::addNode().

virtual void LLNetwork2080Bridge::showProperties ( void   )  [inline, virtual]

Implements LLFolderViewEventListener.

Definition at line 79 of file llfloaterproject.h.

BOOL LLNetwork2080Bridge::startDrag ( EDragAndDropType type,
LLUUID id 
) [virtual]

Implements LLFolderViewEventListener.

Definition at line 310 of file llfloaterproject.cpp.

References FALSE, llendl, and llinfos.


Member Data Documentation

U32 LLNetwork2080Bridge::mID [protected]

Definition at line 47 of file llfloaterproject.h.

Referenced by LLNetwork2080FolderBridge::getChildrenURL(), getID(), LLNetwork2080PageBridge::getURL(), LLNetwork2080PlayableContentBridge::getURL(), LLNetwork2080Bridge(), and LLNetwork2080FolderBridge::openItem().

LLString LLNetwork2080Bridge::mName [protected]

Definition at line 49 of file llfloaterproject.h.

Referenced by getDisplayName(), and getName().

S32 LLNetwork2080Bridge::mSortOrder [protected]

Definition at line 50 of file llfloaterproject.h.

Referenced by getSortOrder(), and setSortOrder().

LLUUID LLNetwork2080Bridge::mUUID [protected]

Definition at line 48 of file llfloaterproject.h.

Referenced by getUUID(), and LLNetwork2080Bridge().


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