blob: 11d4b8bed4e23c963029d6a57ab92ee72425cc47 [file] [log] [blame]
Paul Stewartfdd16072011-09-16 12:41:35 -07001// Copyright (c) 2011 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#ifndef SHILL_TECHNOLOGY_
6#define SHILL_TECHNOLOGY_
7
8#include <string>
9
10namespace shill {
11
12class Technology {
13 public:
14 enum Identifier {
15 kEthernet,
16 kWifi,
17 kCellular,
18 kBlacklisted,
19 kUnknown,
20 kNumTechnologies
21 };
22
23 static Identifier IdentifierFromName(const std::string &name);
24 static std::string NameFromIdentifier(Identifier id);
25
26 private:
27 static const char kUnknownName[];
28};
29
30} // namespace shill
31
32#endif // SHILL_TECHNOLOGY_