blob: 89aa7561ec868f706de8c0ed231fc1e3bb64a230 [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/event_dispatcher.h"
#include "shill/refptr_types.h"
namespace shill {
class Ethernet : public Device {
public:
Ethernet(ControlInterface *control_interface,
EventDispatcher *dispatcher,
Manager *manager,
const std::string& link_name,
const std::string &address,
int interface_index);
~Ethernet();
void Start();
void Stop();
bool TechnologyIs(Technology::Identifier type) const;
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_