summaryrefslogtreecommitdiff
path: root/src/components/include/policy/policy_regular/policy/policy_settings.h
blob: def9fca05a77a770df30e7a4c321ba16e4f8fc41 (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
38
39
40
41
42
#ifndef SRC_COMPONENTS_INCLUDE_POLICY_POLICY_SETTINGS_H_
#define SRC_COMPONENTS_INCLUDE_POLICY_POLICY_SETTINGS_H_
#include <string>
#include <stdint.h>

namespace policy {
class PolicySettings {
 public:
  /**
   * @brief Should Policy be turned off? (Library not loaded)
   * @return Flag
   */
  virtual bool enable_policy() const = 0;
  /*
   * @brief Path to preloaded policy file
   */
  virtual const std::string& preloaded_pt_file() const = 0;

  /**
    * @brief Returns application storage path
    */
  virtual const std::string& app_storage_folder() const = 0;

  virtual uint16_t attempts_to_open_policy_db() const = 0;

  virtual uint16_t open_attempt_timeout_ms() const = 0;

  /**
   * @brief Path to policies snapshot file
   * @return file path
   */
  virtual const std::string& policies_snapshot_file_name() const = 0;

  /**
    * @brief Returns system files folder path
    */
  virtual const std::string& system_files_path() const = 0;

  virtual ~PolicySettings() {}
};
}  // namespace policy
#endif  // SRC_COMPONENTS_INCLUDE_POLICY_POLICY_SETTINGS_H_