OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROMEOS_NETWORK_DEVICE_STATE_H_ | 5 #ifndef CHROMEOS_NETWORK_DEVICE_STATE_H_ |
6 #define CHROMEOS_NETWORK_DEVICE_STATE_H_ | 6 #define CHROMEOS_NETWORK_DEVICE_STATE_H_ |
7 | 7 |
8 #include "base/values.h" | 8 #include "base/values.h" |
9 #include "chromeos/network/managed_state.h" | 9 #include "chromeos/network/managed_state.h" |
10 #include "chromeos/network/network_util.h" | 10 #include "chromeos/network/network_util.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 const base::Value& value) OVERRIDE; | 25 const base::Value& value) OVERRIDE; |
26 virtual bool InitialPropertiesReceived( | 26 virtual bool InitialPropertiesReceived( |
27 const base::DictionaryValue& properties) OVERRIDE; | 27 const base::DictionaryValue& properties) OVERRIDE; |
28 | 28 |
29 void IPConfigPropertiesChanged(const std::string& ip_config_path, | 29 void IPConfigPropertiesChanged(const std::string& ip_config_path, |
30 const base::DictionaryValue& properties); | 30 const base::DictionaryValue& properties); |
31 | 31 |
32 // Accessors | 32 // Accessors |
33 const std::string& mac_address() const { return mac_address_; } | 33 const std::string& mac_address() const { return mac_address_; } |
34 | 34 |
35 // Returns |mac_address_| in aa:bb format. | |
36 std::string GetFormattedMacAddress() const; | |
37 | |
38 // Cellular specific accessors | 35 // Cellular specific accessors |
39 const std::string& home_provider_id() const { return home_provider_id_; } | 36 const std::string& home_provider_id() const { return home_provider_id_; } |
40 bool allow_roaming() const { return allow_roaming_; } | 37 bool allow_roaming() const { return allow_roaming_; } |
41 bool provider_requires_roaming() const { return provider_requires_roaming_; } | 38 bool provider_requires_roaming() const { return provider_requires_roaming_; } |
42 bool support_network_scan() const { return support_network_scan_; } | 39 bool support_network_scan() const { return support_network_scan_; } |
43 bool scanning() const { return scanning_; } | 40 bool scanning() const { return scanning_; } |
44 const std::string& technology_family() const { return technology_family_; } | 41 const std::string& technology_family() const { return technology_family_; } |
45 const std::string& carrier() const { return carrier_; } | 42 const std::string& carrier() const { return carrier_; } |
46 const std::string& sim_lock_type() const { return sim_lock_type_; } | 43 const std::string& sim_lock_type() const { return sim_lock_type_; } |
47 uint32 sim_retries_left() const { return sim_retries_left_; } | 44 uint32 sim_retries_left() const { return sim_retries_left_; } |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 | 92 |
96 // Dictionary of IPConfig properties, keyed by IpConfig path. | 93 // Dictionary of IPConfig properties, keyed by IpConfig path. |
97 base::DictionaryValue ip_configs_; | 94 base::DictionaryValue ip_configs_; |
98 | 95 |
99 DISALLOW_COPY_AND_ASSIGN(DeviceState); | 96 DISALLOW_COPY_AND_ASSIGN(DeviceState); |
100 }; | 97 }; |
101 | 98 |
102 } // namespace chromeos | 99 } // namespace chromeos |
103 | 100 |
104 #endif // CHROMEOS_NETWORK_DEVICE_STATE_H_ | 101 #endif // CHROMEOS_NETWORK_DEVICE_STATE_H_ |
OLD | NEW |