| 142 | } |
| 143 | |
| 144 | KJob* ScriptAppLauncher::start(const QString& launchMode, KDevelop::ILaunchConfiguration* cfg) |
| 145 | { |
| 146 | Q_ASSERT(cfg); |
| 147 | if( !cfg ) |
| 148 | { |
| 149 | return nullptr; |
| 150 | } |
| 151 | if( launchMode == QLatin1String("execute") ) |
| 152 | { |
| 153 | return new ScriptAppJob( m_plugin, cfg); |
| 154 | } |
| 155 | qCWarning(PLUGIN_EXECUTESCRIPT) << "Unknown launch mode " << launchMode << "for config:" << cfg->name(); |
| 156 | return nullptr; |
| 157 | } |
| 158 | |
| 159 | QStringList ScriptAppLauncher::supportedModes() const |
| 160 | { |