blob: a19a228a30f01f1a3e0e294ef69665b492cd593b [file] [log] [blame]
Lei YU415b9642017-02-09 11:37:26 +08001#pragma once
2
3#include "types.hpp"
4
5namespace phosphor
6{
7namespace time
8{
9
10class PropertyChangeListner
11{
Gunnar Millsab4cc6a2018-09-14 14:42:39 -050012 public:
13 virtual ~PropertyChangeListner()
14 {
15 }
Lei YU415b9642017-02-09 11:37:26 +080016
Gunnar Millsab4cc6a2018-09-14 14:42:39 -050017 /** @brief Notified on time mode is changed */
18 virtual void onModeChanged(Mode mode) = 0;
Lei YU415b9642017-02-09 11:37:26 +080019
Gunnar Millsab4cc6a2018-09-14 14:42:39 -050020 /** @brief Notified on time owner is changed */
21 virtual void onOwnerChanged(Owner owner) = 0;
Lei YU415b9642017-02-09 11:37:26 +080022};
23
Gunnar Millsab4cc6a2018-09-14 14:42:39 -050024} // namespace time
25} // namespace phosphor