Paul Stewart | 75897df | 2011-04-27 09:05:53 -0700 | [diff] [blame] | 1 | // Copyright (c) 2010 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_H_ |
| 6 | #define SHILL_H_ |
| 7 | |
| 8 | #include <string> |
| 9 | |
| 10 | #include <ctime> |
| 11 | |
| 12 | #include "shill/shill_config.h" |
| 13 | #include "shill/control_interface.h" |
| 14 | #include "shill/shill_event.h" |
| 15 | #include "shill/manager.h" |
| 16 | |
| 17 | namespace shill { |
| 18 | |
| 19 | class Daemon { |
| 20 | public: |
| 21 | explicit Daemon(Config *config, ControlInterface *control); |
| 22 | ~Daemon(); |
Paul Stewart | 0af98bf | 2011-05-10 17:38:08 -0700 | [diff] [blame^] | 23 | void Start(); |
Paul Stewart | 75897df | 2011-04-27 09:05:53 -0700 | [diff] [blame] | 24 | void Run(); |
| 25 | |
| 26 | private: |
| 27 | ControlInterface *CreateControl(); |
| 28 | Config *config_; |
| 29 | ControlInterface *control_; |
| 30 | Manager manager_; |
| 31 | EventDispatcher dispatcher_; |
| 32 | friend class ShillDaemonTest; |
| 33 | }; |
| 34 | |
| 35 | } // namespace shill |
| 36 | |
| 37 | #endif // SHILL_H_ |