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_MANAGER_ |
| 6 | #define SHILL_MANAGER_ |
| 7 | |
| 8 | #include <vector> |
Paul Stewart | 0af98bf | 2011-05-10 17:38:08 -0700 | [diff] [blame^] | 9 | #include <base/scoped_ptr.h> |
Paul Stewart | 75897df | 2011-04-27 09:05:53 -0700 | [diff] [blame] | 10 | |
| 11 | #include "shill/resource.h" |
| 12 | #include "shill/shill_event.h" |
| 13 | #include "shill/service.h" |
| 14 | #include "shill/device.h" |
Paul Stewart | 0af98bf | 2011-05-10 17:38:08 -0700 | [diff] [blame^] | 15 | #include "shill/device_info.h" |
Paul Stewart | 75897df | 2011-04-27 09:05:53 -0700 | [diff] [blame] | 16 | |
| 17 | namespace shill { |
| 18 | |
| 19 | class Manager : public Resource { |
| 20 | public: |
| 21 | // A constructor for the Manager object |
| 22 | explicit Manager(ControlInterface *control_interface, |
| 23 | EventDispatcher *dispatcher); |
| 24 | ~Manager(); |
| 25 | void Start(); |
| 26 | void Stop(); |
| 27 | |
| 28 | private: |
Paul Stewart | 0af98bf | 2011-05-10 17:38:08 -0700 | [diff] [blame^] | 29 | scoped_ptr<ManagerAdaptorInterface> adaptor_; |
| 30 | DeviceInfo device_info_; |
Paul Stewart | 75897df | 2011-04-27 09:05:53 -0700 | [diff] [blame] | 31 | bool running_; |
| 32 | std::vector<Device*> devices_; |
| 33 | std::vector<Service*> services_; |
Chris Masone | 413a319 | 2011-05-09 17:10:05 -0700 | [diff] [blame] | 34 | friend class ManagerAdaptorInterface; |
Paul Stewart | 75897df | 2011-04-27 09:05:53 -0700 | [diff] [blame] | 35 | }; |
| 36 | |
| 37 | } // namespace shill |
| 38 | |
| 39 | #endif // SHILL_MANAGER_ |