blob: 1f3d1817c2a49ea0404a8516b5704eee1bc57b40 [file] [log] [blame] [edit]
// 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_UBUNTU_FILE_CONFIG_STORE_H_
#define LIBWEAVE_EXAMPLES_UBUNTU_FILE_CONFIG_STORE_H_
#include <map>
#include <string>
#include <vector>
#include <weave/provider/config_store.h>
namespace weave {
namespace examples {
class FileConfigStore : public provider::ConfigStore {
public:
explicit FileConfigStore(bool disable_security);
bool LoadDefaults(Settings* settings) override;
std::string LoadSettings() override;
void SaveSettings(const std::string& settings) override;
private:
bool disable_security_{false};
};
} // namespace examples
} // namespace weave
#endif // LIBWEAVE_EXAMPLES_UBUNTU_FILE_CONFIG_STORE_H_