blob: b6524ef6fb9cbbf62bf0aa7cc7a95fe085d486d1 [file] [log] [blame]
Ben Chan99c8a4d2012-05-01 08:11:53 -07001// 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 Chanc07362b2012-05-12 10:54:11 -070010using std::string;
11
Ben Chan99c8a4d2012-05-01 08:11:53 -070012namespace shill {
13
14WiMaxService::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
23WiMaxService::~WiMaxService() {}
24
25bool WiMaxService::TechnologyIs(const Technology::Identifier type) const {
26 return type == Technology::kWiMax;
27}
28
29void WiMaxService::Connect(Error *error) {
30 Service::Connect(error);
31 wimax_->Connect(error);
32}
33
34void WiMaxService::Disconnect(Error *error) {
35 Service::Disconnect(error);
36 wimax_->Disconnect(error);
37}
38
Ben Chanc07362b2012-05-12 10:54:11 -070039string WiMaxService::GetStorageIdentifier() const {
40 // TODO(benchan,petkov): Generate a proper storage identifier.
41 return "";
42}
43
44string WiMaxService::GetDeviceRpcId(Error *error) {
45 // TODO(benchan,petkov): Is this need?
46 return "";
47}
48
Ben Chan99c8a4d2012-05-01 08:11:53 -070049} // namespace shill