summaryrefslogtreecommitdiff
path: root/indra/newview/lldaycyclemanager.h
diff options
context:
space:
mode:
authorVadim ProductEngine <vsavchuk@productengine.com>2011-06-01 18:26:36 +0300
committerVadim ProductEngine <vsavchuk@productengine.com>2011-06-01 18:26:36 +0300
commit995a006b58f2be1d7236b32be3570b6d7250013b (patch)
tree475c135fca3d5c7ff89ecb70ead0a0a4ecccc3da /indra/newview/lldaycyclemanager.h
parent6e2c05a512f498fe10aee307308e0365536f9819 (diff)
STORM-1253 WIP Update UI when a day cycle gets added or deleted.
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