#pragma once #include #include "controllers/commands/Command.hpp" #include "util/SignalVectorModel.hpp" namespace chatterino { namespace controllers { namespace commands { class CommandController; class CommandModel : public util::SignalVectorModel { explicit CommandModel(QObject *parent); protected: // turn a vector item into a model row virtual Command getItemFromRow(std::vector &row, const Command &command) override; // turns a row in the model into a vector item virtual void getRowFromItem(const Command &item, std::vector &row) override; friend class CommandController; }; } // namespace commands } // namespace controllers } // namespace chatterino