// SPDX-License-Identifier: GPL-3.0-or-later // Copyright 2019 Juan Palacios #pragma once #include "helperids.h" #include #include class ICryptoLayer; class ISysfsWriter; class QByteArray; class MsgReceiver final : public QObject { Q_OBJECT Q_CLASSINFO("D-Bus Interface", DBUS_HELPER_SYSCTL_INTERFACE) public: MsgReceiver(std::shared_ptr cryptoLayer, std::unique_ptr &&sysfsWriter, QObject *parent = nullptr); ~MsgReceiver(); public slots: // D-Bus interface methods Q_SCRIPTABLE void apply(QByteArray const &data, QByteArray const &signature); private: std::shared_ptr cryptoLayer_; std::unique_ptr sysfsWriter_; };