// SPDX-License-Identifier: GPL-3.0-or-later // Copyright 2019 Juan Palacios #pragma once #include "core/icommandqueue.h" #include #include class CommandQueueStub final : public ICommandQueue { public: bool hasCommandQueuedFor(std::string const &) override { return false; } void add(std::pair &&cmd) override { commands_.emplace_back(std::move(cmd)); } QByteArray toRawData() override { return QByteArray(); } std::vector> const &commands() { return commands_; } void clear() { commands_.clear(); } void logCommands() const override { } private: std::vector> commands_; };