blob: 95feec0e48aba5dd370e8584828c667030dd3819 [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_ETHERNET_
#define SHILL_ETHERNET_
#include <string>
#include "shill/device.h"
#include "shill/refptr_types.h"
#include "shill/shill_event.h"
namespace shill {
class Ethernet : public Device {
public:
Ethernet(ControlInterface *control_interface,
EventDispatcher *dispatcher,
Manager *manager,
const std::string& link_name,
int interface_index);
~Ethernet();
void Start();
void Stop();
bool TechnologyIs(Device::Technology type);
void LinkEvent(unsigned int flags, unsigned int change);
private:
bool service_registered_;
ServiceRefPtr service_;
bool link_up_;
DISALLOW_COPY_AND_ASSIGN(Ethernet);
};
} // namespace shill
#endif // SHILL_ETHERNET_