| 1 | // SPDX-License-Identifier: GPL-3.0-or-latercxx . . $ `<file>/tests/src/common/commandqueuestub.h`/ |
| 2 | // Copyright 2019 Juan Palacios <[email protected]> |
| 3 | |
| 4 | #pragma once |
| 5 | |
| 6 | #include "core/icommandqueue.h"cxx . . $ `<file>/src/core/icommandqueue.h`/ |
| 7 | #include <QByteArray> |
| 8 | #include <vector> |
| 9 | |
| 10 | class CommandQueueStubcxx . . $ CommandQueueStub# final : public ICommandQueuecxx . . $ ICommandQueue# |
| 11 | { |
| 12 | public: |
| 13 | bool hasCommandQueuedForcxx . . $ CommandQueueStub#hasCommandQueuedFor(7c222eea44a24d43).(stdcxx . . $ std/::stringcxx . . $ std/string# const &) override |
| 14 | { |
| 15 | return false; |
| 16 | } |
| 17 | |
| 18 | void addcxx . . $ CommandQueueStub#add(358a66d3ce188717).(stdcxx . . $ std/::paircxx . . $ std/pair#<stdcxx . . $ std/::stringcxx . . $ std/string#, stdcxx . . $ std/::stringcxx . . $ std/string#> &&cmd) override |
| 19 | { |
| 20 | commands_cxx . . $ CommandQueueStub#commands_..emplace_backcxx . . $ std/vector#emplace_back(a1bcdfdabc3a37df).(stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(cmd)); |
| 21 | } |
| 22 | |
| 23 | QByteArraycxx . . $ QByteArray# toRawDatacxx . . $ CommandQueueStub#toRawData(b3c286cec66e09f4).() override |
| 24 | { |
| 25 | return QByteArraycxx . . $ QByteArray#QByteArray(ced63f7c635d850d).(); |
| 26 | } |
| 27 | |
| 28 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::paircxx . . $ std/pair#<stdcxx . . $ std/::stringcxx . . $ std/string#, stdcxx . . $ std/::stringcxx . . $ std/string#>> const &commandscxx . . $ CommandQueueStub#commands(f070559094366392).() |
| 29 | { |
| 30 | return commands_cxx . . $ CommandQueueStub#commands_.; |
| 31 | } |
| 32 | |
| 33 | void clearcxx . . $ CommandQueueStub#clear(49f6e7a06ebc5aa8).() |
| 34 | { |
| 35 | commands_cxx . . $ CommandQueueStub#commands_..clearcxx . . $ std/vector#clear(ced63f7c635d850d).(); |
| 36 | } |
| 37 | |
| 38 | void logCommandscxx . . $ CommandQueueStub#logCommands(83f5f38750778ac8).() const override |
| 39 | { |
| 40 | } |
| 41 | |
| 42 | private: |
| 43 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::paircxx . . $ std/pair#<stdcxx . . $ std/::stringcxx . . $ std/string#, stdcxx . . $ std/::stringcxx . . $ std/string#>> commands_cxx . . $ CommandQueueStub#commands_.; |
| 44 | }; |