-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathHelloWorldDaemon.h
More file actions
30 lines (26 loc) · 862 Bytes
/
Copy pathHelloWorldDaemon.h
File metadata and controls
30 lines (26 loc) · 862 Bytes
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
#ifndef HELLOWORLD_DAEMON_H_
#define HELLOWORLD_DAEMON_H_
#include <memory>
#include <string>
#include <brillo/daemons/daemon.h>
#include "dbus_service.h"
namespace chromeos_hello_world{
class HelloWorldDaemon: public brillo::Daemon {
public:
HelloWorldDaemon() = default;
protected:
int OnInit() override;
private:
// Run from the main loop when the |dbus_adaptor_| object is registered. At
// this point we can request ownership of the DBus service name and continue
// initialization.
void OnDBusRegistered(bool succeeded);
// Main D-Bus service adaptor.
std::unique_ptr<HelloWorldAdaptor> dbus_adaptor_;
// The daemon state with all the required daemon classes for the configured
// platform.
//std::unique_ptr<DaemonStateInterface> daemon_state_;
DISALLOW_COPY_AND_ASSIGN(HelloWorldDaemon);
};
};
#endif //HELLOWORLD_DAEMON_H_