OLD | NEW |
(Empty) | |
| 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_DEVICE_ |
| 6 #define SHILL_DEVICE_ |
| 7 |
| 8 #include "shill/resource.h" |
| 9 #include "shill/shill_event.h" |
| 10 |
| 11 namespace shill { |
| 12 |
| 13 // Device superclass. Individual network interfaces types will inherit from |
| 14 // this class. |
| 15 class Device : public Resource { |
| 16 public: |
| 17 // A constructor for the Device object |
| 18 explicit Device(ControlInterface *control_interface, |
| 19 EventDispatcher *dispatcher); |
| 20 ~Device(); |
| 21 void Start(); |
| 22 void Stop(); |
| 23 |
| 24 private: |
| 25 DeviceProxyInterface *proxy_; |
| 26 bool running_; |
| 27 friend class DeviceProxyInterface; |
| 28 }; |
| 29 |
| 30 } // namespace shill |
| 31 |
| 32 #endif // SHILL_DEVICE_ |
OLD | NEW |