Darin Petkov | 096b347 | 2012-05-15 10:26: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_WIMAX_MANAGER_PROXY_H_ |
| 6 | #define SHILL_WIMAX_MANAGER_PROXY_H_ |
| 7 | |
Alex Vakulenko | 8a53229 | 2014-06-16 17:18:44 -0700 | [diff] [blame] | 8 | #include <string> |
Darin Petkov | 096b347 | 2012-05-15 10:26:22 +0200 | [diff] [blame] | 9 | #include <vector> |
| 10 | |
| 11 | #include <base/basictypes.h> |
| 12 | |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 13 | #include "wimax_manager/dbus_proxies/org.chromium.WiMaxManager.h" |
Darin Petkov | 096b347 | 2012-05-15 10:26:22 +0200 | [diff] [blame] | 14 | #include "shill/wimax_manager_proxy_interface.h" |
| 15 | |
| 16 | namespace shill { |
| 17 | |
| 18 | class WiMaxManagerProxy : public WiMaxManagerProxyInterface { |
| 19 | public: |
Darin Petkov | 9893d9c | 2012-05-17 15:27:31 -0700 | [diff] [blame] | 20 | explicit WiMaxManagerProxy(DBus::Connection *connection); |
Darin Petkov | 096b347 | 2012-05-15 10:26:22 +0200 | [diff] [blame] | 21 | virtual ~WiMaxManagerProxy(); |
| 22 | |
| 23 | // Inherited from WiMaxManagerProxyInterface. |
Darin Petkov | 9893d9c | 2012-05-17 15:27:31 -0700 | [diff] [blame] | 24 | virtual void set_devices_changed_callback( |
| 25 | const DevicesChangedCallback &callback); |
| 26 | virtual RpcIdentifiers Devices(Error *error); |
Darin Petkov | 096b347 | 2012-05-15 10:26:22 +0200 | [diff] [blame] | 27 | |
| 28 | private: |
| 29 | class Proxy : public org::chromium::WiMaxManager_proxy, |
| 30 | public DBus::ObjectProxy { |
| 31 | public: |
Darin Petkov | 9893d9c | 2012-05-17 15:27:31 -0700 | [diff] [blame] | 32 | explicit Proxy(DBus::Connection *connection); |
Darin Petkov | 096b347 | 2012-05-15 10:26:22 +0200 | [diff] [blame] | 33 | virtual ~Proxy(); |
| 34 | |
Darin Petkov | 9893d9c | 2012-05-17 15:27:31 -0700 | [diff] [blame] | 35 | void set_devices_changed_callback(const DevicesChangedCallback &callback); |
| 36 | |
Darin Petkov | 096b347 | 2012-05-15 10:26:22 +0200 | [diff] [blame] | 37 | private: |
| 38 | // Signal callbacks inherited from WiMaxManager_proxy. |
Darin Petkov | 9893d9c | 2012-05-17 15:27:31 -0700 | [diff] [blame] | 39 | virtual void DevicesChanged(const std::vector<DBus::Path> &devices); |
Darin Petkov | 096b347 | 2012-05-15 10:26:22 +0200 | [diff] [blame] | 40 | |
| 41 | // Method callbacks inherited from WiMaxManager_proxy. |
| 42 | // [None] |
| 43 | |
Darin Petkov | 9893d9c | 2012-05-17 15:27:31 -0700 | [diff] [blame] | 44 | DevicesChangedCallback devices_changed_callback_; |
| 45 | |
Darin Petkov | 096b347 | 2012-05-15 10:26:22 +0200 | [diff] [blame] | 46 | DISALLOW_COPY_AND_ASSIGN(Proxy); |
| 47 | }; |
| 48 | |
| 49 | Proxy proxy_; |
| 50 | |
| 51 | DISALLOW_COPY_AND_ASSIGN(WiMaxManagerProxy); |
| 52 | }; |
| 53 | |
| 54 | } // namespace shill |
| 55 | |
| 56 | #endif // SHILL_WIMAX_MANAGER_PROXY_H_ |