blob: cac64854ae4f901d6afd29da0e463d9eae682fc6 [file] [log] [blame]
Peter Qiuc0beca52015-09-03 11:25:46 -07001//
2// Copyright (C) 2015 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
Peter Qiu6fc1a8c2015-04-28 15:47:37 -070016
17#include "shill/ethernet/ethernet_temporary_service.h"
18
19#include <string>
20
21#include "shill/control_interface.h"
Peter Qiu6fc1a8c2015-04-28 15:47:37 -070022#include "shill/event_dispatcher.h"
23#include "shill/manager.h"
24#include "shill/metrics.h"
25
26using std::string;
27
28namespace shill {
29
30EthernetTemporaryService::EthernetTemporaryService(
Paul Stewart7e779d82015-06-16 13:13:10 -070031 ControlInterface* control_interface,
32 EventDispatcher* dispatcher,
33 Metrics* metrics,
34 Manager* manager,
35 const string& storage_identifier)
Peter Qiu6fc1a8c2015-04-28 15:47:37 -070036 : Service(control_interface,
37 dispatcher, metrics,
38 manager,
39 Technology::kEthernet),
40 storage_identifier_(storage_identifier) {
41 set_friendly_name("Ethernet");
42}
43
44EthernetTemporaryService::~EthernetTemporaryService() {}
45
Paul Stewart7e779d82015-06-16 13:13:10 -070046std::string EthernetTemporaryService::GetDeviceRpcId(Error* /*error*/) const {
Peter Qiue5fe58d2015-08-12 15:21:56 -070047 return control_interface()->NullRPCIdentifier();
Peter Qiu6fc1a8c2015-04-28 15:47:37 -070048}
49
50string EthernetTemporaryService::GetStorageIdentifier() const {
51 return storage_identifier_;
52}
53
54bool EthernetTemporaryService::IsVisible() const {
55 return false;
56}
57
58} // namespace shill