Changeset View
Changeset View
Standalone View
Standalone View
src/script/katecommandlinescript.h
Show First 20 Lines • Show All 63 Lines • ▼ Show 20 Line(s) | |||||
64 | class KateCommandLineScript : public KateScript, public KTextEditor::Command | 64 | class KateCommandLineScript : public KateScript, public KTextEditor::Command | ||
65 | { | 65 | { | ||
66 | public: | 66 | public: | ||
67 | KateCommandLineScript(const QString &url, const KateCommandLineScriptHeader &header); | 67 | KateCommandLineScript(const QString &url, const KateCommandLineScriptHeader &header); | ||
68 | ~KateCommandLineScript() override; | 68 | ~KateCommandLineScript() override; | ||
69 | 69 | | |||
70 | const KateCommandLineScriptHeader &commandHeader(); | 70 | const KateCommandLineScriptHeader &commandHeader(); | ||
71 | 71 | | |||
72 | bool callFunction(const QString &cmd, const QStringList args, QString &errorMessage); | 72 | bool callFunction(const QString &cmd, const QStringList &args, QString &errorMessage); | ||
73 | 73 | | |||
74 | // | 74 | // | ||
75 | // KTextEditor::Command interface | 75 | // KTextEditor::Command interface | ||
76 | // | 76 | // | ||
77 | public: | 77 | public: | ||
78 | bool help(KTextEditor::View *view, const QString &cmd, QString &msg) override; | 78 | bool help(KTextEditor::View *view, const QString &cmd, QString &msg) override; | ||
79 | bool exec(KTextEditor::View *view, const QString &cmd, QString &msg, const KTextEditor::Range &range = KTextEditor::Range::invalid()) override; | 79 | bool exec(KTextEditor::View *view, const QString &cmd, QString &msg, const KTextEditor::Range &range = KTextEditor::Range::invalid()) override; | ||
80 | bool supportsRange(const QString &cmd) override; | 80 | bool supportsRange(const QString &cmd) override; | ||
81 | 81 | | |||
82 | private: | 82 | private: | ||
83 | KateCommandLineScriptHeader m_commandHeader; | 83 | KateCommandLineScriptHeader m_commandHeader; | ||
84 | }; | 84 | }; | ||
85 | 85 | | |||
86 | #endif | 86 | #endif |