KIO
commandlauncherjob.cpp
38KIO::CommandLauncherJob::CommandLauncherJob(const QString &executable, const QStringList &args, QObject *parent)
121 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:70
QString command() const
Returns the command executed by this job.
Definition commandlauncherjob.cpp:57
void setExecutable(const QString &executable)
Sets the name of the executable, used in the startup notification (see KStartupInfoData::setBin()).
Definition commandlauncherjob.cpp:65
void setWorkingDirectory(const QString &workingDirectory)
Sets the working directory from which to run the command.
Definition commandlauncherjob.cpp:80
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:52
void setProcessEnvironment(const QProcessEnvironment &environment)
Can be used to pass environment variables to the child process.
Definition commandlauncherjob.cpp:90
void setStartupId(const QByteArray &startupId)
Sets the platform-specific startup id of the command launch.
Definition commandlauncherjob.cpp:75
QString workingDirectory() const
Returns the working directory, which was previously set with setWorkingDirectory().
Definition commandlauncherjob.cpp:85
CommandLauncherJob(const QString &command, QObject *parent=nullptr)
Creates a CommandLauncherJob.
Definition commandlauncherjob.cpp:31
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 Dec 27 2024 11:48:40 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 27 2024 11:48:40 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.