Ben Chan | 99c8a4d | 2012-05-01 08:11:53 -0700 | [diff] [blame^] | 1 | // Copyright (c) 2012 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 "shill/wimax_service.h" |
| 6 | |
| 7 | #include "shill/technology.h" |
| 8 | #include "shill/wimax.h" |
| 9 | |
| 10 | namespace shill { |
| 11 | |
| 12 | WiMaxService::WiMaxService(ControlInterface *control, |
| 13 | EventDispatcher *dispatcher, |
| 14 | Metrics *metrics, |
| 15 | Manager *manager, |
| 16 | const WiMaxRefPtr &wimax) |
| 17 | : Service(control, dispatcher, metrics, manager, Technology::kWiMax), |
| 18 | wimax_(wimax) { |
| 19 | } |
| 20 | |
| 21 | WiMaxService::~WiMaxService() {} |
| 22 | |
| 23 | bool WiMaxService::TechnologyIs(const Technology::Identifier type) const { |
| 24 | return type == Technology::kWiMax; |
| 25 | } |
| 26 | |
| 27 | void WiMaxService::Connect(Error *error) { |
| 28 | Service::Connect(error); |
| 29 | wimax_->Connect(error); |
| 30 | } |
| 31 | |
| 32 | void WiMaxService::Disconnect(Error *error) { |
| 33 | Service::Disconnect(error); |
| 34 | wimax_->Disconnect(error); |
| 35 | } |
| 36 | |
| 37 | } // namespace shill |