summaryrefslogtreecommitdiff
path: root/indra/newview/llpanelexperiencelisteditor.h
diff options
context:
space:
mode:
authordolphin <dolphin@lindenlab.com>2014-05-13 14:52:10 -0700
committerdolphin <dolphin@lindenlab.com>2014-05-13 14:52:10 -0700
commit6766ef06d44b1991bd6ef3f699354f98651679b4 (patch)
tree1ac2d2eb804cecc50bf47e7409f958ed0c87e6d0 /indra/newview/llpanelexperiencelisteditor.h
parent1b704efb17a2278588146760d189daaffe56d35d (diff)
ACME-1474: Prevent the viewer from trying to add or remove the default experience.
Diffstat (limited to 'indra/newview/llpanelexperiencelisteditor.h')
-rw-r--r--indra/newview/llpanelexperiencelisteditor.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/indra/newview/llpanelexperiencelisteditor.h b/indra/newview/llpanelexperiencelisteditor.h
index b361748d29..189d81f897 100644
--- a/indra/newview/llpanelexperiencelisteditor.h
+++ b/indra/newview/llpanelexperiencelisteditor.h
@@ -41,8 +41,8 @@ public:
typedef boost::signals2::signal<void (const LLUUID&) > list_changed_signal_t;
// filter function for experiences, return true if the experience should be hidden.
- typedef boost::function<bool (const LLSD&)> filter_function;
- typedef std::vector<filter_function> filter_list;
+ typedef boost::function<bool (const LLSD&)> experience_function;
+ typedef std::vector<experience_function> filter_list;
typedef LLHandle<LLFloaterExperiencePicker> PickerHandle;
LLPanelExperienceListEditor();
~LLPanelExperienceListEditor();
@@ -64,7 +64,8 @@ public:
void refreshExperienceCounter(std::string string_name);
- void addFilter(filter_function func){mFilters.push_back(func);}
+ void addFilter(experience_function func){mFilters.push_back(func);}
+ void setStickyFunction(experience_function func){mSticky = func;}
private:
void onItems();
@@ -89,6 +90,7 @@ private:
list_changed_signal_t mRemovedCallback;
LLUUID mKey;
bool mReadonly;
+ experience_function mSticky;
};