| 1 | // SPDX-License-Identifier: GPL-3.0-or-later |
| 2 | // Copyright 2019 Juan Palacios <[email protected]> |
| 3 | |
| 4 | #pragma once |
| 5 | |
| 6 | #include "nlprocexecsocket.h" |
| 7 | #include "processmonitor.h" |
| 8 | #include <memory> |
| 9 | |
| 10 | class IAppRegistry; |
| 11 | class IPIDSolver; |
| 12 | class IPMonMsgDispatcher; |
| 13 | |
| 14 | class NLProcExecMonitor final : public ProcessMonitor |
| 15 | { |
| 16 | public: |
| 17 | NLProcExecMonitor(std::shared_ptr<IAppRegistry> appRegistry, |
| 18 | std::unique_ptr<IPIDSolver> &&pidSolver, |
| 19 | std::unique_ptr<IPMonMsgDispatcher> &&msgDispatcher) noexcept; |
| 20 | |
| 21 | protected: |
| 22 | ProcessEvent waitProcessEvent() override; |
| 23 | |
| 24 | private: |
| 25 | NLProcExecSocket nlSock_; |
| 26 | }; |