blob: b7e18bfff392016db62d31640a697c49b859c1c9 [file] [log] [blame]
Deepak Kodihalli20ed79e2017-07-25 05:48:58 -05001#pragma once
2
George Liudc746c02022-09-02 11:10:55 +08003#include "utils.hpp"
4
Deepak Kodihalli20ed79e2017-07-25 05:48:58 -05005#include <sdbusplus/bus.hpp>
George Liuc6d33972020-06-22 10:35:29 +08006
Gunnar Millsab4cc6a2018-09-14 14:42:39 -05007#include <string>
Deepak Kodihalli20ed79e2017-07-25 05:48:58 -05008
9namespace settings
10{
11
George Liudc746c02022-09-02 11:10:55 +080012using namespace phosphor::time::utils;
Deepak Kodihalli20ed79e2017-07-25 05:48:58 -050013
14constexpr 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 */
36 Path timeSyncMethod;
Deepak Kodihalli20ed79e2017-07-25 05:48:58 -050037};
38
39} // namespace settings