Index: device.h |
diff --git a/device.h b/device.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a8215b3c1a4ddeafef9444915203851d06e9a6f3 |
--- /dev/null |
+++ b/device.h |
@@ -0,0 +1,32 @@ |
+// Copyright (c) 2011 The Chromium OS Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef SHILL_DEVICE_ |
+#define SHILL_DEVICE_ |
+ |
+#include "shill/resource.h" |
+#include "shill/shill_event.h" |
+ |
+namespace shill { |
+ |
+// Device superclass. Individual network interfaces types will inherit from |
+// this class. |
+class Device : public Resource { |
+ public: |
+ // A constructor for the Device object |
+ explicit Device(ControlInterface *control_interface, |
+ EventDispatcher *dispatcher); |
+ ~Device(); |
+ void Start(); |
+ void Stop(); |
+ |
+ private: |
+ DeviceProxyInterface *proxy_; |
+ bool running_; |
+ friend class DeviceProxyInterface; |
+}; |
+ |
+} // namespace shill |
+ |
+#endif // SHILL_DEVICE_ |