File indexing completed on 2024-03-24 04:36:57
0001 /* KDevelop 0002 * 0003 * Copyright 2009 Andreas Pakulat <apaku@gmx.de> 0004 * Copyright 2009 Niko Sams <niko.sams@gmail.com> 0005 * 0006 * This program is free software; you can redistribute it and/or 0007 * modify it under the terms of the GNU General Public License 0008 * as published by the Free Software Foundation; either version 2 0009 * of the License, or (at your option) any later version. 0010 * 0011 * This program is distributed in the hope that it will be useful, 0012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 0013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0014 * GNU General Public License for more details. 0015 * 0016 * You should have received a copy of the GNU General Public License 0017 * along with this program; if not, write to the Free Software 0018 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 0019 * 02110-1301, USA. 0020 */ 0021 0022 #ifndef IEXECUTEBROWSERPLUGIN_H 0023 #define IEXECUTEBROWSERPLUGIN_H 0024 0025 #include <QObject> 0026 0027 namespace KDevelop 0028 { 0029 class ILaunchConfiguration; 0030 } 0031 0032 class QUrl; 0033 class QString; 0034 0035 /** 0036 @author Andreas Pakulat 0037 @author Niko Sams 0038 */ 0039 0040 class IExecuteBrowserPlugin 0041 { 0042 public: 0043 virtual ~IExecuteBrowserPlugin() {} 0044 0045 virtual QUrl url( KDevelop::ILaunchConfiguration*, QString& ) const = 0; 0046 /// @return Empty string when system default should be used. 0047 virtual QString browser( KDevelop::ILaunchConfiguration* ) const = 0; 0048 virtual QString browserAppConfigTypeId() const = 0; 0049 }; 0050 0051 Q_DECLARE_INTERFACE( IExecuteBrowserPlugin, "org.kdevelop.IExecuteBrowserPlugin" ) 0052 0053 #endif 0054