Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(191)

Unified Diff: device.h

Issue 6575006: Add initial sketch to shill repository (Closed) Base URL: ssh://git@gitrw.chromium.org/shill.git@master
Patch Set: A few object renames and pointer conversions Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « dbus_control_int.h ('k') | device.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « dbus_control_int.h ('k') | device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698