File indexing completed on 2024-04-14 04:29:48

0001 /*
0002  * This file is part of KDevelop
0003  *
0004  * Copyright 2007 Hamish Rodda <rodda@kde.org>
0005  * Copyright 2009 Niko Sams <niko.sams@gmail.com>
0006  *
0007  * This program is free software; you can redistribute it and/or modify
0008  * it under the terms of the GNU Library General Public License as
0009  * published by the Free Software Foundation; either version 2 of the
0010  * License, or (at your option) any later version.
0011  *
0012  * This program is distributed in the hope that it will be useful,
0013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
0014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0015  * GNU General Public License for more details.
0016  *
0017  * You should have received a copy of the GNU General Public
0018  * License along with this program; if not, write to the
0019  * Free Software Foundation, Inc.,
0020  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
0021  */
0022 
0023 #ifndef EXECUTEBROWSERPLUGIN_H
0024 #define EXECUTEBROWSERPLUGIN_H
0025 
0026 #include <interfaces/iplugin.h>
0027 #include <QVariant>
0028 #include "iexecutebrowserplugin.h"
0029 
0030 class QUrl;
0031 class KJob;
0032 
0033 class ExecuteBrowserPlugin : public KDevelop::IPlugin, public IExecuteBrowserPlugin
0034 {
0035     Q_OBJECT
0036     Q_INTERFACES( IExecuteBrowserPlugin )
0037 
0038   public:
0039     ExecuteBrowserPlugin(QObject *parent, const QVariantList & = QVariantList() );
0040     ~ExecuteBrowserPlugin() override;
0041 
0042     static QString _browserAppConfigTypeId;
0043     static QString serverEntry;
0044     static QString pathEntry;
0045     static QString portEntry;
0046     static QString argumentsEntry;
0047     static QString browserEntry;
0048     
0049     void unload() override;
0050     
0051     QUrl url( KDevelop::ILaunchConfiguration*, QString& err ) const override;
0052     QString browser(KDevelop::ILaunchConfiguration* ) const override;
0053     QString browserAppConfigTypeId() const override;
0054 };
0055 
0056 #endif // EXECUTEBROWSERPLUGIN_H
0057 
0058 // kate: space-indent on; indent-width 2; tab-width 4; replace-tabs on; auto-insert-doxygen on