diff options
author | Dessie Linden <dessie@lindenlab.com> | 2010-07-13 05:27:27 -0700 |
---|---|---|
committer | Dessie Linden <dessie@lindenlab.com> | 2010-07-13 05:27:27 -0700 |
commit | c201038aba861b1166d367fcf5986e33644ec018 (patch) | |
tree | c9b0379d1936736de93ae3dc2489e54dce96e604 /indra/newview/llinventoryfunctions.h | |
parent | b45271834161018be8c825e96c64d9ef7b67401c (diff) | |
parent | c8602b293517dfb4d5c6658ab235af9fe9932b7e (diff) |
Merged from viewer-release
Diffstat (limited to 'indra/newview/llinventoryfunctions.h')
-rw-r--r-- | indra/newview/llinventoryfunctions.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/indra/newview/llinventoryfunctions.h b/indra/newview/llinventoryfunctions.h index a6d7fcd956..4a7721098d 100644 --- a/indra/newview/llinventoryfunctions.h +++ b/indra/newview/llinventoryfunctions.h @@ -174,6 +174,25 @@ protected: LLAssetType::EType mType; }; +//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +// Class LLIsOfAssetType +// +// Implementation of a LLInventoryCollectFunctor which returns TRUE if +// the item or category is of asset type passed in during construction. +// Link types are treated as links, not as the types they point to. +//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +class LLIsOfAssetType : public LLInventoryCollectFunctor +{ +public: + LLIsOfAssetType(LLAssetType::EType type) : mType(type) {} + virtual ~LLIsOfAssetType() {} + virtual bool operator()(LLInventoryCategory* cat, + LLInventoryItem* item); +protected: + LLAssetType::EType mType; +}; + class LLIsTypeWithPermissions : public LLInventoryCollectFunctor { public: |