blob: 9e2bb27e3e80c66c5c40973b1f466f2bf16d9d94 [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_CONTROL_INTERFACE_
#define SHILL_CONTROL_INTERFACE_
namespace shill {
class Device;
class DeviceAdaptorInterface;
class Manager;
class ManagerAdaptorInterface;
class Service;
class ServiceAdaptorInterface;
// This is the Interface for an object factory that creates adaptor objects
class ControlInterface {
public:
virtual ManagerAdaptorInterface *CreateManagerAdaptor(Manager *manager) = 0;
virtual ServiceAdaptorInterface *CreateServiceAdaptor(Service *service) = 0;
virtual DeviceAdaptorInterface *CreateDeviceAdaptor(Device *device) = 0;
virtual ~ControlInterface() {}
};
} // namespace shill
#endif // SHILL_CONTROL_INTERFACE_