summaryrefslogtreecommitdiff
path: root/indra/newview/llinventoryfilter.h
diff options
context:
space:
mode:
authorLoren Shih <seraph@lindenlab.com>2009-12-04 11:42:17 -0500
committerLoren Shih <seraph@lindenlab.com>2009-12-04 11:42:17 -0500
commit9b89325cc9a02c3305eb32148cc8de7dccf8808b (patch)
treeb2374379bfc917861880262ecd8bee16c251904d /indra/newview/llinventoryfilter.h
parent71cd24b4799f8bc0bed2665cca103c39fec3a965 (diff)
EXT-3124 : Add lookup for finding all linked items to an item
Filter now works correctly. Made some naming changes (e.g. setFilterType -> setFilterObjectType) so that what you choose to filter by is more explicit. --HG-- branch : avatar-pipeline
Diffstat (limited to 'indra/newview/llinventoryfilter.h')
-rw-r--r--indra/newview/llinventoryfilter.h21
1 files changed, 11 insertions, 10 deletions
diff --git a/indra/newview/llinventoryfilter.h b/indra/newview/llinventoryfilter.h
index 47407eb86c..d65fb8f27c 100644
--- a/indra/newview/llinventoryfilter.h
+++ b/indra/newview/llinventoryfilter.h
@@ -58,10 +58,10 @@ public:
enum EFilterType
{
- FILTERTYPE_NONE,
- FILTERTYPE_ITEM, // normal default search-by-item-type
- FILTERTYPE_CATEGORY, // search by folder type
- FILTERTYPE_UUID // find the object with UUID and any links to it
+ FILTERTYPE_NONE = 0,
+ FILTERTYPE_OBJECT = 1, // normal default search-by-object-type
+ FILTERTYPE_CATEGORY = 2, // search by folder type
+ FILTERTYPE_UUID = 4 // find the object with UUID and any links to it
};
// REFACTOR: Change this to an enum.
@@ -82,10 +82,10 @@ public:
// +-------------------------------------------------------------------+
// + Parameters
// +-------------------------------------------------------------------+
- void setFilterTypes(U64 types, EFilterType filter_type = FILTERTYPE_ITEM);
- U32 getFilterTypes() const;
- BOOL isFilterWith(LLInventoryType::EType t) const;
-
+ void setFilterObjectTypes(U64 types);
+ U32 getFilterObjectTypes() const;
+ BOOL isFilterObjectTypesWith(LLInventoryType::EType t) const;
+ void setFilterCategoryTypes(U64 types);
void setFilterUUID(const LLUUID &object_id);
void setFilterSubString(const std::string& string);
@@ -153,9 +153,10 @@ private:
struct FilterOps
{
FilterOps();
- EFilterType mFilterType;
+ U32 mFilterTypes;
- U64 mFilterObjectTypes; // For _ITEM or _CATEGORY
+ U64 mFilterObjectTypes; // For _ITEM
+ U64 mFilterCategoryTypes; // For _ITEM
LLUUID mFilterUUID; // for UUID
time_t mMinDate;