blob: 1ed3f4753f3c07ce5cf161b2c7b286b96d4f7cc5 [file] [log] [blame]
Paul Stewart75897df2011-04-27 09:05:53 -07001// 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
17namespace shill {
18
19class Daemon {
20 public:
21 explicit Daemon(Config *config, ControlInterface *control);
22 ~Daemon();
23 void Run();
24
25 private:
26 ControlInterface *CreateControl();
27 Config *config_;
28 ControlInterface *control_;
29 Manager manager_;
30 EventDispatcher dispatcher_;
31 friend class ShillDaemonTest;
32};
33
34} // namespace shill
35
36#endif // SHILL_H_