diff OrthancServer/ServerIndex.cpp @ 1249:40725595aaf0

Plugins can get/set global properties to save their configuration
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 15 Dec 2014 10:20:33 +0100
parents 32fcc5dc7562
children cf5bd2dc3b7a
line wrap: on
line diff
--- a/OrthancServer/ServerIndex.cpp	Tue Dec 09 12:17:59 2014 +0100
+++ b/OrthancServer/ServerIndex.cpp	Mon Dec 15 10:20:33 2014 +0100
@@ -1959,6 +1959,14 @@
   }
 
 
+  void ServerIndex::SetGlobalProperty(GlobalProperty property,
+                                      const std::string& value)
+  {
+    boost::mutex::scoped_lock lock(mutex_);
+    db_.SetGlobalProperty(property, value);
+  }
+
+
   std::string ServerIndex::GetGlobalProperty(GlobalProperty property,
                                              const std::string& defaultValue)
   {