1 #pragma once 2 3 #include "config.h" 4 5 #include "utils.hpp" 6 7 #include <sdbusplus/bus.hpp> 8 9 #include <string> 10 11 namespace settings 12 { 13 14 using namespace phosphor::time::utils; 15 16 constexpr auto root = "/"; 17 constexpr auto timeSyncIntf = "xyz.openbmc_project.Time.Synchronization"; 18 19 /** @class Objects 20 * @brief Fetch paths of settings D-bus objects of interest upon construction 21 */ 22 struct Objects 23 { 24 public: 25 /** @brief Constructor - fetch settings objects 26 * 27 * @param[in] bus - The D-bus bus object 28 */ 29 explicit Objects(sdbusplus::bus_t& /*bus*/); 30 Objects() = delete; 31 Objects(const Objects&) = delete; 32 Objects& operator=(const Objects&) = delete; 33 Objects(Objects&&) = default; 34 Objects& operator=(Objects&&) = delete; 35 ~Objects() = default; 36 37 /** @brief time sync method settings object */ 38 Path timeSyncMethod = DEFAULT_TIME_SYNC_OBJECT_PATH; 39 }; 40 41 } // namespace settings 42