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

Side by Side Diff: service.cc

Issue 6575006: Add initial sketch to shill repository (Closed) Base URL: ssh://git@gitrw.chromium.org/shill.git@master
Patch Set: Add device and service mockups Created 9 years, 9 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 unified diff | Download patch
OLDNEW
(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 #include <time.h>
6
7 #include <stdio.h>
8 #include <string>
9
10 #include "shill/shill_logging.h"
11 #include "shill/control_interface.h"
12 #include "shill/service.h"
13
14 using std::string;
15
16 namespace shill {
17 Service::Service(ControlInterface *control_interface,
18 EventDispatcher */* dispatcher */)
19 : available_(false),
20 configured_(false),
21 auto_connect_(false),
22 configuration_(NULL),
23 connection_(NULL) {
24 proxy_ = control_interface->CreateServiceProxy(this);
25 // Initialize Interface montior, so we can detect new interfaces
26 SHILL_LOG(INFO, SHILL_LOG_SERVICE) << "Service %p initialized.";
27 }
28
29 Service::~Service() {
30 delete(proxy_);
31 }
32
33 } // namespace shill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698