| Paul Stewart | 75897df | 2011-04-27 09:05:53 -0700 | [diff] [blame] | 1 | // 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 Stewart | 75897df | 2011-04-27 09:05:53 -0700 | [diff] [blame] | 8 | namespace shill { | 
|  | 9 |  | 
| Chris Masone | 9be4a9d | 2011-05-16 15:44:09 -0700 | [diff] [blame] | 10 | class Device; | 
| Chris Masone | d7732e4 | 2011-05-20 11:08:56 -0700 | [diff] [blame] | 11 | class DeviceAdaptorInterface; | 
| Paul Stewart | 75897df | 2011-04-27 09:05:53 -0700 | [diff] [blame] | 12 | class Manager; | 
| Chris Masone | d7732e4 | 2011-05-20 11:08:56 -0700 | [diff] [blame] | 13 | class ManagerAdaptorInterface; | 
| Chris Masone | 52cd19b | 2011-06-29 17:23:04 -0700 | [diff] [blame^] | 14 | class Profile; | 
|  | 15 | class ProfileAdaptorInterface; | 
| Paul Stewart | 75897df | 2011-04-27 09:05:53 -0700 | [diff] [blame] | 16 | class Service; | 
| Chris Masone | d7732e4 | 2011-05-20 11:08:56 -0700 | [diff] [blame] | 17 | class ServiceAdaptorInterface; | 
| Paul Stewart | 75897df | 2011-04-27 09:05:53 -0700 | [diff] [blame] | 18 |  | 
| Chris Masone | 413a319 | 2011-05-09 17:10:05 -0700 | [diff] [blame] | 19 | // This is the Interface for an object factory that creates adaptor objects | 
| Paul Stewart | 75897df | 2011-04-27 09:05:53 -0700 | [diff] [blame] | 20 | class ControlInterface { | 
|  | 21 | public: | 
| Chris Masone | 52cd19b | 2011-06-29 17:23:04 -0700 | [diff] [blame^] | 22 | virtual ~ControlInterface() {} | 
| Chris Masone | 413a319 | 2011-05-09 17:10:05 -0700 | [diff] [blame] | 23 | virtual ManagerAdaptorInterface *CreateManagerAdaptor(Manager *manager) = 0; | 
|  | 24 | virtual ServiceAdaptorInterface *CreateServiceAdaptor(Service *service) = 0; | 
|  | 25 | virtual DeviceAdaptorInterface *CreateDeviceAdaptor(Device *device) = 0; | 
| Chris Masone | 52cd19b | 2011-06-29 17:23:04 -0700 | [diff] [blame^] | 26 | virtual ProfileAdaptorInterface *CreateProfileAdaptor(Profile *profile) = 0; | 
| Paul Stewart | 75897df | 2011-04-27 09:05:53 -0700 | [diff] [blame] | 27 | }; | 
|  | 28 |  | 
|  | 29 | }  // namespace shill | 
|  | 30 | #endif  // SHILL_CONTROL_INTERFACE_ |