Darin Petkov | 9893d9c | 2012-05-17 15:27:31 -0700 | [diff] [blame] | 1 | // Copyright (c) 2012 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 | 4e5c131 | 2012-05-18 18:45:38 -0700 | [diff] [blame] | 5 | #ifndef SHILL_WIMAX_NETWORK_PROXY_INTERFACE_H_ |
| 6 | #define SHILL_WIMAX_NETWORK_PROXY_INTERFACE_H_ |
Darin Petkov | 9893d9c | 2012-05-17 15:27:31 -0700 | [diff] [blame] | 7 | |
| 8 | #include <string> |
| 9 | |
| 10 | #include <base/basictypes.h> |
Darin Petkov | 1e52a1b | 2012-05-21 10:35:56 +0200 | [diff] [blame] | 11 | #include <base/callback_forward.h> |
| 12 | |
| 13 | #include "shill/accessor_interface.h" |
Darin Petkov | 9893d9c | 2012-05-17 15:27:31 -0700 | [diff] [blame] | 14 | |
| 15 | namespace shill { |
| 16 | |
| 17 | class Error; |
| 18 | |
| 19 | // These are the methods that a WiMaxManager.Network proxy must support. The |
| 20 | // interface is provided so that it can be mocked in tests. |
| 21 | class WiMaxNetworkProxyInterface { |
| 22 | public: |
Darin Petkov | 1e52a1b | 2012-05-21 10:35:56 +0200 | [diff] [blame] | 23 | typedef base::Callback<void(int)> SignalStrengthChangedCallback; |
| 24 | |
Darin Petkov | 9893d9c | 2012-05-17 15:27:31 -0700 | [diff] [blame] | 25 | virtual ~WiMaxNetworkProxyInterface() {} |
| 26 | |
Darin Petkov | 1e52a1b | 2012-05-21 10:35:56 +0200 | [diff] [blame] | 27 | virtual RpcIdentifier path() const = 0; |
| 28 | |
| 29 | virtual void set_signal_strength_changed_callback( |
| 30 | const SignalStrengthChangedCallback &callback) = 0; |
Ben Chan | 4e5c131 | 2012-05-18 18:45:38 -0700 | [diff] [blame] | 31 | |
Darin Petkov | 9893d9c | 2012-05-17 15:27:31 -0700 | [diff] [blame] | 32 | // Properties. |
| 33 | virtual uint32 Identifier(Error *error) = 0; |
| 34 | virtual std::string Name(Error *error) = 0; |
| 35 | virtual int Type(Error *error) = 0; |
| 36 | virtual int CINR(Error *error) = 0; |
| 37 | virtual int RSSI(Error *error) = 0; |
Ben Chan | ac6e836 | 2012-05-20 00:39:58 -0700 | [diff] [blame] | 38 | virtual int SignalStrength(Error *error) = 0; |
Darin Petkov | 9893d9c | 2012-05-17 15:27:31 -0700 | [diff] [blame] | 39 | }; |
| 40 | |
| 41 | } // namespace shill |
| 42 | |
| 43 | #endif // SHILL_WIMAX_NETWORK_PROXY_INTERFACE_H_ |