blob: 608bd8a4807e9c8a6c1684b4be9ed9100ef82fc7 [file] [log] [blame]
Paul Stewart0153cf02014-06-02 11:53:36 -07001// 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
5#ifndef SHILL_PROPERTY_OBSERVER_INTERFACE_
6#define SHILL_PROPERTY_OBSERVER_INTERFACE_
7
8#include <base/basictypes.h>
9
10namespace 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.
14class 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
28#endif // SHILL_PROPERTY_OBSERVER_INTERFACE_