| // Copyright 2019 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 HERMES_DAEMON_H_ |
| #define HERMES_DAEMON_H_ |
| |
| #include <memory> |
| |
| #include <base/macros.h> |
| #include <brillo/daemons/dbus_daemon.h> |
| #include <google-lpa/lpa/card/euicc_card.h> |
| #include <google-lpa/lpa/core/lpa.h> |
| |
| #include "hermes/dbus_adaptor.h" |
| #include "hermes/executor.h" |
| #include "hermes/logger.h" |
| #include "hermes/smdp.h" |
| #include "hermes/smds.h" |
| |
| namespace hermes { |
| |
| class Daemon : public brillo::DBusServiceDaemon { |
| public: |
| Daemon(); |
| |
| private: |
| // brillo::Daemon override. |
| void RegisterDBusObjectsAsync( |
| brillo::dbus_utils::AsyncEventSequencer* sequencer) override; |
| |
| std::unique_ptr<brillo::dbus_utils::DBusObject> dbus_object_; |
| std::unique_ptr<DBusAdaptor> dbus_adaptor_; |
| |
| // Objects for use with google-lpa. |
| Executor executor_; |
| Logger logger_; |
| SmdpFactory smdp_; |
| SmdsFactory smds_; |
| std::unique_ptr<lpa::card::EuiccCard> card_; |
| std::unique_ptr<lpa::core::Lpa> lpa_; |
| |
| DISALLOW_COPY_AND_ASSIGN(Daemon); |
| }; |
| |
| } // namespace hermes |
| |
| #endif // HERMES_DAEMON_H_ |