Darin Petkov | c37a9c4 | 2012-09-06 15:28:22 +0200 | [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 | |
| 5 | #ifndef SHILL_MODEM_GOBI_PROXY_INTERFACE_H_ |
| 6 | #define SHILL_MODEM_GOBI_PROXY_INTERFACE_H_ |
| 7 | |
| 8 | #include <string> |
| 9 | |
| 10 | #include "shill/callbacks.h" |
| 11 | |
| 12 | namespace shill { |
| 13 | |
| 14 | class Error; |
| 15 | |
| 16 | // These are the methods that a ModemManager.Modem.Gobi proxy must support. The |
| 17 | // interface is provided so that it can be mocked in tests. All calls are made |
| 18 | // asynchronously. |
| 19 | class ModemGobiProxyInterface { |
| 20 | public: |
| 21 | virtual ~ModemGobiProxyInterface() {} |
| 22 | |
| 23 | virtual void SetCarrier(const std::string &carrier, |
| 24 | Error *error, const ResultCallback &callback, |
| 25 | int timeout) = 0; |
| 26 | }; |
| 27 | |
| 28 | } // namespace shill |
| 29 | |
| 30 | #endif // SHILL_MODEM_GOBI_PROXY_INTERFACE_H_ |