KIO
commandlauncherjob.cpp
37KIO::CommandLauncherJob::CommandLauncherJob(const QString &executable, const QStringList &args, QObject *parent)
120 KProcessRunner::fromExecutable(d->m_executable, d->m_arguments, d->m_desktopName, d->m_startupId, d->m_workingDirectory, d->m_environment);
void setDesktopName(const QString &desktopName)
Set the name of the desktop file (e.g. "org.kde.dolphin", without the ".desktop" filename extension).
Definition commandlauncherjob.cpp:69
QString command() const
Returns the command executed by this job.
Definition commandlauncherjob.cpp:56
void setExecutable(const QString &executable)
Sets the name of the executable, used in the startup notification (see KStartupInfoData::setBin()).
Definition commandlauncherjob.cpp:64
void setWorkingDirectory(const QString &workingDirectory)
Sets the working directory from which to run the command.
Definition commandlauncherjob.cpp:79
void setCommand(const QString &command)
Sets the command to execute, this will change the command that was set by any of the constructors.
Definition commandlauncherjob.cpp:51
void setProcessEnvironment(const QProcessEnvironment &environment)
Can be used to pass environment variables to the child process.
Definition commandlauncherjob.cpp:89
void setStartupId(const QByteArray &startupId)
Sets the platform-specific startup id of the command launch.
Definition commandlauncherjob.cpp:74
QString workingDirectory() const
Returns the working directory, which was previously set with setWorkingDirectory().
Definition commandlauncherjob.cpp:84
CommandLauncherJob(const QString &command, QObject *parent=nullptr)
Creates a CommandLauncherJob.
Definition commandlauncherjob.cpp:30
static Ptr serviceByDesktopName(const QString &_name)
QString name() const
QString i18nc(const char *context, const char *text, const TYPE &arg...)
KCOREADDONS_EXPORT QStringList splitArgs(const QString &cmd, Options flags=NoOptions, Errors *err=nullptr)
KCOREADDONS_EXPORT QString quoteArg(const QString &arg)
KCOREADDONS_EXPORT QString joinArgs(const QStringList &args)
T & first()
bool isEmpty() const const
InheritFromParent
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:04:58 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:04:58 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.