blob: 861a70ec21aabd1e5258eeb3c177eb5c48c06e54 [file] [log] [blame]
Darin Petkov4f5e5492012-04-18 14:05:55 +02001// Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
Paul Stewart75897df2011-04-27 09:05:53 -07002// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef SHILL_CONFIG_
6#define SHILL_CONFIG_
7
Chris Masone2ae797d2011-08-23 20:41:00 -07008#include <string>
9
Paul Stewart75897df2011-04-27 09:05:53 -070010namespace shill {
11
12class Config {
13 public:
Paul Stewart75897df2011-04-27 09:05:53 -070014 static const char kShillDefaultPrefsDir[];
15
Chris Masone2ae797d2011-08-23 20:41:00 -070016 Config();
17 virtual ~Config();
18
Darin Petkov4f5e5492012-04-18 14:05:55 +020019 void UseFlimflamDirs() { use_flimflam_ = true; }
Chris Masone2ae797d2011-08-23 20:41:00 -070020
Chris Masoneb9c00592011-10-06 13:10:39 -070021 virtual std::string GetRunDirectory();
22 virtual std::string GetStorageDirectory();
23 virtual std::string GetUserStorageDirectoryFormat();
Chris Masone2ae797d2011-08-23 20:41:00 -070024
Paul Stewart75897df2011-04-27 09:05:53 -070025 private:
Chris Masone2ae797d2011-08-23 20:41:00 -070026 static const char kDefaultRunDirectory[];
27 static const char kDefaultStorageDirectory[];
28 static const char kDefaultUserStorageFormat[];
Darin Petkov4f5e5492012-04-18 14:05:55 +020029 static const char kFlimflamRunDirectory[];
Chris Masone2ae797d2011-08-23 20:41:00 -070030 static const char kFlimflamStorageDirectory[];
31 static const char kFlimflamUserStorageFormat[];
32
33 bool use_flimflam_;
Paul Stewart75897df2011-04-27 09:05:53 -070034};
35
36} // namespace shill
37
Chris Masone2ae797d2011-08-23 20:41:00 -070038#endif // SHILL_CONFIG_