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

Unified Diff: service.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 | « resource.cc ('k') | service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: service.h
diff --git a/service.h b/service.h
new file mode 100644
index 0000000000000000000000000000000000000000..3e21acd7a06965b0bd2f789e19dc02bcd3341348
--- /dev/null
+++ b/service.h
@@ -0,0 +1,63 @@
+// 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_MANAGER_
+#define SHILL_MANAGER_
+
+#include "shill/resource.h"
+#include "shill/shill_event.h"
+
+namespace shill {
+
+class Connection;
+class Configuration;
+class Device;
+class Endpoint;
+
+class Service : public Resource {
+ public:
+ // A constructor for the Service object
+ explicit Service(ControlInterface *control_interface,
+ EventDispatcher *dispatcher);
+ ~Service();
+ void Connnect();
+ void Disconnect();
+ enum ConnectState {
+ kServiceStateUnknown,
+ kServiceStateIdle,
+ kServiceStateAssociating,
+ kServiceStateConfiguring,
+ kServiceStateConnected,
+ kServiceStateDisconnected,
+ kServiceStateFailure
+ };
+ enum ConnectFailure {
+ kServiceFailureUnknown,
+ kServiceFailureActivationFailure,
+ kServiceFailureOutOfRange,
+ kServiceFailurePinMissing,
+ kServiceFailureConfigurationFailed,
+ kServiceFailureBadCredentials,
+ kServiceFailureNeedEVDO,
+ kServiceFailureNeedHomeNetwork,
+ kServiceFailureOTASPFailure,
+ kServiceFailureAAAFailure
+ };
+
+ private:
+ string name_;
+ bool available_;
+ bool configured_;
+ bool auto_connect_;
+ Configuration *configuration_;
+ Connection *connection_;
+ Device *interface_;
+ Endpoint *endpoint_;
+ ServiceProxyInterface *proxy_;
+ friend class ServiceProxyInterface;
+};
+
+} // namespace shill
+
+#endif // SHILL_SERVICE_
« no previous file with comments | « resource.cc ('k') | service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698