KIO
commandlauncherjob.h
36 * For error handling, either connect to the result() signal, or for a simple messagebox on error,
51 * If @p command is instead a filename, consider using the other constructor, even if no args are present.
66 explicit CommandLauncherJob(const QString &executable, const QStringList &args, QObject *parent = nullptr);
76 * Sets the command to execute, this will change the command that was set by any of the constructors.
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
KJob(QObject *parent=nullptr)
Q_SCRIPTABLE Q_NOREPLY void start()
QObject(QObject *parent)
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:49:37 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:49:37 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.