KIO
commandlauncherjob.cpp
33 KIO::CommandLauncherJob::CommandLauncherJob(const QString &executable, const QStringList &args, QObject *parent)
91 d->m_processRunner = KProcessRunner::fromCommand(d->m_command, d->m_desktopName, d->m_executable,
static Ptr serviceByDesktopName(const QString &_name)
CommandLauncherJob(const QString &command, QObject *parent=nullptr)
Creates a CommandLauncherJob.
Definition: commandlauncherjob.cpp:27
void description(KJob *job, const QString &title, const QPair< QString, QString > &field1=QPair< QString, QString >(), const QPair< QString, QString > &field2=QPair< QString, QString >())
void setStartupId(const QByteArray &startupId)
Sets the startup notification id of the command launch.
Definition: commandlauncherjob.cpp:61
QString i18nc(const char *context, const char *text, const TYPE &arg...)
bool isEmpty() const const
void setDesktopName(const QString &desktopName)
Set the name of the desktop file (e.g. "org.kde.dolphin", the extension is optional).
Definition: commandlauncherjob.cpp:56
T & first()
KCOREADDONS_EXPORT QStringList splitArgs(const QString &cmd, Options flags=NoOptions, Errors *err=nullptr)
void setWorkingDirectory(const QString &workingDirectory)
Sets the working directory from which to run the command.
Definition: commandlauncherjob.cpp:66
KCOREADDONS_EXPORT QString quoteArg(const QString &arg)
bool isNull() const const
KCOREADDONS_EXPORT QString joinArgs(const QStringList &args)
void setIcon(const QString &iconName)
Sets the icon for the startup notification.
Definition: commandlauncherjob.cpp:51
void setExecutable(const QString &executable)
Sets the name of the executable, used in the startup notification (see KStartupInfoData::setBin()).
Definition: commandlauncherjob.cpp:46
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QObject * parent() const const
QString name() const
Q_EMITQ_EMIT
QString errorText() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Wed Jan 27 2021 23:00:04 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2021 The KDE developers.
Generated on Wed Jan 27 2021 23:00:04 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.