blob: e50a28ddf44524f6477ca83eb4f307f15f007301 [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);
~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_