| 1 | // SPDX-License-Identifier: GPL-3.0-or-latercxx . . $ `<file>/src/core/icommandqueue.h`/ |
| 2 | // Copyright 2019 Juan Palacios <[email protected]> |
| 3 | |
| 4 | #pragma once |
| 5 | |
| 6 | #include <string> |
| 7 | #include <utility> |
| 8 | |
| 9 | class QByteArraycxx . . $ QByteArray#; |
| 10 | |
| 11 | class ICommandQueuecxx . . $ ICommandQueue# |
| 12 | { |
| 13 | public: |
| 14 | /// Whether a command has been queued for the specified file. |
| 15 | /// @param file queued command file to check |
| 16 | virtual bool hasCommandQueuedForcxx . . $ ICommandQueue#hasCommandQueuedFor(7c222eea44a24d43).(stdcxx . . $ std/::stringcxx . . $ std/string# const &file) = 0; |
| 17 | |
| 18 | /// Adds a command to the end of the queue. |
| 19 | /// If the command was already queued, there is no effect in the queue. |
| 20 | /// @param cmd command to queue |
| 21 | virtual void addcxx . . $ ICommandQueue#add(358a66d3ce188717).(stdcxx . . $ std/::paircxx . . $ std/pair#<stdcxx . . $ std/::stringcxx . . $ std/string#, stdcxx . . $ std/::stringcxx . . $ std/string#> &&cmd) = 0; |
| 22 | |
| 23 | /// Transform all commands into raw data, cleaning the command queue. |
| 24 | virtual QByteArraycxx . . $ QByteArray# toRawDatacxx . . $ ICommandQueue#toRawData(b3c286cec66e09f4).() = 0; |
| 25 | |
| 26 | /// Write the queued commands to the log. |
| 27 | virtual void logCommandscxx . . $ ICommandQueue#logCommands(83f5f38750778ac8).() const = 0; |
| 28 | |
| 29 | virtual ~cxx . . $ ICommandQueue#`~ICommandQueue`(49f6e7a06ebc5aa8).ICommandQueuecxx . . $ ICommandQueue#() = default; |
| 30 | }; |