Add initial sketch to shill repository
BUG=chromium-os:12066
TEST=command-line
Change-Id: If1d01bf78fca80de4cc8a26e096e1967293d9738
Review URL: http://codereview.chromium.org//6575006
diff --git a/device.h b/device.h
new file mode 100644
index 0000000..a8215b3
--- /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_