summaryrefslogtreecommitdiff
path: root/indra/newview/lllocationhistory.h
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/lllocationhistory.h')
-rw-r--r--indra/newview/lllocationhistory.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/indra/newview/lllocationhistory.h b/indra/newview/lllocationhistory.h
index b6552c12ca..19032686c1 100644
--- a/indra/newview/lllocationhistory.h
+++ b/indra/newview/lllocationhistory.h
@@ -46,6 +46,7 @@ class LLLocationHistory: public LLSingleton<LLLocationHistory>
public:
typedef std::vector<std::string> location_list_t;
typedef boost::function<void()> loaded_callback_t;
+ typedef boost::signals2::signal<void()> loaded_signal_t;
LLLocationHistory();
@@ -54,7 +55,7 @@ public:
size_t getItemCount() const { return mItems.size(); }
const location_list_t& getItems() const { return mItems; }
bool getMatchingItems(std::string substring, location_list_t& result) const;
- void setLoadedCallback(loaded_callback_t cb) { mLoadedCallback = cb; }
+ boost::signals2::connection setLoadedCallback(loaded_callback_t cb) { return mLoadedSignal.connect(cb); }
void save() const;
void load();
@@ -63,7 +64,7 @@ public:
private:
std::vector<std::string> mItems;
std::string mFilename; /// File to store the history to.
- loaded_callback_t mLoadedCallback;
+ loaded_signal_t mLoadedSignal;
};
#endif