| 1 | // SPDX-License-Identifier: GPL-3.0-or-latercxx . . $ `<file>/src/helper/pmon/iappregistry.h`/ |
| 2 | // Copyright 2019 Juan Palacios <[email protected]> |
| 3 | |
| 4 | #pragma once |
| 5 | |
| 6 | #include <memory> |
| 7 | #include <string> |
| 8 | |
| 9 | class IAppRegistrycxx . . $ IAppRegistry# |
| 10 | { |
| 11 | public: |
| 12 | class Observercxx . . $ IAppRegistry#Observer# |
| 13 | { |
| 14 | public: |
| 15 | virtual void registeredAppcxx . . $ IAppRegistry#Observer#registeredApp(9c546c94e5fcce4e).(stdcxx . . $ std/::stringcxx . . $ std/string# const &app) = 0; |
| 16 | virtual void unregisteredAppcxx . . $ IAppRegistry#Observer#unregisteredApp(9c546c94e5fcce4e).(stdcxx . . $ std/::stringcxx . . $ std/string# const &app) = 0; |
| 17 | |
| 18 | virtual ~cxx . . $ IAppRegistry#Observer#`~Observer`(ced63f7c635d850d).Observercxx . . $ IAppRegistry#Observer#() = default; |
| 19 | }; |
| 20 | |
| 21 | virtual void addObservercxx . . $ IAppRegistry#addObserver(2fb1f0ad00763439).(stdcxx . . $ std/::shared_ptrcxx . . $ std/shared_ptr#<IAppRegistrycxx . . $ IAppRegistry#::Observercxx . . $ IAppRegistry#Observer#> observer) = 0; |
| 22 | virtual void |
| 23 | removeObservercxx . . $ IAppRegistry#removeObserver(2dd1568741c60743).(stdcxx . . $ std/::shared_ptrcxx . . $ std/shared_ptr#<IAppRegistrycxx . . $ IAppRegistry#::Observercxx . . $ IAppRegistry#Observer#> const &observer) = 0; |
| 24 | |
| 25 | virtual void addcxx . . $ IAppRegistry#add(9c546c94e5fcce4e).(stdcxx . . $ std/::stringcxx . . $ std/string# const &app) = 0; |
| 26 | virtual void removecxx . . $ IAppRegistry#remove(9c546c94e5fcce4e).(stdcxx . . $ std/::stringcxx . . $ std/string# const &app) = 0; |
| 27 | virtual bool registeredcxx . . $ IAppRegistry#registered(7c222eea44a24d43).(stdcxx . . $ std/::stringcxx . . $ std/string# const &app) = 0; |
| 28 | |
| 29 | virtual ~cxx . . $ IAppRegistry#`~IAppRegistry`(ced63f7c635d850d).IAppRegistrycxx . . $ IAppRegistry#() = default; |
| 30 | }; |