File indexing completed on 2024-12-22 04:48:19
0001 // SPDX-License-Identifier: GPL-2.0-or-later 0002 // SPDX-FileCopyrightText: 2022 Louis Schul <schul9louis@gmail.com> 0003 #pragma once 0004 0005 #include <QJsonArray> 0006 #include <QJsonObject> 0007 #include <QObject> 0008 0009 class MDHandler : public QObject 0010 { 0011 Q_OBJECT 0012 0013 public: 0014 explicit MDHandler(QObject *parent = nullptr); 0015 0016 Q_INVOKABLE QJsonObject getInstructions(const QString &selectedText, 0017 const QStringList &charsList, 0018 const bool checkLineEnd, 0019 const bool applyIncrement, 0020 const bool checkByBlock) const; 0021 0022 private: 0023 QJsonObject blockChecker(const QString &selectedText, const QStringList &charsList) const; 0024 };