blob: 72b347e507c10451ef60fa88e09b885708630db8 [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
10namespace shill {
11
12WiMaxService::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
21WiMaxService::~WiMaxService() {}
22
23bool WiMaxService::TechnologyIs(const Technology::Identifier type) const {
24 return type == Technology::kWiMax;
25}
26
27void WiMaxService::Connect(Error *error) {
28 Service::Connect(error);
29 wimax_->Connect(error);
30}
31
32void WiMaxService::Disconnect(Error *error) {
33 Service::Disconnect(error);
34 wimax_->Disconnect(error);
35}
36
37} // namespace shill