summaryrefslogtreecommitdiff
path: root/indra/newview/lldaycyclemanager.h
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/lldaycyclemanager.h')
-rw-r--r--indra/newview/lldaycyclemanager.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/newview/lldaycyclemanager.h b/indra/newview/lldaycyclemanager.h
index b33c0a0d39..0d4a474ac6 100644
--- a/indra/newview/lldaycyclemanager.h
+++ b/indra/newview/lldaycyclemanager.h
@@ -44,6 +44,7 @@ class LLDayCycleManager : public LLSingleton<LLDayCycleManager>
public:
typedef std::map<std::string, LLWLDayCycle> dc_map_t;
+ typedef boost::signals2::signal<void()> modify_signal_t;
const dc_map_t& getPresets();
bool getPreset(const std::string name, LLWLDayCycle& day_cycle) const;
@@ -53,6 +54,9 @@ public:
bool savePreset(const std::string& name, const LLSD& data);
bool deletePreset(const std::string& name);
+ /// Emitted when a preset gets added or deleted.
+ boost::signals2::connection setModifyCallback(const modify_signal_t::slot_type& cb);
+
private:
friend class LLSingleton<LLDayCycleManager>;
/*virtual*/ void initSingleton();
@@ -66,6 +70,7 @@ private:
static std::string getUserDir();
dc_map_t mDayCycleMap;
+ modify_signal_t mModifySignal;
};
#endif // LL_LLDAYCYCLEMANAGER_H