blob: 60ede8826e6c113ec2d3632553f2cb58eca6c4e3 [file] [log] [blame]
// Copyright (c) 2012 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/event_dispatcher.h"
#include "shill/refptr_types.h"
namespace shill {
class Ethernet : public Device {
public:
Ethernet(ControlInterface *control_interface,
EventDispatcher *dispatcher,
Metrics *metrics,
Manager *manager,
const std::string& link_name,
const std::string &address,
int interface_index);
virtual ~Ethernet();
virtual void Start(Error *error, const EnabledStateChangedCallback &callback);
virtual void Stop(Error *error, const EnabledStateChangedCallback &callback);
virtual bool TechnologyIs(Technology::Identifier type) const;
virtual 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_