Darin Petkov | e604f70 | 2011-07-28 15:51:17 -0700 | [diff] [blame] | 1 | // Copyright (c) 2011 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_SIMPLE_PROXY_INTERFACE_ |
| 6 | #define SHILL_MODEM_SIMPLE_PROXY_INTERFACE_ |
| 7 | |
| 8 | #include "shill/dbus_properties.h" |
| 9 | |
| 10 | namespace shill { |
| 11 | |
| 12 | // These are the methods that a ModemManager.Modem.Simple proxy must |
| 13 | // support. The interface is provided so that it can be mocked in tests. |
| 14 | class ModemSimpleProxyInterface { |
| 15 | public: |
| 16 | virtual ~ModemSimpleProxyInterface() {} |
| 17 | |
| 18 | virtual DBusPropertiesMap GetStatus() = 0; |
Darin Petkov | c5f5656 | 2011-08-06 16:40:05 -0700 | [diff] [blame] | 19 | virtual void Connect(const DBusPropertiesMap &properties) = 0; |
Darin Petkov | e604f70 | 2011-07-28 15:51:17 -0700 | [diff] [blame] | 20 | }; |
| 21 | |
| 22 | } // namespace shill |
| 23 | |
| 24 | #endif // SHILL_MODEM_SIMPLE_PROXY_INTERFACE_ |