executeplasmoidplugin.h 2.14 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
/*
 * This file is part of KDevelop
 *
 * Copyright 2007 Hamish Rodda <rodda@kde.org>
 * Copyright 2009 Niko Sams <niko.sams@gmail.com>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU Library General Public License as
 * published by the Free Software Foundation; either version 2 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public
 * License along with this program; if not, write to the
 * Free Software Foundation, Inc.,
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 */

#ifndef EXECUTEPLASMOIDPLUGIN_H
#define EXECUTEPLASMOIDPLUGIN_H

#include <interfaces/iplugin.h>
27
#include <execute/iexecuteplugin.h>
28
#include <QVariantList>
29 30

class PlasmoidExecutionConfigType;
Milian Wolff's avatar
Milian Wolff committed
31
class QUrl;
32 33
class KJob;

34
class ExecutePlasmoidPlugin : public KDevelop::IPlugin, public IExecutePlugin
35 36
{
    Q_OBJECT
37
    Q_INTERFACES( IExecutePlugin )
38
    public:
39
        explicit ExecutePlasmoidPlugin(QObject *parent, const QVariantList & = QVariantList() );
40 41
        ~ExecutePlasmoidPlugin() override;
        void unload() override;
42

43 44 45
        QUrl executable(KDevelop::ILaunchConfiguration* config, QString& error) const override;
        QStringList arguments(KDevelop::ILaunchConfiguration* config, QString& error) const override;
        KJob* dependencyJob(KDevelop::ILaunchConfiguration* config) const override;
46
        QString environmentProfileName(KDevelop::ILaunchConfiguration* config) const override;
47 48 49 50
        QString nativeAppConfigTypeId() const override;
        QString terminal(KDevelop::ILaunchConfiguration* config) const override;
        bool useTerminal(KDevelop::ILaunchConfiguration* config) const override;
        QUrl workingDirectory(KDevelop::ILaunchConfiguration* config) const override;
51

52 53 54 55 56
    private:
        PlasmoidExecutionConfigType* m_configType;
};

#endif // EXECUTEPLASMOIDPLUGIN_H