File indexing completed on 2024-04-21 04:38:10
0001 /* 0002 SPDX-FileCopyrightText: 2018 Anton Anikin <anton@anikin.xyz> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef KDEVCLAZY_JOB_PARAMETERS_H 0008 #define KDEVCLAZY_JOB_PARAMETERS_H 0009 0010 #include <QObject> 0011 #include <QString> 0012 #include <QUrl> 0013 0014 namespace KDevelop { class IProject; } 0015 0016 namespace Clazy 0017 { 0018 0019 class JobGlobalParameters : public QObject 0020 { 0021 Q_OBJECT 0022 0023 public: 0024 JobGlobalParameters(const QUrl& executablePath, const QUrl& docsPath); 0025 ~JobGlobalParameters() override = default; 0026 0027 static QUrl defaultExecutablePath(); 0028 static QUrl defaultDocsPath(); 0029 0030 bool isValid() const; 0031 QString error() const; 0032 0033 Q_SIGNALS: 0034 void changed(); 0035 0036 protected: 0037 JobGlobalParameters(); 0038 0039 QString m_executablePath; 0040 QString m_docsPath; 0041 0042 QString m_error; 0043 }; 0044 0045 } 0046 0047 #endif