summaryrefslogtreecommitdiff
path: root/shill_config.h
blob: 822909972eb0c8d9ca19a6d8983e00368500d4c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Copyright (c) 2011 The Chromium OS 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 SHILL_CONFIG_
#define SHILL_CONFIG_

#include <string>

namespace shill {

class Config {
 public:
  static const char kShillDefaultPrefsDir[];

  Config();
  virtual ~Config();

  void UseFlimflamStorageDirs() { use_flimflam_ = true; }

  std::string RunDirectory();
  std::string StorageDirectory();
  std::string UserStorageDirectoryFormat();

 private:
  static const char kDefaultRunDirectory[];
  static const char kDefaultStorageDirectory[];
  static const char kDefaultUserStorageFormat[];
  static const char kFlimflamStorageDirectory[];
  static const char kFlimflamUserStorageFormat[];

  bool use_flimflam_;
};

}  // namespace shill

#endif  // SHILL_CONFIG_