summaryrefslogtreecommitdiff
path: root/indra/llcommon
diff options
context:
space:
mode:
authorAndrew Meadows <andrew@lindenlab.com>2009-04-01 17:11:37 +0000
committerAndrew Meadows <andrew@lindenlab.com>2009-04-01 17:11:37 +0000
commit3d4e04b5569952629f68c52c9309b5364e16136c (patch)
tree16bf58109074959695886f7125170c37b095cd90 /indra/llcommon
parenta8525c90b9ab0544583585cf887388b64ee1323f (diff)
QAR-1284 ip-takedown tools simulator work is ready for merge
svn merge -r115879:116020 svn+ssh://svn.lindenlab.com/svn/linden/branches/dmcat/dmcat-5 no conflicts
Diffstat (limited to 'indra/llcommon')
-rw-r--r--indra/llcommon/lllivefile.cpp9
-rw-r--r--indra/llcommon/lllivefile.h2
2 files changed, 11 insertions, 0 deletions
diff --git a/indra/llcommon/lllivefile.cpp b/indra/llcommon/lllivefile.cpp
index 810ae706a7..b6f458cb3e 100644
--- a/indra/llcommon/lllivefile.cpp
+++ b/indra/llcommon/lllivefile.cpp
@@ -167,3 +167,12 @@ void LLLiveFile::addToEventTimer()
impl.mEventTimer = new LiveFileEventTimer(*this, impl.mRefreshPeriod);
}
+void LLLiveFile::setRefreshPeriod(F32 seconds)
+{
+ if (seconds < 0.f)
+ {
+ seconds = -seconds;
+ }
+ impl.mRefreshPeriod = seconds;
+}
+
diff --git a/indra/llcommon/lllivefile.h b/indra/llcommon/lllivefile.h
index fddf006229..a3a9cf49ab 100644
--- a/indra/llcommon/lllivefile.h
+++ b/indra/llcommon/lllivefile.h
@@ -52,6 +52,8 @@ public:
// Normally, just calling checkAndReload() is enough. In some cases
// though, you may need to let the live file periodically check itself.
+ void setRefreshPeriod(F32 seconds);
+
protected:
virtual void loadFile() = 0; // Implement this to load your file if it changed