blob: 11d4b8bed4e23c963029d6a57ab92ee72425cc47 [file] [log] [blame]
// Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SHILL_TECHNOLOGY_
#define SHILL_TECHNOLOGY_
#include <string>
namespace shill {
class Technology {
public:
enum Identifier {
kEthernet,
kWifi,
kCellular,
kBlacklisted,
kUnknown,
kNumTechnologies
};
static Identifier IdentifierFromName(const std::string &name);
static std::string NameFromIdentifier(Identifier id);
private:
static const char kUnknownName[];
};
} // namespace shill
#endif // SHILL_TECHNOLOGY_