File indexing completed on 2024-12-01 08:02:56
0001 // SPDX-FileCopyrightText: 2022 Jonah BrĂ¼chert <jbb@kaidan.im> 0002 // SPDX-License-Identifier: GPL-2.0-or-later 0003 0004 #pragma once 0005 0006 #include <QObject> 0007 0008 class ShellCommand : public QObject 0009 { 0010 Q_OBJECT 0011 Q_PROPERTY(QString executable READ executable CONSTANT) 0012 Q_PROPERTY(QStringList args READ args CONSTANT) 0013 0014 public: 0015 explicit ShellCommand(QObject *parent = nullptr); 0016 0017 QString executable() const; 0018 QStringList args() const; 0019 0020 private: 0021 QString command() const; 0022 0023 QStringList m_cmd; 0024 };