| 1 | // SPDX-License-Identifier: GPL-3.0-or-latercxx . . $ `<file>/src/helper/helpermonitor.h`/ |
| 2 | // Copyright 2019 Juan Palacios <[email protected]> |
| 3 | |
| 4 | #pragma once |
| 5 | |
| 6 | #include "ihelpermonitor.h"cxx . . $ `<file>/src/helper/ihelpermonitor.h`/ |
| 7 | #include <QByteArray> |
| 8 | #include <QObject> |
| 9 | #include <QtDBus> |
| 10 | #include <memory> |
| 11 | #include <mutex> |
| 12 | #include <vector> |
| 13 | |
| 14 | class ICryptoLayercxx . . $ ICryptoLayer#; |
| 15 | |
| 16 | class HelperMonitorcxx . . $ HelperMonitor# final |
| 17 | : public QObjectcxx . . $ QObject# |
| 18 | , public IHelperMonitorcxx . . $ IHelperMonitor# |
| 19 | { |
| 20 | Q_OBJECTcxx . . $ HelperMonitor#qt_staticMetaObjectStaticContent. |
| 21 | |
| 22 | public: |
| 23 | HelperMonitorcxx . . $ HelperMonitor#HelperMonitor(fa3ab6c77c92806e).(stdcxx . . $ std/::shared_ptrcxx . . $ std/shared_ptr#<ICryptoLayercxx . . $ ICryptoLayer#> cryptoLayer, |
| 24 | QObjectcxx . . $ QObject# *parent = nullptr) noexcept; |
| 25 | |
| 26 | void addObservercxx . . $ HelperMonitor#addObserver(c5c359039219b577).(stdcxx . . $ std/::shared_ptrcxx . . $ std/shared_ptr#<IHelperMonitorcxx . . $ IHelperMonitor#::Observercxx . . $ IHelperMonitor#Observer#> observer) override; |
| 27 | void removeObservercxx . . $ HelperMonitor#removeObserver(23661280549b0457).( |
| 28 | stdcxx . . $ std/::shared_ptrcxx . . $ std/shared_ptr#<IHelperMonitorcxx . . $ IHelperMonitor#::Observercxx . . $ IHelperMonitor#Observer#> const &observer) override; |
| 29 | |
| 30 | void initcxx . . $ HelperMonitor#init(49f6e7a06ebc5aa8).() override; |
| 31 | |
| 32 | void watchAppcxx . . $ HelperMonitor#watchApp(9c546c94e5fcce4e).(stdcxx . . $ std/::stringcxx . . $ std/string# const &app) override; |
| 33 | void forgetAppcxx . . $ HelperMonitor#forgetApp(9c546c94e5fcce4e).(stdcxx . . $ std/::stringcxx . . $ std/string# const &app) override; |
| 34 | |
| 35 | private slotscxx . . $ `<external>/4830994369567095248/qtmetamacros.h:42:14`!: |
| 36 | void notifyAppExeccxx . . $ HelperMonitor#notifyAppExec(a34492a60dbd2bdc).(QByteArraycxx . . $ QByteArray# const &appExe, QByteArraycxx . . $ QByteArray# const &signature); |
| 37 | void notifyAppExitcxx . . $ HelperMonitor#notifyAppExit(a34492a60dbd2bdc).(QByteArraycxx . . $ QByteArray# const &appExe, QByteArraycxx . . $ QByteArray# const &signature); |
| 38 | |
| 39 | private: |
| 40 | stdcxx . . $ std/::shared_ptrcxx . . $ std/shared_ptr#<ICryptoLayercxx . . $ ICryptoLayer#> cryptoLayer_cxx . . $ HelperMonitor#cryptoLayer_.; |
| 41 | stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<QDBusInterfacecxx . . $ QDBusInterface#> monitorInterface_cxx . . $ HelperMonitor#monitorInterface_.; |
| 42 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::shared_ptrcxx . . $ std/shared_ptr#<IHelperMonitorcxx . . $ IHelperMonitor#::Observercxx . . $ IHelperMonitor#Observer#>> observers_cxx . . $ HelperMonitor#observers_.; |
| 43 | stdcxx . . $ std/::mutexcxx . . $ std/mutex# mutex_cxx . . $ HelperMonitor#mutex_.; |
| 44 | }; |