blob: ca8d4ddf8062a0c6a7a8aa87a2c19c3cb47bc251 [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;
Chris Masone52cd19b2011-06-29 17:23:04 -070014class Profile;
15class ProfileAdaptorInterface;
Paul Stewart75897df2011-04-27 09:05:53 -070016class Service;
Chris Masoned7732e42011-05-20 11:08:56 -070017class ServiceAdaptorInterface;
Paul Stewart75897df2011-04-27 09:05:53 -070018
Chris Masone413a3192011-05-09 17:10:05 -070019// This is the Interface for an object factory that creates adaptor objects
Paul Stewart75897df2011-04-27 09:05:53 -070020class ControlInterface {
21 public:
Chris Masone52cd19b2011-06-29 17:23:04 -070022 virtual ~ControlInterface() {}
Chris Masone413a3192011-05-09 17:10:05 -070023 virtual ManagerAdaptorInterface *CreateManagerAdaptor(Manager *manager) = 0;
24 virtual ServiceAdaptorInterface *CreateServiceAdaptor(Service *service) = 0;
25 virtual DeviceAdaptorInterface *CreateDeviceAdaptor(Device *device) = 0;
Chris Masone52cd19b2011-06-29 17:23:04 -070026 virtual ProfileAdaptorInterface *CreateProfileAdaptor(Profile *profile) = 0;
Paul Stewart75897df2011-04-27 09:05:53 -070027};
28
29} // namespace shill
30#endif // SHILL_CONTROL_INTERFACE_