KIO
krun.h
Go to the documentation of this file.
373 static bool checkStartupNotify(const QString& binName, const KService* service, bool* silent_arg,
Definition krun_p.h:78
static bool checkStartupNotify(const QString &binName, const KService *service, bool *silent_arg, QByteArray *wmclass_arg)
Definition krun.cpp:651
virtual void slotStatResult(KJob *)
This slot is called when the 'stat' job has finished.
Definition krun.cpp:1364
virtual void init()
All following protected methods are used by subclasses of KRun!
Definition krun.cpp:1139
QString suggestedFileName() const
Suggested file name given by the server (e.g.
Definition krun.cpp:1602
void slotTimeout()
All following protected slots are used by subclasses of KRun!
Definition krun.cpp:1330
void slotScanFinished(KJob *)
This slot is called when the scan job is finished.
Definition krun.cpp:1434
static QStringList processDesktopExec(const KService &_service, const KUrl::List &_urls, bool tempFiles=false, const QString &suggestedFileName=QString())
Processes a Exec= line as found in .desktop files.
Definition krun.cpp:407
static bool isExecutableFile(const KUrl &url, const QString &mimetype)
Returns whether the url of mimetype is executable.
Definition krun.cpp:100
static bool runCommand(const QString &cmd, QWidget *window)
Run the given shell command and notifies KDE of the starting of the application.
Definition krun.cpp:1057
void slotScanMimeType(KIO::Job *, const QString &type)
This slot is called when the scan job has found out the mime type.
Definition krun.cpp:1425
void setRunExecutables(bool b)
Sets whether executables, .desktop files or shell scripts should be run by KRun.
Definition krun.cpp:1592
static bool displayOpenWithDialog(const KUrl::List &lst, QWidget *window, bool tempFiles=false, const QString &suggestedFileName=QString(), const QByteArray &asn=QByteArray())
Display the Open-With dialog for those URLs, and run the chosen application.
Definition krun.cpp:193
void setEnableExternalBrowser(bool b)
Sets whether the external webbrowser setting should be honoured.
Definition krun.cpp:1577
void setSuggestedFileName(const QString &fileName)
Sets the file name to use in the case of downloading the file to a tempfile in order to give to a non...
Definition krun.cpp:1597
KRun(const KUrl &url, QWidget *window, mode_t mode=0, bool isLocalFile=false, bool showProgressInfo=true, const QByteArray &asn=QByteArray())
Definition krun.cpp:1101
void setPreferredService(const QString &desktopEntryName)
Set the preferred service for opening this URL, after its mimetype will have been found by KRun.
Definition krun.cpp:1587
virtual void foundMimeType(const QString &type)
Called if the mimetype has been detected.
Definition krun.cpp:1472
static bool runUrl(const KUrl &url, const QString &mimetype, QWidget *window, bool tempFile=false, bool runExecutables=true, const QString &suggestedFileName=QString(), const QByteArray &asn=QByteArray())
Open the given URL.
Definition krun.cpp:122
void setDoScanFile(bool scanFile)
Indicate that the next action is to scan the file.
Definition krun.cpp:1665
static bool isExecutable(const QString &serviceType)
Returns whether serviceType refers to an executable program instead of a data file.
Definition krun.cpp:1607
static QString binaryName(const QString &execLine, bool removePath)
Given a full command line (e.g.
Definition krun.cpp:568
void setProgressInfo(bool progressInfo)
Sets whether progress information shall be shown.
Definition krun.cpp:1630
static bool run(const KService &service, const KUrl::List &urls, QWidget *window, bool tempFiles=false, const QString &suggestedFileName=QString(), const QByteArray &asn=QByteArray())
Open a list of URLs with a certain service (application).
Definition krun.cpp:984
void mimeTypeDetermined(const QString &mimeType)
Call this from subclasses when you have determined the mimetype.
Definition krun.cpp:1457
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.14.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.14.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.