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> |
| 9 | |
| 10 | #include "shill/resource.h" |
| 11 | #include "shill/shill_event.h" |
| 12 | #include "shill/service.h" |
| 13 | #include "shill/device.h" |
| 14 | |
| 15 | namespace shill { |
| 16 | |
| 17 | class Manager : public Resource { |
| 18 | public: |
| 19 | // A constructor for the Manager object |
| 20 | explicit Manager(ControlInterface *control_interface, |
| 21 | EventDispatcher *dispatcher); |
| 22 | ~Manager(); |
| 23 | void Start(); |
| 24 | void Stop(); |
| 25 | |
| 26 | private: |
| 27 | ManagerProxyInterface *proxy_; |
| 28 | bool running_; |
| 29 | std::vector<Device*> devices_; |
| 30 | std::vector<Service*> services_; |
| 31 | friend class ManagerProxyInterface; |
| 32 | }; |
| 33 | |
| 34 | } // namespace shill |
| 35 | |
| 36 | #endif // SHILL_MANAGER_ |