| // Copyright 2015 The Weave Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| #ifndef LIBWEAVE_EXAMPLES_PROVIDER_FILE_CONFIG_STORE_H_ |
| #define LIBWEAVE_EXAMPLES_PROVIDER_FILE_CONFIG_STORE_H_ |
| #include <weave/provider/config_store.h> |
| class FileConfigStore : public provider::ConfigStore { |
| explicit FileConfigStore(bool disable_security); |
| bool LoadDefaults(Settings* settings) override; |
| std::string LoadSettings() override; |
| void SaveSettings(const std::string& settings) override; |
| bool disable_security_{false}; |
| #endif // LIBWEAVE_EXAMPLES_PROVIDER_FILE_CONFIG_STORE_H_ |