LLInventorySort Class Reference

#include <llfolderview.h>

List of all members.

Public Types

typedef bool(*) comparison_function_t (LLInventorySort *self, LLFolderViewItem *a, LLFolderViewItem *b)

Public Member Functions

 LLInventorySort ()
bool updateSort (U32 order)
U32 getSort ()
bool isByDate () const
bool isSystemToTop () const
bool isFoldersByName () const
bool operator() (LLFolderViewItem *a, LLFolderViewItem *b)
void setComparisonFunction (comparison_function_t func)

Static Public Member Functions

static bool compare (LLInventorySort *self, LLFolderViewItem *a, LLFolderViewItem *b)

Private Attributes

comparison_function_t mComparisonFunction
U32 mSortOrder
bool mByDate
bool mSystemToTop
bool mFoldersByName


Detailed Description

Definition at line 285 of file llfolderview.h.


Member Typedef Documentation

typedef bool(*) LLInventorySort::comparison_function_t(LLInventorySort *self, LLFolderViewItem *a, LLFolderViewItem *b)

Definition at line 288 of file llfolderview.h.


Constructor & Destructor Documentation

LLInventorySort::LLInventorySort (  )  [inline]

Definition at line 290 of file llfolderview.h.

References compare(), and setComparisonFunction().


Member Function Documentation

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

Definition at line 4383 of file llfolderview.cpp.

References a, b, LLStringBase< char >::compareDict(), isByDate(), isSystemToTop(), S32, SG_ITEM, and SG_TRASH_FOLDER.

Referenced by LLInventorySort().

U32 LLInventorySort::getSort (  )  [inline]

Definition at line 295 of file llfolderview.h.

References mSortOrder.

bool LLInventorySort::isByDate (  )  const [inline]

Definition at line 297 of file llfolderview.h.

References mByDate.

Referenced by compare().

bool LLInventorySort::isFoldersByName (  )  const [inline]

Definition at line 299 of file llfolderview.h.

References mFoldersByName.

bool LLInventorySort::isSystemToTop (  )  const [inline]

Definition at line 298 of file llfolderview.h.

References mSystemToTop.

Referenced by compare().

bool LLInventorySort::operator() ( LLFolderViewItem a,
LLFolderViewItem b 
)

Definition at line 4378 of file llfolderview.cpp.

References a, b, and mComparisonFunction.

void LLInventorySort::setComparisonFunction ( comparison_function_t  func  )  [inline]

Definition at line 304 of file llfolderview.h.

References mComparisonFunction.

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

bool LLInventorySort::updateSort ( U32  order  ) 

---------------------------------------------------------------------------- Local function definitions ----------------------------------------------------------------------------

Definition at line 4365 of file llfolderview.cpp.

References mByDate, mFoldersByName, mSortOrder, mSystemToTop, LLInventoryFilter::SO_DATE, LLInventoryFilter::SO_FOLDERS_BY_NAME, and LLInventoryFilter::SO_SYSTEM_FOLDERS_TO_TOP.

Referenced by LLFolderViewFolder::setItemSortOrder(), and LLFolderViewFolder::sortBy().


Member Data Documentation

bool LLInventorySort::mByDate [private]

Definition at line 310 of file llfolderview.h.

Referenced by isByDate(), and updateSort().

comparison_function_t LLInventorySort::mComparisonFunction [private]

Definition at line 307 of file llfolderview.h.

Referenced by operator()(), and setComparisonFunction().

bool LLInventorySort::mFoldersByName [private]

Definition at line 312 of file llfolderview.h.

Referenced by isFoldersByName(), and updateSort().

U32 LLInventorySort::mSortOrder [private]

Definition at line 309 of file llfolderview.h.

Referenced by getSort(), and updateSort().

bool LLInventorySort::mSystemToTop [private]

Definition at line 311 of file llfolderview.h.

Referenced by isSystemToTop(), and updateSort().


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