Darin Petkov | 4f5e549 | 2012-04-18 14:05:55 +0200 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium OS Authors. All rights reserved. |
Paul Stewart | 75897df | 2011-04-27 09:05:53 -0700 | [diff] [blame] | 2 | // 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 Masone | 2ae797d | 2011-08-23 20:41:00 -0700 | [diff] [blame] | 8 | #include <string> |
| 9 | |
Paul Stewart | 75897df | 2011-04-27 09:05:53 -0700 | [diff] [blame] | 10 | namespace shill { |
| 11 | |
| 12 | class Config { |
| 13 | public: |
Paul Stewart | 75897df | 2011-04-27 09:05:53 -0700 | [diff] [blame] | 14 | static const char kShillDefaultPrefsDir[]; |
| 15 | |
Chris Masone | 2ae797d | 2011-08-23 20:41:00 -0700 | [diff] [blame] | 16 | Config(); |
| 17 | virtual ~Config(); |
| 18 | |
Darin Petkov | 4f5e549 | 2012-04-18 14:05:55 +0200 | [diff] [blame] | 19 | void UseFlimflamDirs() { use_flimflam_ = true; } |
Chris Masone | 2ae797d | 2011-08-23 20:41:00 -0700 | [diff] [blame] | 20 | |
Chris Masone | b9c0059 | 2011-10-06 13:10:39 -0700 | [diff] [blame] | 21 | virtual std::string GetRunDirectory(); |
| 22 | virtual std::string GetStorageDirectory(); |
| 23 | virtual std::string GetUserStorageDirectoryFormat(); |
Chris Masone | 2ae797d | 2011-08-23 20:41:00 -0700 | [diff] [blame] | 24 | |
Paul Stewart | 75897df | 2011-04-27 09:05:53 -0700 | [diff] [blame] | 25 | private: |
Chris Masone | 2ae797d | 2011-08-23 20:41:00 -0700 | [diff] [blame] | 26 | static const char kDefaultRunDirectory[]; |
| 27 | static const char kDefaultStorageDirectory[]; |
| 28 | static const char kDefaultUserStorageFormat[]; |
Darin Petkov | 4f5e549 | 2012-04-18 14:05:55 +0200 | [diff] [blame] | 29 | static const char kFlimflamRunDirectory[]; |
Chris Masone | 2ae797d | 2011-08-23 20:41:00 -0700 | [diff] [blame] | 30 | static const char kFlimflamStorageDirectory[]; |
| 31 | static const char kFlimflamUserStorageFormat[]; |
| 32 | |
| 33 | bool use_flimflam_; |
Paul Stewart | 75897df | 2011-04-27 09:05:53 -0700 | [diff] [blame] | 34 | }; |
| 35 | |
| 36 | } // namespace shill |
| 37 | |
Chris Masone | 2ae797d | 2011-08-23 20:41:00 -0700 | [diff] [blame] | 38 | #endif // SHILL_CONFIG_ |