-
Notifications
You must be signed in to change notification settings - Fork 1
/
daemon.h
42 lines (29 loc) · 1011 Bytes
/
daemon.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// Copyright 2020 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef IMAGE_BURNER_DAEMON_H_
#define IMAGE_BURNER_DAEMON_H_
#include <memory>
#include <brillo/daemons/dbus_daemon.h>
#include "image-burner/image_burner_impl.h"
#include "image-burner/image_burner_utils.h"
namespace imageburn {
class ImageBurnService;
class Daemon : public brillo::DBusServiceDaemon {
public:
Daemon();
~Daemon() override;
Daemon(const Daemon&) = delete;
Daemon& operator=(const Daemon&) = delete;
private:
// brillo::DBusServiceDaemon overrides:
void RegisterDBusObjectsAsync(
brillo::dbus_utils::AsyncEventSequencer* sequencer) override;
BurnWriter writer_;
BurnReader reader_;
BurnPathGetter path_getter_;
BurnerImpl burner_{&writer_, &reader_, nullptr, &path_getter_};
std::unique_ptr<ImageBurnService> service_;
};
} // namespace imageburn
#endif // IMAGE_BURNER_DAEMON_H_