| 1 | // SPDX-License-Identifier: GPL-3.0-or-latercxx . . $ `<file>/src/core/components/controls/control.h`/ |
| 2 | // Copyright 2019 Juan Palacios <[email protected]> |
| 3 | |
| 4 | #pragma once |
| 5 | |
| 6 | #include "icontrol.h"cxx . . $ `<file>/src/core/components/controls/icontrol.h`/ |
| 7 | |
| 8 | class Controlcxx . . $ Control# : public IControlcxx . . $ IControl# |
| 9 | { |
| 10 | public: |
| 11 | Controlcxx . . $ Control#Control(b66b796e0ab441d6).(bool active = true, bool forceClean = false) noexcept; |
| 12 | |
| 13 | bool activecxx . . $ Control#active(50ce9a9e25b4a850).() const final override; |
| 14 | void activatecxx . . $ Control#activate(b45ddcbc8423892c).(bool active) override; |
| 15 | |
| 16 | void cleanOncecxx . . $ Control#cleanOnce(49f6e7a06ebc5aa8).() override; |
| 17 | |
| 18 | void importWithcxx . . $ Control#importWith(94eddebf9440278).(Importablecxx . . $ Importable#::Importercxx . . $ Importable#Importer# &i) final override; |
| 19 | void exportWithcxx . . $ Control#exportWith(5b5c94ff60635419).(Exportablecxx . . $ Exportable#::Exportercxx . . $ Exportable#Exporter# &e) const final override; |
| 20 | |
| 21 | void cleancxx . . $ Control#clean(151e9138769f295e).(ICommandQueuecxx . . $ ICommandQueue# &ctlCmds) final override; |
| 22 | void synccxx . . $ Control#sync(151e9138769f295e).(ICommandQueuecxx . . $ ICommandQueue# &ctlCmds) final override; |
| 23 | |
| 24 | protected: |
| 25 | virtual void importControlcxx . . $ Control#importControl(4f796e3ecd5dcd94).(IControlcxx . . $ IControl#::Importercxx . . $ IControl#Importer# &i) = 0; |
| 26 | virtual void exportControlcxx . . $ Control#exportControl(40299682ab9c8676).(IControlcxx . . $ IControl#::Exportercxx . . $ IControl#Exporter# &e) const = 0; |
| 27 | |
| 28 | virtual void cleanControlcxx . . $ Control#cleanControl(151e9138769f295e).(ICommandQueuecxx . . $ ICommandQueue# &ctlCmds) = 0; |
| 29 | virtual void syncControlcxx . . $ Control#syncControl(151e9138769f295e).(ICommandQueuecxx . . $ ICommandQueue# &ctlCmds) = 0; |
| 30 | |
| 31 | bool dirtycxx . . $ Control#dirty(50ce9a9e25b4a850).() const; |
| 32 | void dirtycxx . . $ Control#dirty(b45ddcbc8423892c).(bool isDirty); |
| 33 | |
| 34 | protected: |
| 35 | bool active_cxx . . $ Control#active_.; |
| 36 | bool forceClean_cxx . . $ Control#forceClean_.; |
| 37 | bool dirty_cxx . . $ Control#dirty_.{false}; |
| 38 | }; |