Paul Stewart | 0153cf0 | 2014-06-02 11:53:36 -0700 | [diff] [blame] | 1 | // Copyright (c) 2014 The Chromium OS Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
Ben Chan | c45688b | 2014-07-02 23:50:45 -0700 | [diff] [blame] | 5 | #ifndef SHILL_PROPERTY_OBSERVER_INTERFACE_H_ |
| 6 | #define SHILL_PROPERTY_OBSERVER_INTERFACE_H_ |
Paul Stewart | 0153cf0 | 2014-06-02 11:53:36 -0700 | [diff] [blame] | 7 | |
Ben Chan | cc67c52 | 2014-09-03 07:19:18 -0700 | [diff] [blame] | 8 | #include <base/macros.h> |
Paul Stewart | 0153cf0 | 2014-06-02 11:53:36 -0700 | [diff] [blame] | 9 | |
| 10 | namespace shill { |
| 11 | |
| 12 | // An abstract interface for objects that retain a saved copy of |
| 13 | // a property accessor and can report whether that value has changed. |
| 14 | class PropertyObserverInterface { |
| 15 | public: |
| 16 | PropertyObserverInterface() {} |
| 17 | virtual ~PropertyObserverInterface() {} |
| 18 | |
| 19 | // Update the saved value used for comparison. |
| 20 | virtual void Update() = 0; |
| 21 | |
| 22 | private: |
| 23 | DISALLOW_COPY_AND_ASSIGN(PropertyObserverInterface); |
| 24 | }; |
| 25 | |
| 26 | } // namespace shill |
| 27 | |
Ben Chan | c45688b | 2014-07-02 23:50:45 -0700 | [diff] [blame] | 28 | #endif // SHILL_PROPERTY_OBSERVER_INTERFACE_H_ |