OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2012 The Chromium 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 CHROMEOS_NETWORK_DEVICE_STATE_H_ | |
6 #define CHROMEOS_NETWORK_DEVICE_STATE_H_ | |
7 | |
8 #include "chromeos/network/managed_state.h" | |
pneubeck (no reviews)
2012/10/24 14:41:42
please add here and in other files where necessary
| |
9 | |
pneubeck (no reviews)
2012/10/24 14:41:42
forward declare base::Value
#include <string>
stevenjb
2012/10/25 00:41:58
These are all guaranteed to be in managed_state.h,
| |
10 // Simple class to provide device state information. Similar to NetworkState; | |
tfarina
2012/10/20 02:34:17
I'd move this atop of class declaration.
stevenjb
2012/10/25 00:41:58
Done.
| |
11 // see network_state.h for usage guidelines. | |
12 | |
13 namespace chromeos { | |
14 | |
15 class CHROMEOS_EXPORT DeviceState : public ManagedState { | |
16 public: | |
17 explicit DeviceState(const std::string& path); | |
18 | |
19 // Called by NetworkStateManager when a property changes. | |
20 virtual bool PropertyChanged(const std::string& key, | |
21 const base::Value& value) OVERRIDE; | |
22 | |
23 // Accessors | |
24 const std::string& name() const { return name_; } | |
25 const std::string& type() const { return type_; } | |
26 const std::string& mac_address() const { return mac_address_; } | |
27 bool always_in_roaming() const { return always_in_roaming_; } | |
28 bool support_network_scan() const { return support_network_scan_; } | |
29 | |
30 private: | |
tfarina
2012/10/20 02:34:17
nit: indent one more space.
stevenjb
2012/10/25 00:41:58
Done.
| |
31 // Device Properties | |
32 std::string name_; | |
33 std::string type_; | |
34 std::string mac_address_; | |
35 std::string home_provider_id_; | |
36 bool always_in_roaming_; | |
37 bool support_network_scan_; | |
38 | |
39 DISALLOW_COPY_AND_ASSIGN(DeviceState); | |
40 }; | |
41 | |
42 } // namespace chromeos | |
43 | |
44 #endif // CHROMEOS_NETWORK_DEVICE_STATE_H_ | |
OLD | NEW |