blob: 0753e1ebadb829f1f69f7e1a405a9ccf3a19e698 [file] [log] [blame]
Deepak Kodihalli20ed79e2017-07-25 05:48:58 -05001#pragma once
2
Lei YU3afad182023-07-18 13:41:30 +08003#include "config.h"
4
George Liudc746c02022-09-02 11:10:55 +08005#include "utils.hpp"
6
Deepak Kodihalli20ed79e2017-07-25 05:48:58 -05007#include <sdbusplus/bus.hpp>
George Liuc6d33972020-06-22 10:35:29 +08008
Gunnar Millsab4cc6a2018-09-14 14:42:39 -05009#include <string>
Deepak Kodihalli20ed79e2017-07-25 05:48:58 -050010
11namespace settings
12{
13
Deepak Kodihalli20ed79e2017-07-25 05:48:58 -050014constexpr auto root = "/";
Deepak Kodihalli20ed79e2017-07-25 05:48:58 -050015constexpr auto timeSyncIntf = "xyz.openbmc_project.Time.Synchronization";
16
17/** @class Objects
18 * @brief Fetch paths of settings D-bus objects of interest upon construction
19 */
20struct Objects
21{
Gunnar Millsab4cc6a2018-09-14 14:42:39 -050022 public:
23 /** @brief Constructor - fetch settings objects
24 *
25 * @param[in] bus - The D-bus bus object
26 */
Pavithra Barithaya864e1732023-04-11 04:30:23 -050027 explicit Objects(sdbusplus::bus_t& /*bus*/);
Brad Bishop4e845392018-12-18 18:13:12 -050028 Objects() = delete;
Brad Bishop4e845392018-12-18 18:13:12 -050029 Objects(const Objects&) = delete;
30 Objects& operator=(const Objects&) = delete;
Gunnar Millsab4cc6a2018-09-14 14:42:39 -050031 Objects(Objects&&) = default;
Pavithra Barithaya864e1732023-04-11 04:30:23 -050032 Objects& operator=(Objects&&) = delete;
Gunnar Millsab4cc6a2018-09-14 14:42:39 -050033 ~Objects() = default;
Deepak Kodihalli20ed79e2017-07-25 05:48:58 -050034
Gunnar Millsab4cc6a2018-09-14 14:42:39 -050035 /** @brief time sync method settings object */
Pavithra Barithayab2670242023-11-30 04:22:08 -060036 phosphor::time::utils::Path timeSyncMethod = DEFAULT_TIME_SYNC_OBJECT_PATH;
Deepak Kodihalli20ed79e2017-07-25 05:48:58 -050037};
38
39} // namespace settings