blob: 6116e1924b9b2c4634c3ba25caeee96775ecb4e1 [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_ADAPTOR_INTERFACES_
#define SHILL_ADAPTOR_INTERFACES_
#include <string>
#include <base/basictypes.h>
namespace shill {
// These are the functions that a Manager adaptor must support
class ManagerAdaptorInterface {
public:
virtual ~ManagerAdaptorInterface() {}
virtual void UpdateRunning() = 0;
virtual void EmitBoolChanged(const std::string& name, bool value) = 0;
virtual void EmitUintChanged(const std::string& name, uint32 value) = 0;
virtual void EmitIntChanged(const std::string& name, int value) = 0;
virtual void EmitStringChanged(const std::string& name,
const std::string& value) = 0;
virtual void EmitStateChanged(const std::string& new_state) = 0;
};
// These are the functions that a Service adaptor must support
class ServiceAdaptorInterface {
public:
virtual ~ServiceAdaptorInterface() {}
virtual void UpdateConnected() = 0;
virtual void EmitBoolChanged(const std::string& name, bool value) = 0;
virtual void EmitUintChanged(const std::string& name, uint32 value) = 0;
virtual void EmitIntChanged(const std::string& name, int value) = 0;
virtual void EmitStringChanged(const std::string& name,
const std::string& value) = 0;
};
// These are the functions that a Device adaptor must support
class DeviceAdaptorInterface {
public:
virtual ~DeviceAdaptorInterface() {}
virtual void UpdateEnabled() = 0;
virtual void EmitBoolChanged(const std::string& name, bool value) = 0;
virtual void EmitUintChanged(const std::string& name, uint32 value) = 0;
virtual void EmitIntChanged(const std::string& name, int value) = 0;
virtual void EmitStringChanged(const std::string& name,
const std::string& value) = 0;
};
} // namespace shill
#endif // SHILL_ADAPTOR_INTERFACES_