blob: 9ccf84110d1760a7ee1a605431799ca23b1912ba [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();
Paul Stewart0af98bf2011-05-10 17:38:08 -070023 void Start();
Paul Stewart75897df2011-04-27 09:05:53 -070024 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_