File indexing completed on 2024-04-28 04:37:47

0001 /*
0002     SPDX-FileCopyrightText: 2017 Aleix Pol Gonzalez <aleixpol@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-only
0005 */
0006 
0007 #ifndef ANDROIDRUNTIME_H
0008 #define ANDROIDRUNTIME_H
0009 
0010 #include <interfaces/iruntime.h>
0011 #include <util/path.h>
0012 
0013 class KJob;
0014 class AndroidPreferencesSettings;
0015 
0016 class AndroidRuntime : public KDevelop::IRuntime
0017 {
0018     Q_OBJECT
0019 public:
0020     AndroidRuntime();
0021     ~AndroidRuntime() override;
0022 
0023     QString name() const override { return QStringLiteral("Android"); }
0024 
0025     void setEnabled(bool enabled) override;
0026 
0027     void startProcess(KProcess *process) const override;
0028     void startProcess(QProcess *process) const override;
0029     KDevelop::Path pathInHost(const KDevelop::Path & runtimePath) const override { return runtimePath; }
0030     KDevelop::Path pathInRuntime(const KDevelop::Path & localPath) const override { return localPath; }
0031     QByteArray getenv(const QByteArray &varname) const override;
0032     QString findExecutable(const QString& executableName) const override;
0033     KDevelop::Path buildPath() const override { return {}; }
0034 
0035     static AndroidPreferencesSettings* s_settings;
0036 };
0037 
0038 #endif