LLInventoryFilter Class Reference

#include <llfolderview.h>

Collaboration diagram for LLInventoryFilter:

Collaboration graph
[legend]

List of all members.

Public Types

enum  e_folder_show { SHOW_ALL_FOLDERS, SHOW_NON_EMPTY_FOLDERS, SHOW_NO_FOLDERS }
enum  e_filter_behavior { FILTER_NONE, FILTER_RESTART, FILTER_LESS_RESTRICTIVE, FILTER_MORE_RESTRICTIVE }
typedef enum
LLInventoryFilter::e_folder_show 
EFolderShow
typedef enum
LLInventoryFilter::e_filter_behavior 
EFilterBehavior

Public Member Functions

 LLInventoryFilter (const LLString &name)
virtual ~LLInventoryFilter ()
void setFilterTypes (U32 types)
U32 getFilterTypes () const
void setFilterSubString (const LLString &string)
const LLString getFilterSubString (BOOL trim=FALSE)
void setFilterPermissions (PermissionMask perms)
PermissionMask getFilterPermissions () const
void setDateRange (U32 min_date, U32 max_date)
void setDateRangeLastLogoff (BOOL sl)
U32 getMinDate () const
U32 getMaxDate () const
void setHoursAgo (U32 hours)
U32 getHoursAgo () const
void setShowFolderState (EFolderShow state)
EFolderShow getShowFolderState ()
void setSortOrder (U32 order)
U32 getSortOrder ()
BOOL check (LLFolderViewItem *item)
std::string::size_type getStringMatchOffset () const
BOOL isActive ()
BOOL isNotDefault ()
BOOL isModified ()
BOOL isModifiedAndClear ()
BOOL isSinceLogoff ()
void clearModified ()
const LLString getName () const
LLString getFilterText ()
void setFilterCount (S32 count)
S32 getFilterCount ()
void decrementFilterCount ()
void markDefault ()
void resetDefault ()
BOOL isFilterWith (LLInventoryType::EType t)
S32 getCurrentGeneration () const
S32 getMinRequiredGeneration () const
S32 getMustPassGeneration () const
void setModified (EFilterBehavior behavior=FILTER_RESTART)
void toLLSD (LLSD &data)
void fromLLSD (LLSD &data)

Static Public Attributes

static const U32 SO_DATE = 1
static const U32 SO_FOLDERS_BY_NAME = 2
static const U32 SO_SYSTEM_FOLDERS_TO_TOP = 4

Protected Attributes

filter_ops mFilterOps
filter_ops mDefaultFilterOps
std::string::size_type mSubStringMatchOffset
LLString mFilterSubString
U32 mOrder
const LLString mName
S32 mFilterGeneration
S32 mMustPassGeneration
S32 mMinRequiredGeneration
S32 mFilterCount
S32 mNextFilterGeneration
EFilterBehavior mFilterBehavior

Private Attributes

U32 mLastLogoff
BOOL mModified
BOOL mNeedTextRebuild
LLString mFilterText

Classes

struct  filter_ops


Detailed Description

Definition at line 167 of file llfolderview.h.


Member Typedef Documentation


Member Enumeration Documentation

Enumerator:
SHOW_ALL_FOLDERS 
SHOW_NON_EMPTY_FOLDERS 
SHOW_NO_FOLDERS 

Definition at line 170 of file llfolderview.h.

Enumerator:
FILTER_NONE 
FILTER_RESTART 
FILTER_LESS_RESTRICTIVE 
FILTER_MORE_RESTRICTIVE 

Definition at line 177 of file llfolderview.h.


Constructor & Destructor Documentation

LLInventoryFilter::LLInventoryFilter ( const LLString name  ) 

LLInventoryFilter::~LLInventoryFilter (  )  [virtual]

Definition at line 4521 of file llfolderview.cpp.


Member Function Documentation

void LLInventoryFilter::setFilterTypes ( U32  types  ) 

Definition at line 4590 of file llfolderview.cpp.

References FILTER_LESS_RESTRICTIVE, FILTER_MORE_RESTRICTIVE, FILTER_RESTART, mFilterOps, LLInventoryFilter::filter_ops::mFilterTypes, and setModified().

Referenced by fromLLSD(), and LLInventoryPanel::setFilterTypes().

Here is the call graph for this function:

Here is the caller graph for this function:

U32 LLInventoryFilter::getFilterTypes (  )  const [inline]

Definition at line 193 of file llfolderview.h.

References mFilterOps, and LLInventoryFilter::filter_ops::mFilterTypes.

Referenced by LLFolderView::getFilterTypes(), toLLSD(), and LLInventoryViewFinder::updateElementsFromFilter().

Here is the caller graph for this function:

void LLInventoryFilter::setFilterSubString ( const LLString string  ) 

Definition at line 4618 of file llfolderview.cpp.

References FILTER_LESS_RESTRICTIVE, FILTER_MORE_RESTRICTIVE, FILTER_RESTART, mFilterSubString, setModified(), LLStringBase< char >::toUpper(), and LLStringBase< char >::trimHead().

Referenced by fromLLSD(), and LLInventoryPanel::setFilterSubString().

Here is the call graph for this function:

Here is the caller graph for this function:

const LLString LLInventoryFilter::getFilterSubString ( BOOL  trim = FALSE  ) 

Definition at line 4547 of file llfolderview.cpp.

References mFilterSubString.

Referenced by LLFolderView::getFilterSubString(), toLLSD(), and LLInventoryViewFinder::updateElementsFromFilter().

Here is the caller graph for this function:

void LLInventoryFilter::setFilterPermissions ( PermissionMask  perms  ) 

Definition at line 4645 of file llfolderview.cpp.

References FILTER_LESS_RESTRICTIVE, FILTER_MORE_RESTRICTIVE, FILTER_RESTART, mFilterOps, LLInventoryFilter::filter_ops::mPermissions, and setModified().

Referenced by fromLLSD(), LLInventoryPanel::setFilterPermMask(), and LLFolderView::setFilterPermMask().

Here is the call graph for this function:

Here is the caller graph for this function:

PermissionMask LLInventoryFilter::getFilterPermissions (  )  const [inline]

Definition at line 199 of file llfolderview.h.

References mFilterOps, and LLInventoryFilter::filter_ops::mPermissions.

Referenced by LLFolderView::getFilterPermissions(), and toLLSD().

Here is the caller graph for this function:

void LLInventoryFilter::setDateRange ( U32  min_date,
U32  max_date 
)

Definition at line 4670 of file llfolderview.cpp.

References llmax(), mFilterOps, LLInventoryFilter::filter_ops::mHoursAgo, LLInventoryFilter::filter_ops::mMaxDate, LLInventoryFilter::filter_ops::mMinDate, and setModified().

Referenced by fromLLSD(), and setDateRangeLastLogoff().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLInventoryFilter::setDateRangeLastLogoff ( BOOL  sl  ) 

Definition at line 4685 of file llfolderview.cpp.

References isSinceLogoff(), mLastLogoff, setDateRange(), setModified(), and U32_MAX.

Referenced by fromLLSD(), and LLInventoryPanel::setSinceLogoff().

Here is the call graph for this function:

Here is the caller graph for this function:

U32 LLInventoryFilter::getMinDate (  )  const [inline]

Definition at line 203 of file llfolderview.h.

References mFilterOps, and LLInventoryFilter::filter_ops::mMinDate.

Referenced by toLLSD().

Here is the caller graph for this function:

U32 LLInventoryFilter::getMaxDate (  )  const [inline]

Definition at line 204 of file llfolderview.h.

References mFilterOps, and LLInventoryFilter::filter_ops::mMaxDate.

Referenced by toLLSD().

Here is the caller graph for this function:

void LLInventoryFilter::setHoursAgo ( U32  hours  ) 

U32 LLInventoryFilter::getHoursAgo (  )  const [inline]

Definition at line 207 of file llfolderview.h.

References mFilterOps, and LLInventoryFilter::filter_ops::mHoursAgo.

Referenced by toLLSD(), and LLInventoryViewFinder::updateElementsFromFilter().

Here is the caller graph for this function:

void LLInventoryFilter::setShowFolderState ( EFolderShow  state  ) 

Definition at line 4728 of file llfolderview.cpp.

References FILTER_LESS_RESTRICTIVE, FILTER_MORE_RESTRICTIVE, mFilterOps, LLInventoryFilter::filter_ops::mShowFolderState, setModified(), SHOW_ALL_FOLDERS, and SHOW_NON_EMPTY_FOLDERS.

Referenced by fromLLSD(), LLPanelInventory::reset(), and LLInventoryPanel::setShowFolderState().

Here is the call graph for this function:

Here is the caller graph for this function:

EFolderShow LLInventoryFilter::getShowFolderState (  )  [inline]

void LLInventoryFilter::setSortOrder ( U32  order  ) 

Definition at line 4750 of file llfolderview.cpp.

References mOrder, and setModified().

Referenced by fromLLSD(), and LLInventoryPanel::setSortOrder().

Here is the call graph for this function:

Here is the caller graph for this function:

U32 LLInventoryFilter::getSortOrder (  )  [inline]

Definition at line 213 of file llfolderview.h.

References mOrder.

Referenced by LLInventoryPanel::postBuild(), and toLLSD().

Here is the caller graph for this function:

BOOL LLInventoryFilter::check ( LLFolderViewItem item  ) 

std::string::size_type LLInventoryFilter::getStringMatchOffset (  )  const

Definition at line 4552 of file llfolderview.cpp.

References mSubStringMatchOffset.

Referenced by LLFolderViewItem::filter().

Here is the caller graph for this function:

BOOL LLInventoryFilter::isActive ( void   ) 

BOOL LLInventoryFilter::isNotDefault (  ) 

BOOL LLInventoryFilter::isModified (  ) 

Definition at line 4578 of file llfolderview.cpp.

References mModified.

Referenced by LLInventoryPanel::setSortOrder().

Here is the caller graph for this function:

BOOL LLInventoryFilter::isModifiedAndClear (  ) 

Definition at line 4583 of file llfolderview.cpp.

References FALSE, and mModified.

BOOL LLInventoryFilter::isSinceLogoff (  ) 

void LLInventoryFilter::clearModified (  )  [inline]

Definition at line 222 of file llfolderview.h.

References FALSE, FILTER_NONE, mFilterBehavior, and mModified.

Referenced by LLFolderView::doIdle().

Here is the caller graph for this function:

const LLString LLInventoryFilter::getName ( void   )  const [inline]

Definition at line 223 of file llfolderview.h.

References mName.

Referenced by LLInventoryView::init(), LLInventoryViewFinder::updateElementsFromFilter(), and LLInventoryView::~LLInventoryView().

Here is the caller graph for this function:

LLString LLInventoryFilter::getFilterText (  ) 

void LLInventoryFilter::setFilterCount ( S32  count  )  [inline]

Definition at line 226 of file llfolderview.h.

References mFilterCount.

Referenced by LLFolderView::filter().

Here is the caller graph for this function:

S32 LLInventoryFilter::getFilterCount (  )  [inline]

Definition at line 227 of file llfolderview.h.

References mFilterCount.

Referenced by LLFolderViewFolder::filter().

Here is the caller graph for this function:

void LLInventoryFilter::decrementFilterCount (  )  [inline]

Definition at line 228 of file llfolderview.h.

References mFilterCount.

Referenced by LLFolderViewItem::filter().

Here is the caller graph for this function:

void LLInventoryFilter::markDefault (  ) 

Definition at line 4759 of file llfolderview.cpp.

References mDefaultFilterOps, and mFilterOps.

Referenced by LLInventoryView::init(), LLFloaterLandmark::LLFloaterLandmark(), LLFloaterTexturePicker::LLFloaterTexturePicker(), and LLInventoryFilter().

Here is the caller graph for this function:

void LLInventoryFilter::resetDefault (  ) 

Definition at line 4764 of file llfolderview.cpp.

References mDefaultFilterOps, mFilterOps, and setModified().

Referenced by LLResetFilter::handleEvent().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLInventoryFilter::isFilterWith ( LLInventoryType::EType  t  ) 

Definition at line 4817 of file llfolderview.cpp.

References mFilterOps, and LLInventoryFilter::filter_ops::mFilterTypes.

Referenced by getFilterText().

Here is the caller graph for this function:

S32 LLInventoryFilter::getCurrentGeneration (  )  const [inline]

S32 LLInventoryFilter::getMinRequiredGeneration (  )  const [inline]

S32 LLInventoryFilter::getMustPassGeneration (  )  const [inline]

Definition at line 237 of file llfolderview.h.

References mMustPassGeneration.

Referenced by LLFolderView::draw(), and LLFolderViewFolder::filter().

Here is the caller graph for this function:

void LLInventoryFilter::setModified ( EFilterBehavior  behavior = FILTER_RESTART  ) 

void LLInventoryFilter::toLLSD ( LLSD data  ) 

Definition at line 4992 of file llfolderview.cpp.

References getFilterPermissions(), getFilterSubString(), getFilterTypes(), getHoursAgo(), getMaxDate(), getMinDate(), getShowFolderState(), getSortOrder(), and isSinceLogoff().

Referenced by LLInventoryView::~LLInventoryView().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLInventoryFilter::fromLLSD ( LLSD data  ) 

Definition at line 5005 of file llfolderview.cpp.

References LLSD::has(), setDateRange(), setDateRangeLastLogoff(), setFilterPermissions(), setFilterSubString(), setFilterTypes(), setHoursAgo(), setShowFolderState(), and setSortOrder().

Referenced by LLInventoryView::init().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

const U32 LLInventoryFilter::SO_DATE = 1 [static]

Definition at line 256 of file llfolderview.h.

Referenced by isNotDefault(), markDefault(), and resetDefault().

std::string::size_type LLInventoryFilter::mSubStringMatchOffset [protected]

Definition at line 257 of file llfolderview.h.

Referenced by check(), getStringMatchOffset(), and LLInventoryFilter().

Definition at line 259 of file llfolderview.h.

Referenced by getSortOrder(), LLInventoryFilter(), and setSortOrder().

Definition at line 260 of file llfolderview.h.

Referenced by getName().

Definition at line 261 of file llfolderview.h.

Referenced by getCurrentGeneration(), LLInventoryFilter(), and setModified().

Definition at line 262 of file llfolderview.h.

Referenced by getMustPassGeneration(), LLInventoryFilter(), and setModified().

Definition at line 263 of file llfolderview.h.

Referenced by getMinRequiredGeneration(), LLInventoryFilter(), and setModified().

Definition at line 265 of file llfolderview.h.

Referenced by LLInventoryFilter(), and setModified().

Definition at line 266 of file llfolderview.h.

Referenced by clearModified(), LLInventoryFilter(), and setModified().

Definition at line 269 of file llfolderview.h.

Referenced by isSinceLogoff(), LLInventoryFilter(), and setDateRangeLastLogoff().

Definition at line 270 of file llfolderview.h.

Referenced by clearModified(), isModified(), isModifiedAndClear(), and setModified().

Definition at line 271 of file llfolderview.h.

Referenced by getFilterText(), and setModified().

Definition at line 272 of file llfolderview.h.

Referenced by getFilterText().


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

Generated on Fri May 16 08:50:12 2008 for SecondLife by  doxygen 1.5.5