summaryrefslogtreecommitdiff
path: root/orkbasecxx/Config.cpp
diff options
context:
space:
mode:
authorGerald Begumisa <ben_g@users.sourceforge.net>2007-12-20 02:53:14 +0000
committerGerald Begumisa <ben_g@users.sourceforge.net>2007-12-20 02:53:14 +0000
commit0e9d7cb80716bd22e0e5234af0a7d3ba4d5a3091 (patch)
treec37832192a74edd2c0805cfd6b6e33d054ef1e23 /orkbasecxx/Config.cpp
parentb4f73de93002e79ccdf6ee62cd91a533c0f7ba1f (diff)
Added a new feature that allows orkaudio to filter recordings by the remote or local party. If the configuration parameter <PartyFilter> is filled with a CSV list of numbers or ranges of numbers such as <PartyFilter>300,450-490,4000-6000</PartyFilter>, orkaudio will only produce recordings for cases where the remote or local parties match a specified number or fall within the specified number range (for the case where a range has been specified).
git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@516 09dcff7a-b715-0410-9601-b79a96267cd0
Diffstat (limited to 'orkbasecxx/Config.cpp')
-rw-r--r--orkbasecxx/Config.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/orkbasecxx/Config.cpp b/orkbasecxx/Config.cpp
index 27adb30..d86ce3c 100644
--- a/orkbasecxx/Config.cpp
+++ b/orkbasecxx/Config.cpp
@@ -67,6 +67,7 @@ Config::Config()
m_lookBackRecording = LOOKBACK_RECORDING_DEFAULT;
m_allowAutomaticRecording = ALLOW_AUTOMATIC_RECORDING_DEFAULT;
m_captureFileSizeLimitKb = CAPTURE_FILE_SIZE_LIMIT_KB_DEFAULT;
+ m_partyFilter.clear();
}
void Config::Define(Serializer* s)
@@ -138,6 +139,7 @@ void Config::Define(Serializer* s)
s->BoolValue(LOOKBACK_RECORDING_PARAM, m_lookBackRecording);
s->BoolValue(ALLOW_AUTOMATIC_RECORDING_PARAM, m_allowAutomaticRecording); // only valid in non-lookback mode
s->IntValue(CAPTURE_FILE_SIZE_LIMIT_KB_PARAM, m_captureFileSizeLimitKb);
+ s->CsvValue(PARTY_FILTER_PARAM, m_partyFilter);
}
void Config::Validate()