Paul Stewart | fdd1607 | 2011-09-16 12:41:35 -0700 | [diff] [blame] | 1 | // 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 | |
| 10 | namespace shill { |
| 11 | |
| 12 | class Technology { |
| 13 | public: |
| 14 | enum Identifier { |
| 15 | kEthernet, |
| 16 | kWifi, |
Paul Stewart | 2001a42 | 2011-12-15 10:20:09 -0800 | [diff] [blame] | 17 | kWiFiMonitor, |
Paul Stewart | fdd1607 | 2011-09-16 12:41:35 -0700 | [diff] [blame] | 18 | kCellular, |
| 19 | kBlacklisted, |
| 20 | kUnknown, |
Paul Stewart | fdd1607 | 2011-09-16 12:41:35 -0700 | [diff] [blame] | 21 | }; |
| 22 | |
| 23 | static Identifier IdentifierFromName(const std::string &name); |
| 24 | static std::string NameFromIdentifier(Identifier id); |
Paul Stewart | 1b25314 | 2012-01-26 14:05:52 -0800 | [diff] [blame] | 25 | static Identifier IdentifierFromStorageGroup(const std::string &group); |
Paul Stewart | fdd1607 | 2011-09-16 12:41:35 -0700 | [diff] [blame] | 26 | |
| 27 | private: |
| 28 | static const char kUnknownName[]; |
| 29 | }; |
| 30 | |
| 31 | } // namespace shill |
| 32 | |
| 33 | #endif // SHILL_TECHNOLOGY_ |