From d6b7e61918d43339f5360700348ceafb8b4d21bb Mon Sep 17 00:00:00 2001 From: Inusaito Sayori Date: Wed, 31 Jul 2013 02:55:06 -0400 Subject: [PATCH] Make mSearchURL a SignaledType and add setSearchURLCallback for setting callbacks on it. --- indra/newview/lfsimfeaturehandler.cpp | 5 +++++ indra/newview/lfsimfeaturehandler.h | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/indra/newview/lfsimfeaturehandler.cpp b/indra/newview/lfsimfeaturehandler.cpp index 5613da8f5..f27c90773 100644 --- a/indra/newview/lfsimfeaturehandler.cpp +++ b/indra/newview/lfsimfeaturehandler.cpp @@ -68,3 +68,8 @@ boost::signals2::connection LFSimFeatureHandler::setSupportsExportCallback(const return mSupportsExport.connect(slot); } +boost::signals2::connection LFSimFeatureHandler::setSearchURLCallback(const boost::signals2::signal::slot_type& slot) +{ + return mSearchURL.connect(slot); +} + diff --git a/indra/newview/lfsimfeaturehandler.h b/indra/newview/lfsimfeaturehandler.h index b105a636b..83acdd95a 100644 --- a/indra/newview/lfsimfeaturehandler.h +++ b/indra/newview/lfsimfeaturehandler.h @@ -58,6 +58,7 @@ public: // Connection setters boost::signals2::connection setSupportsExportCallback(const boost::signals2::signal::slot_type& slot); + boost::signals2::connection setSearchURLCallback(const boost::signals2::signal::slot_type& slot); // Accessors bool simSupportsExport() const { return mSupportsExport; } @@ -68,7 +69,7 @@ private: // SignaledTypes SignaledType mSupportsExport; std::string mMapServerURL; - std::string mSearchURL; + SignaledType mSearchURL; }; #endif //LFSIMFEATUREHANDLER_H