Eric Shienbrood | 5de44ab | 2011-12-05 10:46:27 -0500 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium OS Authors. All rights reserved. |
Darin Petkov | e604f70 | 2011-07-28 15:51:17 -0700 | [diff] [blame] | 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_SIMPLE_PROXY_INTERFACE_ |
| 6 | #define SHILL_MODEM_SIMPLE_PROXY_INTERFACE_ |
| 7 | |
Eric Shienbrood | 9a24553 | 2012-03-07 14:20:39 -0500 | [diff] [blame] | 8 | #include "shill/callbacks.h" |
Darin Petkov | e604f70 | 2011-07-28 15:51:17 -0700 | [diff] [blame] | 9 | #include "shill/dbus_properties.h" |
| 10 | |
| 11 | namespace shill { |
| 12 | |
Eric Shienbrood | 5de44ab | 2011-12-05 10:46:27 -0500 | [diff] [blame] | 13 | class Error; |
| 14 | |
Darin Petkov | e604f70 | 2011-07-28 15:51:17 -0700 | [diff] [blame] | 15 | // These are the methods that a ModemManager.Modem.Simple proxy must |
| 16 | // support. The interface is provided so that it can be mocked in tests. |
Eric Shienbrood | 9a24553 | 2012-03-07 14:20:39 -0500 | [diff] [blame] | 17 | // All calls are made asynchronously. |
Darin Petkov | e604f70 | 2011-07-28 15:51:17 -0700 | [diff] [blame] | 18 | class ModemSimpleProxyInterface { |
| 19 | public: |
| 20 | virtual ~ModemSimpleProxyInterface() {} |
| 21 | |
Eric Shienbrood | 9a24553 | 2012-03-07 14:20:39 -0500 | [diff] [blame] | 22 | virtual void GetModemStatus(Error *error, |
| 23 | const DBusPropertyMapCallback &callback, |
| 24 | int timeout) = 0; |
Eric Shienbrood | 5de44ab | 2011-12-05 10:46:27 -0500 | [diff] [blame] | 25 | virtual void Connect(const DBusPropertiesMap &properties, |
Eric Shienbrood | 9a24553 | 2012-03-07 14:20:39 -0500 | [diff] [blame] | 26 | Error *error, const ResultCallback &callback, |
| 27 | int timeout) = 0; |
Darin Petkov | e604f70 | 2011-07-28 15:51:17 -0700 | [diff] [blame] | 28 | }; |
| 29 | |
| 30 | } // namespace shill |
Darin Petkov | e604f70 | 2011-07-28 15:51:17 -0700 | [diff] [blame] | 31 | #endif // SHILL_MODEM_SIMPLE_PROXY_INTERFACE_ |