Darin Petkov | 5c97ac5 | 2011-07-19 16:30:49 -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_ |
| 6 | #define SHILL_MODEM_ |
| 7 | |
| 8 | #include <string> |
| 9 | |
| 10 | #include <base/basictypes.h> |
| 11 | #include <base/memory/scoped_ptr.h> |
| 12 | |
| 13 | namespace shill { |
| 14 | |
| 15 | class ControlInterface; |
| 16 | class DBusPropertiesProxyInterface; |
| 17 | class EventDispatcher; |
| 18 | class Manager; |
| 19 | |
| 20 | // Handles an instance of ModemManager.Modem and an instance of CellularDevice. |
| 21 | class Modem { |
| 22 | public: |
| 23 | Modem(const std::string &owner, |
| 24 | const std::string &path, |
| 25 | ControlInterface *control_interface, |
| 26 | EventDispatcher *dispatcher, |
| 27 | Manager *manager); |
| 28 | ~Modem(); |
| 29 | |
| 30 | private: |
| 31 | scoped_ptr<DBusPropertiesProxyInterface> dbus_properties_proxy_; |
| 32 | |
| 33 | ControlInterface *control_interface_; |
| 34 | EventDispatcher *dispatcher_; |
| 35 | Manager *manager_; |
| 36 | |
| 37 | DISALLOW_COPY_AND_ASSIGN(Modem); |
| 38 | }; |
| 39 | |
| 40 | } // namespace shill |
| 41 | |
| 42 | #endif // SHILL_MODEM_ |