blob: 9e2bb27e3e80c66c5c40973b1f466f2bf16d9d94 [file] [log] [blame]
Paul Stewart75897df2011-04-27 09:05:53 -07001// Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef SHILL_CONTROL_INTERFACE_
6#define SHILL_CONTROL_INTERFACE_
7
Paul Stewart75897df2011-04-27 09:05:53 -07008namespace shill {
9
Chris Masone9be4a9d2011-05-16 15:44:09 -070010class Device;
Chris Masoned7732e42011-05-20 11:08:56 -070011class DeviceAdaptorInterface;
Paul Stewart75897df2011-04-27 09:05:53 -070012class Manager;
Chris Masoned7732e42011-05-20 11:08:56 -070013class ManagerAdaptorInterface;
Paul Stewart75897df2011-04-27 09:05:53 -070014class Service;
Chris Masoned7732e42011-05-20 11:08:56 -070015class ServiceAdaptorInterface;
Paul Stewart75897df2011-04-27 09:05:53 -070016
Chris Masone413a3192011-05-09 17:10:05 -070017// This is the Interface for an object factory that creates adaptor objects
Paul Stewart75897df2011-04-27 09:05:53 -070018class ControlInterface {
19 public:
Chris Masone413a3192011-05-09 17:10:05 -070020 virtual ManagerAdaptorInterface *CreateManagerAdaptor(Manager *manager) = 0;
21 virtual ServiceAdaptorInterface *CreateServiceAdaptor(Service *service) = 0;
22 virtual DeviceAdaptorInterface *CreateDeviceAdaptor(Device *device) = 0;
Paul Stewart75897df2011-04-27 09:05:53 -070023 virtual ~ControlInterface() {}
24};
25
26} // namespace shill
27#endif // SHILL_CONTROL_INTERFACE_