]> pilppa.org Git - libplp.git/blobdiff - src/DeviceConfig.cc
add read_interval DeviceConfig methods
[libplp.git] / src / DeviceConfig.cc
index 38941f3cb508dc52d5abaee2c4c46e7d91c5f133..66fe863be28c17766269f3203c88807d46ade757 100644 (file)
@@ -18,7 +18,8 @@
 using namespace std;
 using namespace plp;
 
-string DeviceConfig::store_base_dir    = DEFAULT_STORAGE_BASE_DIR;
+string DeviceConfig::store_base_dir            = DEFAULT_STORAGE_BASE_DIR;
+long DeviceConfig::read_interval_seconds       = 600;
 
 ConfigHandle::ConfigHandle(uci_context *ctx_param,
                        uci_package *pkg_param,
@@ -202,6 +203,14 @@ void DeviceConfig::set_base_dir_name(string store_param) {
        }
 }
 
+long DeviceConfig::get_read_interval_seconds() {
+       return read_interval_seconds;
+}
+
+void DeviceConfig::set_read_interval_seconds(long seconds_param) {
+       read_interval_seconds   = seconds_param;
+}
+
 string DeviceConfig::get_base_dir_name() {
        return store_base_dir;
 }