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 | |
Ben Chan | c07362b | 2012-05-12 10:54:11 -0700 | [diff] [blame^] | 10 | using std::string; |
| 11 | |
Ben Chan | 99c8a4d | 2012-05-01 08:11:53 -0700 | [diff] [blame] | 12 | namespace shill { |
| 13 | |
| 14 | WiMaxService::WiMaxService(ControlInterface *control, |
| 15 | EventDispatcher *dispatcher, |
| 16 | Metrics *metrics, |
| 17 | Manager *manager, |
| 18 | const WiMaxRefPtr &wimax) |
| 19 | : Service(control, dispatcher, metrics, manager, Technology::kWiMax), |
| 20 | wimax_(wimax) { |
| 21 | } |
| 22 | |
| 23 | WiMaxService::~WiMaxService() {} |
| 24 | |
| 25 | bool WiMaxService::TechnologyIs(const Technology::Identifier type) const { |
| 26 | return type == Technology::kWiMax; |
| 27 | } |
| 28 | |
| 29 | void WiMaxService::Connect(Error *error) { |
| 30 | Service::Connect(error); |
| 31 | wimax_->Connect(error); |
| 32 | } |
| 33 | |
| 34 | void WiMaxService::Disconnect(Error *error) { |
| 35 | Service::Disconnect(error); |
| 36 | wimax_->Disconnect(error); |
| 37 | } |
| 38 | |
Ben Chan | c07362b | 2012-05-12 10:54:11 -0700 | [diff] [blame^] | 39 | string WiMaxService::GetStorageIdentifier() const { |
| 40 | // TODO(benchan,petkov): Generate a proper storage identifier. |
| 41 | return ""; |
| 42 | } |
| 43 | |
| 44 | string WiMaxService::GetDeviceRpcId(Error *error) { |
| 45 | // TODO(benchan,petkov): Is this need? |
| 46 | return ""; |
| 47 | } |
| 48 | |
Ben Chan | 99c8a4d | 2012-05-01 08:11:53 -0700 | [diff] [blame] | 49 | } // namespace shill |