LLFloaterNetwork2080 Class Reference

Network2080 floater. More...

#include <llfloaterproject.h>

Inheritance diagram for LLFloaterNetwork2080:

Inheritance graph
Collaboration diagram for LLFloaterNetwork2080:

Collaboration graph
List of all members.

Public Member Functions

 LLFloaterNetwork2080 ()
virtual ~LLFloaterNetwork2080 ()
virtual void onClose (bool app_quitting)
 Hide when user closes the list.
void addNode (S32 parent, LLNetwork2080Bridge *bridge)
 Adds an item to the tree.
void show ()
void doIdle ()
 Idle function This needs to be periodically called so that the tree redraws.
void requestRoot ()
 Request list of root categories.
void requestChildren (S32 parent_id)
 Request list of children of a cateogry.
void setWhiteboardText (const LLString &text)
 Set the whiteboard text.
void setQueueButtonsStatus (bool status)
 Set the enabled/disabled status of the buttons on the whiteboard.
LLString buildURL (const LLString &baseurl, S32 id, bool send_key=false)
 Builds a query URL.
void doSelectedPageCommand (const LLString &baseurl)
 Load the results for the query generated from the baseurl from the current selection.

Static Public Member Functions

static void toggle (void *)
static void idle (void *user_data)
static void selectionCallback (const std::deque< LLFolderViewItem * > &items, BOOL user_action, void *data)
 Selection callback.
static void onClickQueue (void *userdata)
static void onClickExitQueue (void *userdata)
static void onClickMyInfo (void *userdata)
static void onClickNotecard (void *userdata)
static void onClickQueueStatus (void *userdata)
static bool compare (LLInventorySort *self, LLFolderViewItem *a, LLFolderViewItem *b)
 Comparator for tree nodes Compares the nodes by getSortOrder().
static void viewerCommCallback (LLString &data, LLViewerCircuit &circuit, void *userdata)

Private Attributes

LLString mPassword
S32 mSelectedID
U32 mNodeCount

Detailed Description

Network2080 floater.

Definition at line 249 of file llfloaterproject.h.

Constructor & Destructor Documentation

LLFloaterNetwork2080::LLFloaterNetwork2080 (  ) 

Definition at line 339 of file llfloaterproject.cpp.

References LLView::addChild(), LLCallbackList::addFunction(), LLUICtrlFactory::buildFloater(), LLPanel::childSetAction(), compare(), FALSE, LLFolderView::getFilter(), LLNetwork2080Bridge::getRandomID(), LLView::getRect(), LLUICtrlFactory::getScrollableContainerByName(), LLFolderViewFolder::getSortFunction(), LLControlGroup::getString(), LLUICtrlFactory::getTextEditorByName(), gIdleCallbacks, gSavedPerAccountSettings, gUICtrlFactory, gViewerCommunication, idle(), LLInventoryFilter::markDefault(), mNodeCount, mPassword, mScroller, mSelectedID, mTree, mWhiteboard, NULL, onClickExitQueue(), onClickMyInfo(), onClickNotecard(), onClickQueue(), onClickQueueStatus(), LLViewerCommunication::registerExtension(), requestRoot(), selectionCallback(), LLFolderView::setAllowMultiSelect(), LLInventorySort::setComparisonFunction(), LLView::setFollowsAll(), setQueueButtonsStatus(), LLFolderView::setScrollContainer(), LLScrollableContainerView::setScrolledView(), LLFolderView::setSelectCallback(), LLInventoryFilter::setShowFolderState(), LLFolderView::setSortOrder(), LLInventoryFilter::setSortOrder(), LLFloater::setVisible(), LLInventoryFilter::SHOW_ALL_FOLDERS, LLInventoryFilter::SO_DATE, and viewerCommCallback().

LLFloaterNetwork2080::~LLFloaterNetwork2080 (  )  [virtual]

Definition at line 384 of file llfloaterproject.cpp.

References LLCallbackList::deleteFunction(), gIdleCallbacks, idle(), llendl, and llinfos.

Member Function Documentation

void LLFloaterNetwork2080::addNode ( S32  parent,
LLNetwork2080Bridge bridge 

Adds an item to the tree.

parent Parent ID for this item. 0 for root level.
id Idenitifer for this item
name Name that will appear in the list
has_children true if there are items under this one

Definition at line 463 of file llfloaterproject.cpp.

References LLFolderViewFolder::addToFolder(), compare(), FALSE, LLNetwork2080Bridge::getIcon(), LLNetwork2080Bridge::getID(), LLFolderView::getItemByID(), LLFolderViewItem::getListener(), LLFolderViewItem::getName(), LLNetwork2080Bridge::getName(), LLFolderViewFolder::getSortFunction(), llendl, llinfos, llwarns, LLNetwork2080Bridge::makeID(), mNodeCount, mTree, NULL, LLFolderViewFolder::resort(), S32, LLInventorySort::setComparisonFunction(), LLNetwork2080FolderBridge::setLoaded(), LLFolderViewFolder::setOpen(), LLNetwork2080Bridge::setSortOrder(), LLInventoryFilter::SO_FOLDERS_BY_NAME, LLInventoryFilter::SO_SYSTEM_FOLDERS_TO_TOP, and LLFolderViewFolder::sortBy().

Referenced by LLHTTPFetchTree::result().

LLString LLFloaterNetwork2080::buildURL ( const LLString baseurl,
S32  id,
bool  send_key = false 

Builds a query URL.

baseurl Base URL for the query
id Resource ID
Send avatar's key if true

Definition at line 600 of file llfloaterproject.cpp.

References gAgent, LLAgent::getID(), LLUUID::isNull(), llendl, llwarns, and mPassword.

Referenced by doSelectedPageCommand().

bool LLFloaterNetwork2080::compare ( LLInventorySort self,
LLFolderViewItem a,
LLFolderViewItem b 
) [static]

Comparator for tree nodes Compares the nodes by getSortOrder().

self LLInventorySort object that's being used internally by the tree. This contains the sort settings for the tree.
a Tree node
b Tree node
Whether a > b

Definition at line 676 of file llfloaterproject.cpp.

References a, b, LLNetwork2080Bridge::getSortOrder(), llendl, and llwarns.

Referenced by addNode(), and LLFloaterNetwork2080().

void LLFloaterNetwork2080::doIdle (  ) 

Idle function This needs to be periodically called so that the tree redraws.

Definition at line 400 of file llfloaterproject.cpp.

References LLFolderViewItem::arrangeFromRoot(), LLView::getVisible(), and mTree.

void LLFloaterNetwork2080::doSelectedPageCommand ( const LLString baseurl  ) 

Load the results for the query generated from the baseurl from the current selection.

baseurl Base URL for the query

Definition at line 622 of file llfloaterproject.cpp.

References buildURL(), f, LLHTTPClient::get(), llendl, llinfos, mSelectedID, and setWhiteboardText().

Referenced by onClickExitQueue(), onClickMyInfo(), onClickNotecard(), onClickQueue(), and onClickQueueStatus().

void LLFloaterNetwork2080::idle ( void user_data  )  [static]

Definition at line 391 of file llfloaterproject.cpp.

Referenced by LLFloaterNetwork2080(), and ~LLFloaterNetwork2080().

void LLFloaterNetwork2080::onClickExitQueue ( void userdata  )  [static]

Definition at line 648 of file llfloaterproject.cpp.

References doSelectedPageCommand(), and EXIT_QUEUE_URL.

Referenced by LLFloaterNetwork2080().

void LLFloaterNetwork2080::onClickMyInfo ( void userdata  )  [static]

Definition at line 656 of file llfloaterproject.cpp.

References doSelectedPageCommand(), and MY_INFO_URL.

Referenced by LLFloaterNetwork2080().

void LLFloaterNetwork2080::onClickNotecard ( void userdata  )  [static]

Definition at line 663 of file llfloaterproject.cpp.

References doSelectedPageCommand(), and NOTECARD_URL.

Referenced by LLFloaterNetwork2080().

void LLFloaterNetwork2080::onClickQueue ( void userdata  )  [static]

Definition at line 635 of file llfloaterproject.cpp.

References LLViewerWindow::alertXml(), doSelectedPageCommand(), gViewerWindow, mPassword, and QUEUE_URL.

Referenced by LLFloaterNetwork2080().

void LLFloaterNetwork2080::onClickQueueStatus ( void userdata  )  [static]

Definition at line 669 of file llfloaterproject.cpp.

References doSelectedPageCommand(), and PLAYABLE_PAGE_URL.

Referenced by LLFloaterNetwork2080().

virtual void LLFloaterNetwork2080::onClose ( bool  app_quitting  )  [inline, virtual]

Hide when user closes the list.

Reimplemented from LLFloater.

Definition at line 260 of file llfloaterproject.h.

References FALSE, and LLFloater::setVisible().

void LLFloaterNetwork2080::requestChildren ( S32  parent_id  ) 

Request list of children of a cateogry.

parent_id ID of the item whose children are being requested

Definition at line 538 of file llfloaterproject.cpp.

References f, LLHTTPClient::get(), LLNetwork2080FolderBridge::getChildrenURL(), LLFolderView::getItemByID(), LLFolderViewItem::getListener(), LLNetwork2080FolderBridge::hasChildren(), LLNetwork2080FolderBridge::isLoaded(), LLNetwork2080FolderBridge::isLoading(), llendl, llinfos, llwarns, LLNetwork2080Bridge::makeID(), mTree, and LLNetwork2080FolderBridge::setLoading().

Referenced by LLNetwork2080FolderBridge::openItem().

void LLFloaterNetwork2080::requestRoot (  ) 

Request list of root categories.

Definition at line 530 of file llfloaterproject.cpp.

References LLFolderView::deleteAllChildren(), f, LLHTTPClient::get(), llendl, llinfos, mTree, and ROOT_URL.

Referenced by LLFloaterNetwork2080().

void LLFloaterNetwork2080::selectionCallback ( const std::deque< LLFolderViewItem * > &  items,
BOOL  user_action,
void data 
) [static]

Selection callback.

items List of selected items
user_action Whether the user caused this callback to be called
data Pointer to floater

Definition at line 412 of file llfloaterproject.cpp.

References DG_INCLUDE_WHITEBOARD, f, LLHTTPClient::get(), LLNetwork2080Bridge::getID(), LLFolderViewItem::getListener(), LLNetwork2080Bridge::getQueueButtonsEnabled(), LLNetwork2080Bridge::getURL(), llendl, llinfos, llwarns, mSelectedID, setQueueButtonsStatus(), and setWhiteboardText().

Referenced by LLFloaterNetwork2080().

void LLFloaterNetwork2080::setQueueButtonsStatus ( bool  status  ) 

Set the enabled/disabled status of the buttons on the whiteboard.

status Whether the buttons are enabled

Definition at line 591 of file llfloaterproject.cpp.

References LLPanel::childSetEnabled().

Referenced by LLFloaterNetwork2080(), and selectionCallback().

void LLFloaterNetwork2080::setWhiteboardText ( const LLString text  ) 

Set the whiteboard text.

text Text to set

Definition at line 586 of file llfloaterproject.cpp.

References mWhiteboard, and LLTextEditor::setText().

Referenced by doSelectedPageCommand(), LLHTTPFetchContent::result(), and selectionCallback().

void LLFloaterNetwork2080::show (  ) 

Definition at line 524 of file llfloaterproject.cpp.

References LLFloater::open().

Referenced by LLPanelLogin::handleKeyHere(), and toggle().

void LLFloaterNetwork2080::toggle ( void  )  [static]

Definition at line 447 of file llfloaterproject.cpp.

References LLFloater::close(), LLView::getVisible(), gFloaterProject, llendl, llinfos, and show().

Referenced by LLShowFloater::handleEvent().

void LLFloaterNetwork2080::viewerCommCallback ( LLString data,
LLViewerCircuit circuit,
void userdata 
) [static]

Definition at line 697 of file llfloaterproject.cpp.

References gSavedPerAccountSettings, llendl, llinfos, LLViewerCircuit::sendReply(), and LLControlGroup::setString().

Referenced by LLFloaterNetwork2080().

Member Data Documentation

U32 LLFloaterNetwork2080::mNodeCount [private]

Definition at line 354 of file llfloaterproject.h.

Referenced by addNode(), and LLFloaterNetwork2080().

LLString LLFloaterNetwork2080::mPassword [private]

Definition at line 351 of file llfloaterproject.h.

Referenced by buildURL(), LLFloaterNetwork2080(), and onClickQueue().

LLFolderViewFolder* LLFloaterNetwork2080::mRoot [private]

Definition at line 348 of file llfloaterproject.h.

LLScrollableContainerView* LLFloaterNetwork2080::mScroller [private]

Definition at line 349 of file llfloaterproject.h.

Referenced by LLFloaterNetwork2080().

S32 LLFloaterNetwork2080::mSelectedID [private]

Definition at line 353 of file llfloaterproject.h.

Referenced by doSelectedPageCommand(), LLFloaterNetwork2080(), and selectionCallback().

LLFolderView* LLFloaterNetwork2080::mTree [private]

Definition at line 347 of file llfloaterproject.h.

Referenced by addNode(), doIdle(), LLFloaterNetwork2080(), requestChildren(), and requestRoot().

LLTextEditor* LLFloaterNetwork2080::mWhiteboard [private]

Definition at line 350 of file llfloaterproject.h.

Referenced by LLFloaterNetwork2080(), and setWhiteboardText().

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