Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 1f9eb832ba1e4b88d9a5c2b384813bb4 > files > 5315

kdelibs3-apidocs-3.5.10-31.fc15.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en_US" xml:lang="en_US">

<head>
  <title>kio/kio: KRun Class Reference (kio/kio)</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

  <meta http-equiv="Content-Style-Type" content="text/css" />

  <meta http-equiv="pics-label" content='(pics-1.1 "http://www.icra.org/ratingsv02.html" comment "ICRAonline DE v2.0" l gen true for "http://www.kde.org"  r (nz 1 vz 1 lz 1 oz 1 cb 1) "http://www.rsac.org/ratingsv01.html" l gen true for "http://www.kde.org"  r (n 0 s 0 v 0 l 0))' />

  <meta name="trademark" content="KDE e.V." />
  <meta name="description" content="K Desktop Environment Homepage, KDE.org" />
  <meta name="MSSmartTagsPreventParsing" content="true" />
  <meta name="robots" content="all" />

  <link rel="shortcut icon" href="../../../favicon.ico" />

<link rel="stylesheet" media="screen" type="text/css" title="APIDOX" href="doxygen.css" />



</head>

<body>

<div id="nav_header_top" align="right">
  <a href="#content" class="doNotDisplay" accesskey="2">Skip to main content ::</a>

  <a href="../../.."><img id="nav_header_logo" alt="Home" align="left" src="../../../kde_gear_64.png" border="0" /></a>
  <span class="doNotDisplay">::</span>

  <div id="nav_header_title" align="left">KDE API Reference</div>


</div>

<div id="nav_header_bottom" align="right">
  <span class="doNotDisplay">:: <a href="#navigation" accesskey="5">Skip to Link Menu</a><br/></span>
  <div id="nav_header_bottom_right" style="text-align: left;">
/ <a href="../../..">API Reference</a>
 / <a href="../../html/index.html">kio</a> / <a href=".">kio</a>
  </div>
</div>


<table id="main" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
      <td valign="top" class="menuheader" height="0"></td>

  <td id="contentcolumn" valign="top" rowspan="2" >
    <div id="content" style="padding-top: 0px;"><div style="width:100%; margin: 0px; padding: 0px;">
    <a name="content"></a>


<!-- Generated by Doxygen 1.7.4 -->
</div>
<div class="header">
  <div class="summary">
<a href="#signals">Signals</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pro-slots">Protected Slots</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a>  </div>
  <div class="headertitle">
<div class="title">KRun Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="KRun" --><!-- doxytag: inherits="QObject" -->
<p>To open files with their associated applications in KDE, use <a class="el" href="classKRun.html" title="To open files with their associated applications in KDE, use KRun.">KRun</a>.  
 <a href="classKRun.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="krun_8h_source.html">krun.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for KRun:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classKRun.png" usemap="#KRun_map" alt=""/>
  <map id="KRun_map" name="KRun_map">
<area href="qobject.html" alt="QObject" shape="rect" coords="0,0,59,24"/>
</map>
 </div></div>

<p><a href="classKRun-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="signals"></a>
Signals</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKRun.html#a0811ba8471c6a70e6bd1f7c16f4ca775">finished</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKRun.html#a8b6f349976e50ef379fdda66037d3afb">error</a> ()</td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKRun.html#adbd4d18bcb4c57ed5cac39f7c75e0617">KRun</a> (const KURL &amp;url, mode_t mode=0, bool isLocalFile=false, bool showProgressInfo=true)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKRun.html#aaf297eec7c336036bda8c6465f80d094">KRun</a> (const KURL &amp;url, <a class="elRef" href="qwidget.html">QWidget</a> *window, mode_t mode=0, bool isLocalFile=false, bool showProgressInfo=true)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKRun.html#ad127a5f5753259a996800dcc0352170f">~KRun</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKRun.html#aae33f4c6a880306e005d06a15c903a88">abort</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKRun.html#a0cd3c8ce5a9b54ee6cbc45fd36ca4444">hasError</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKRun.html#a52e5ce498a5af56eed4d6b36bdb93184">hasFinished</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKRun.html#af986114ef3ce471705f5c62f5c847de4">autoDelete</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKRun.html#ab5e7b0ec20b3986a66158b1a15f9fdef">setAutoDelete</a> (bool b)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKRun.html#a84f99406c29dc580299e25ea779c100c">setPreferredService</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;desktopEntryName)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKRun.html#a67257f7b3e7feef8b16d49485fd221f5">setRunExecutables</a> (bool b)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKRun.html#a6a9a9f87d73a222e02a54f20e10d707f">setEnableExternalBrowser</a> (bool b)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKRun.html#a768ff89c98ff1315e002dac28f40cc1d">setSuggestedFileName</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;fileName)</td></tr>
<tr><td colspan="2"><h2><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static pid_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKRun.html#ad86a1cb147017c650f441f2a8abbb81f">run</a> (const <a class="el" href="classKService.html">KService</a> &amp;_service, const KURL::List &amp;_urls, <a class="elRef" href="qwidget.html">QWidget</a> *window, bool tempFiles=false)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static pid_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKRun.html#a3a73dc0693a3b17dd8f4c4dac18ae2b5">run</a> (const <a class="el" href="classKService.html">KService</a> &amp;_service, const KURL::List &amp;_urls, bool tempFiles)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a377f9576dd22535d6008e8ee078cbdba"></a><!-- doxytag: member="KRun::run" ref="a377f9576dd22535d6008e8ee078cbdba" args="(const KService &amp;_service, const KURL::List &amp;_urls)" -->
static pid_t&#160;</td><td class="memItemRight" valign="bottom"><b>run</b> (const <a class="el" href="classKService.html">KService</a> &amp;_service, const KURL::List &amp;_urls)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static pid_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKRun.html#adbccd08c050f7b7f6a871f559d2063df">run</a> (const <a class="el" href="classKService.html">KService</a> &amp;_service, const KURL::List &amp;_urls, <a class="elRef" href="qwidget.html">QWidget</a> *window, bool tempFiles, const <a class="elRef" href="qstring.html">QString</a> &amp;suggestedFileName)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static pid_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKRun.html#a995bc1308f9ccd35cf42b4d1e448006d">run</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;_exec, const KURL::List &amp;_urls, const <a class="elRef" href="qstring.html">QString</a> &amp;_name=QString::null, const <a class="elRef" href="qstring.html">QString</a> &amp;_icon=QString::null, const <a class="elRef" href="qstring.html">QString</a> &amp;_obsolete1=QString::null, const <a class="elRef" href="qstring.html">QString</a> &amp;_obsolete2=QString::null)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static pid_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKRun.html#ac9b7d470640917274f3091c6e3eb305e">runURL</a> (const KURL &amp;_url, const <a class="elRef" href="qstring.html">QString</a> &amp;_mimetype, bool tempFile, bool runExecutables)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0beecb58d77883b7434f7d01c7800623"></a><!-- doxytag: member="KRun::runURL" ref="a0beecb58d77883b7434f7d01c7800623" args="(const KURL &amp;_url, const QString &amp;_mimetype, bool tempFile)" -->
static pid_t&#160;</td><td class="memItemRight" valign="bottom"><b>runURL</b> (const KURL &amp;_url, const <a class="elRef" href="qstring.html">QString</a> &amp;_mimetype, bool tempFile)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a39697973c358d95bf544e8164cd8145c"></a><!-- doxytag: member="KRun::runURL" ref="a39697973c358d95bf544e8164cd8145c" args="(const KURL &amp;_url, const QString &amp;_mimetype)" -->
static pid_t&#160;</td><td class="memItemRight" valign="bottom"><b>runURL</b> (const KURL &amp;_url, const <a class="elRef" href="qstring.html">QString</a> &amp;_mimetype)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static pid_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKRun.html#ad897535fa88959dd80adf9afb0a4e447">runURL</a> (const KURL &amp;_url, const <a class="elRef" href="qstring.html">QString</a> &amp;_mimetype, bool tempFile, bool runExecutables, const <a class="elRef" href="qstring.html">QString</a> &amp;suggestedFileName)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static pid_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKRun.html#acbf97c72c343ef24a427e744d63139bc">runCommand</a> (<a class="elRef" href="qstring.html">QString</a> cmd)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static pid_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKRun.html#a83990b8cb95e5a1440ec63fe8d132e93">runCommand</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;cmd, const <a class="elRef" href="qstring.html">QString</a> &amp;execName, const <a class="elRef" href="qstring.html">QString</a> &amp;icon)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKRun.html#a59f662f719e5941f79b56c65c2beeac3">displayOpenWithDialog</a> (const KURL::List &amp;lst, bool tempFiles)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2d97e9c5e524a6f4fc58f87888d8b75c"></a><!-- doxytag: member="KRun::displayOpenWithDialog" ref="a2d97e9c5e524a6f4fc58f87888d8b75c" args="(const KURL::List &amp;lst)" -->
static bool&#160;</td><td class="memItemRight" valign="bottom"><b>displayOpenWithDialog</b> (const KURL::List &amp;lst)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKRun.html#a7cac381825d4143b03bc19fd563a0674">displayOpenWithDialog</a> (const KURL::List &amp;lst, bool tempFiles, const <a class="elRef" href="qstring.html">QString</a> &amp;suggestedFileName)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKRun.html#a1460a9e90e2002bc1448e8824800da97">shellQuote</a> (<a class="elRef" href="qstring.html">QString</a> &amp;_str)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="elRef" href="qstringlist.html">QStringList</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKRun.html#aef7877016f7c1befedd20dd38549907a">processDesktopExec</a> (const <a class="el" href="classKService.html">KService</a> &amp;_service, const KURL::List &amp;_urls, bool has_shell, bool tempFiles)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a84f4539572e7c0ae4029cf9f0493e8e0"></a><!-- doxytag: member="KRun::processDesktopExec" ref="a84f4539572e7c0ae4029cf9f0493e8e0" args="(const KService &amp;_service, const KURL::List &amp;_urls, bool has_shell)" -->
static <a class="elRef" href="qstringlist.html">QStringList</a>&#160;</td><td class="memItemRight" valign="bottom"><b>processDesktopExec</b> (const <a class="el" href="classKService.html">KService</a> &amp;_service, const KURL::List &amp;_urls, bool has_shell)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="elRef" href="qstringlist.html">QStringList</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKRun.html#aebeb8a36dfe9a31f0398c7123d91adb5">processDesktopExec</a> (const <a class="el" href="classKService.html">KService</a> &amp;_service, const KURL::List &amp;_urls, bool has_shell, bool tempFiles, const <a class="elRef" href="qstring.html">QString</a> &amp;suggestedFileName)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="elRef" href="qstring.html">QString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKRun.html#ae438b189a47858938d1428999a82a7c0">binaryName</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;execLine, bool removePath)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKRun.html#abe21b7573533035c6613ebca1bf0dd18">isExecutable</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;serviceType)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKRun.html#a3b89fed66b4a7a9af9353caf6782ab55">isExecutableFile</a> (const KURL &amp;url, const <a class="elRef" href="qstring.html">QString</a> &amp;mimetype)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a649e991b5d8de15b3d95b6db2255adcf"></a><!-- doxytag: member="KRun::checkStartupNotify" ref="a649e991b5d8de15b3d95b6db2255adcf" args="(const QString &amp;binName, const KService *service, bool *silent_arg, QCString *wmclass_arg)" -->
static bool&#160;</td><td class="memItemRight" valign="bottom"><b>checkStartupNotify</b> (const <a class="elRef" href="qstring.html">QString</a> &amp;binName, const <a class="el" href="classKService.html">KService</a> *service, bool *silent_arg, <a class="elRef" href="qcstring.html">QCString</a> *wmclass_arg)</td></tr>
<tr><td colspan="2"><h2><a name="pro-slots"></a>
Protected Slots</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a316af7ca3419dc3dff6b5f287c7ebd38"></a><!-- doxytag: member="KRun::slotTimeout" ref="a316af7ca3419dc3dff6b5f287c7ebd38" args="()" -->
void&#160;</td><td class="memItemRight" valign="bottom"><b>slotTimeout</b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aeda64203edd9fa6d781efc73c88816c3"></a><!-- doxytag: member="KRun::slotScanFinished" ref="aeda64203edd9fa6d781efc73c88816c3" args="(KIO::Job *)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><b>slotScanFinished</b> (<a class="el" href="classKIO_1_1Job.html">KIO::Job</a> *)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5ec73853d576a869978e3e6357c19f3f"></a><!-- doxytag: member="KRun::slotScanMimeType" ref="a5ec73853d576a869978e3e6357c19f3f" args="(KIO::Job *, const QString &amp;type)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><b>slotScanMimeType</b> (<a class="el" href="classKIO_1_1Job.html">KIO::Job</a> *, const <a class="elRef" href="qstring.html">QString</a> &amp;type)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a32570bbf12b972046ea34b740fe5f079"></a><!-- doxytag: member="KRun::slotStatResult" ref="a32570bbf12b972046ea34b740fe5f079" args="(KIO::Job *)" -->
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>slotStatResult</b> (<a class="el" href="classKIO_1_1Job.html">KIO::Job</a> *)</td></tr>
<tr><td colspan="2"><h2><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a17293bda527c744e90319ecf1e2f5cdc"></a><!-- doxytag: member="KRun::init" ref="a17293bda527c744e90319ecf1e2f5cdc" args="()" -->
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>init</b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a65904e78a947ee42b0cb3a191e52fe3d"></a><!-- doxytag: member="KRun::scanFile" ref="a65904e78a947ee42b0cb3a191e52fe3d" args="()" -->
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>scanFile</b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKRun.html#abdcfdd7a385d6f05a370c74391f23181">foundMimeType</a> (const <a class="elRef" href="qstring.html">QString</a> &amp;_type)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab8a09b894ea321fa30b901fdd805938a"></a><!-- doxytag: member="KRun::killJob" ref="ab8a09b894ea321fa30b901fdd805938a" args="()" -->
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>killJob</b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a36e9201aaf1d8eeb9eb0d45d062c5dea"></a><!-- doxytag: member="KRun::virtual_hook" ref="a36e9201aaf1d8eeb9eb0d45d062c5dea" args="(int id, void *data)" -->
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>virtual_hook</b> (int id, void *data)</td></tr>
<tr><td colspan="2"><h2><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9ddb14dd16484c69410ae3757762b50d"></a><!-- doxytag: member="KRun::m_strURL" ref="a9ddb14dd16484c69410ae3757762b50d" args="" -->
KURL&#160;</td><td class="memItemRight" valign="bottom"><b>m_strURL</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0f58f52af1fccae154de0e0ef275ba27"></a><!-- doxytag: member="KRun::m_bFault" ref="a0f58f52af1fccae154de0e0ef275ba27" args="" -->
bool&#160;</td><td class="memItemRight" valign="bottom"><b>m_bFault</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a953b77ea79b8469bec4a90bc25ba25f5"></a><!-- doxytag: member="KRun::m_bAutoDelete" ref="a953b77ea79b8469bec4a90bc25ba25f5" args="" -->
bool&#160;</td><td class="memItemRight" valign="bottom"><b>m_bAutoDelete</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a62b8e13c6e6bef109e9dcd8f2474f488"></a><!-- doxytag: member="KRun::m_bProgressInfo" ref="a62b8e13c6e6bef109e9dcd8f2474f488" args="" -->
bool&#160;</td><td class="memItemRight" valign="bottom"><b>m_bProgressInfo</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a71623dd7b2609f4939151a34ee6ff3ed"></a><!-- doxytag: member="KRun::m_bFinished" ref="a71623dd7b2609f4939151a34ee6ff3ed" args="" -->
bool&#160;</td><td class="memItemRight" valign="bottom"><b>m_bFinished</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4d69af5f4bcef51efac8f2825a6a03e3"></a><!-- doxytag: member="KRun::m_job" ref="a4d69af5f4bcef51efac8f2825a6a03e3" args="" -->
<a class="el" href="classKIO_1_1Job.html">KIO::Job</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>m_job</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad999e54a3e61efe76433255019025d1b"></a><!-- doxytag: member="KRun::m_timer" ref="ad999e54a3e61efe76433255019025d1b" args="" -->
<a class="elRef" href="qtimer.html">QTimer</a>&#160;</td><td class="memItemRight" valign="bottom"><b>m_timer</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKRun.html#a13ae5ae5f6020360eea6e2d8ab20b62a">m_bScanFile</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a30a365347bc7bfa40b6aa54404b4eba4"></a><!-- doxytag: member="KRun::m_bIsDirectory" ref="a30a365347bc7bfa40b6aa54404b4eba4" args="" -->
bool&#160;</td><td class="memItemRight" valign="bottom"><b>m_bIsDirectory</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKRun.html#a259e6cbfe56fd75f66816df50e77ef01">m_bInit</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a25f7956ff617ced85bd6cf4fb76ed9e0"></a><!-- doxytag: member="KRun::m_bIsLocalFile" ref="a25f7956ff617ced85bd6cf4fb76ed9e0" args="" -->
bool&#160;</td><td class="memItemRight" valign="bottom"><b>m_bIsLocalFile</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="affc1efc10c705c1ef7eacff0afb11549"></a><!-- doxytag: member="KRun::m_mode" ref="affc1efc10c705c1ef7eacff0afb11549" args="" -->
mode_t&#160;</td><td class="memItemRight" valign="bottom"><b>m_mode</b></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>To open files with their associated applications in KDE, use <a class="el" href="classKRun.html" title="To open files with their associated applications in KDE, use KRun.">KRun</a>. </p>
<p>It can execute any desktop entry, as well as any file, using the default application or another application "bound" to the file type (or URL protocol).</p>
<p>In that example, the mimetype of the file is not known by the application, so a <a class="el" href="classKRun.html" title="To open files with their associated applications in KDE, use KRun.">KRun</a> instance must be created. It will determine the mimetype by itself. If the mimetype is known, or if you even know the service (application) to use for this file, use one of the static methods.</p>
<p>By default <a class="el" href="classKRun.html" title="To open files with their associated applications in KDE, use KRun.">KRun</a> uses auto deletion. It causes the <a class="el" href="classKRun.html" title="To open files with their associated applications in KDE, use KRun.">KRun</a> instance to delete itself when the it finished its task. If you allocate the <a class="el" href="classKRun.html" title="To open files with their associated applications in KDE, use KRun.">KRun</a> object on the stack you must disable auto deletion, otherwise it will crash.</p>
<p>Opens files with their associated applications in KDE </p>

<p>Definition at line <a class="el" href="krun_8h_source.html#l00058">58</a> of file <a class="el" href="krun_8h_source.html">krun.h</a>.</p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="adbd4d18bcb4c57ed5cac39f7c75e0617"></a><!-- doxytag: member="KRun::KRun" ref="adbd4d18bcb4c57ed5cac39f7c75e0617" args="(const KURL &amp;url, mode_t mode=0, bool isLocalFile=false, bool showProgressInfo=true)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">KRun::KRun </td>
          <td>(</td>
          <td class="paramtype">const KURL &amp;&#160;</td>
          <td class="paramname"><em>url</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">mode_t&#160;</td>
          <td class="paramname"><em>mode</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>isLocalFile</em> = <code>false</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>showProgressInfo</em> = <code>true</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Create a <a class="el" href="classKRun.html" title="To open files with their associated applications in KDE, use KRun.">KRun</a> object to run the preferred application for a file/URL. </p>
<p><a class="el" href="classKRun.html" title="To open files with their associated applications in KDE, use KRun.">KRun</a> will first determine the type of the file, and will then run the associated application.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">url</td><td>the URL of the file or directory to 'run'</td></tr>
    <tr><td class="paramname">mode</td><td>The <code>st_mode</code> field of <code>struct stat</code>. If you don't know this set it to 0.</td></tr>
    <tr><td class="paramname">isLocalFile</td><td>If this parameter is set to <code>false</code> then <code>url</code> is examined to find out whether it is a local URL or not. This flag is just used to improve speed, since the function KURL::isLocalFile is a bit slow.</td></tr>
    <tr><td class="paramname">showProgressInfo</td><td>Whether to show progress information when determining the type of the file (i.e. when using <a class="el" href="namespaceKIO.html#a4f24010fae6634055f8111c07e4fa068" title="Find all details for one file or directory.">KIO::stat</a> and <a class="el" href="namespaceKIO.html#a612253f480b1c383e6c803f6092a6440" title="Find mimetype for one file or directory.">KIO::mimetype</a>) Before you set this to false to avoid a dialog box, think about a very slow FTP server... It is always better to provide progress info in such cases. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="krun_8cpp_source.html#l00816">816</a> of file <a class="el" href="krun_8cpp_source.html">krun.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="aaf297eec7c336036bda8c6465f80d094"></a><!-- doxytag: member="KRun::KRun" ref="aaf297eec7c336036bda8c6465f80d094" args="(const KURL &amp;url, QWidget *window, mode_t mode=0, bool isLocalFile=false, bool showProgressInfo=true)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">KRun::KRun </td>
          <td>(</td>
          <td class="paramtype">const KURL &amp;&#160;</td>
          <td class="paramname"><em>url</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="elRef" href="qwidget.html">QWidget</a> *&#160;</td>
          <td class="paramname"><em>window</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">mode_t&#160;</td>
          <td class="paramname"><em>mode</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>isLocalFile</em> = <code>false</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>showProgressInfo</em> = <code>true</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>BIC: Combine with the above ctor for KDE 4.0. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">window</td><td>The top-level widget of the app that invoked this object. It is used to make sure private information like passwords are properly handled per application. </td></tr>
    <tr><td class="paramname">url</td><td>the URL of the file or directory to 'run'</td></tr>
    <tr><td class="paramname">mode</td><td>The <code>st_mode</code> field of <code>struct stat</code>. If you don't know this set it to 0.</td></tr>
    <tr><td class="paramname">isLocalFile</td><td>If this parameter is set to <code>false</code> then <code>url</code> is examined to find out whether it is a local URL or not. This flag is just used to improve speed, since the function KURL::isLocalFile is a bit slow.</td></tr>
    <tr><td class="paramname">showProgressInfo</td><td>Whether to show progress information when determining the type of the file (i.e. when using <a class="el" href="namespaceKIO.html#a4f24010fae6634055f8111c07e4fa068" title="Find all details for one file or directory.">KIO::stat</a> and <a class="el" href="namespaceKIO.html#a612253f480b1c383e6c803f6092a6440" title="Find mimetype for one file or directory.">KIO::mimetype</a>) Before you set this to false to avoid a dialog box, think about a very slow FTP server... It is always better to provide progress info in such cases. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="krun_8cpp_source.html#l00822">822</a> of file <a class="el" href="krun_8cpp_source.html">krun.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ad127a5f5753259a996800dcc0352170f"></a><!-- doxytag: member="KRun::~KRun" ref="ad127a5f5753259a996800dcc0352170f" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">KRun::~KRun </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Destructor. </p>
<p>Don't call it yourself, since a <a class="el" href="classKRun.html" title="To open files with their associated applications in KDE, use KRun.">KRun</a> object auto-deletes itself. </p>

<p>Definition at line <a class="el" href="krun_8cpp_source.html#l00987">987</a> of file <a class="el" href="krun_8cpp_source.html">krun.cpp</a>.</p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="aae33f4c6a880306e005d06a15c903a88"></a><!-- doxytag: member="KRun::abort" ref="aae33f4c6a880306e005d06a15c903a88" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KRun::abort </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Abort this <a class="el" href="classKRun.html" title="To open files with their associated applications in KDE, use KRun.">KRun</a>. </p>
<p>This kills any jobs launched by it, and leads to deletion if auto-deletion is on. This is much safer than deleting the <a class="el" href="classKRun.html" title="To open files with their associated applications in KDE, use KRun.">KRun</a> (in case it's currently showing an error dialog box, for instance) </p>

<p>Definition at line <a class="el" href="krun_8cpp_source.html#l01274">1274</a> of file <a class="el" href="krun_8cpp_source.html">krun.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="af986114ef3ce471705f5c62f5c847de4"></a><!-- doxytag: member="KRun::autoDelete" ref="af986114ef3ce471705f5c62f5c847de4" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool KRun::autoDelete </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Checks whether auto delete is activated. </p>
<p>Auto-deletion causes the <a class="el" href="classKRun.html" title="To open files with their associated applications in KDE, use KRun.">KRun</a> instance to delete itself when it finished its task. By default auto deletion is on. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if auto deletion is on, false otherwise </dd></dl>

<p>Definition at line <a class="el" href="krun_8h_source.html#l00150">150</a> of file <a class="el" href="krun_8h_source.html">krun.h</a>.</p>

</div>
</div>
<a class="anchor" id="ae438b189a47858938d1428999a82a7c0"></a><!-- doxytag: member="KRun::binaryName" ref="ae438b189a47858938d1428999a82a7c0" args="(const QString &amp;execLine, bool removePath)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="qstring.html">QString</a> KRun::binaryName </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>execLine</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>removePath</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Given a full command line (e.g. </p>
<p>the Exec= line from a .desktop file), extract the name of the binary being run. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">execLine</td><td>the full command line </td></tr>
    <tr><td class="paramname">removePath</td><td>if true, remove a (relative or absolute) path. E.g. /usr/bin/ls becomes ls. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the name of the binary to run </dd></dl>
<dl class="since"><dt><b>Since:</b></dt><dd>3.1 </dd></dl>

<p>Definition at line <a class="el" href="krun_8cpp_source.html#l00527">527</a> of file <a class="el" href="krun_8cpp_source.html">krun.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a59f662f719e5941f79b56c65c2beeac3"></a><!-- doxytag: member="KRun::displayOpenWithDialog" ref="a59f662f719e5941f79b56c65c2beeac3" args="(const KURL::List &amp;lst, bool tempFiles)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool KRun::displayOpenWithDialog </td>
          <td>(</td>
          <td class="paramtype">const KURL::List &amp;&#160;</td>
          <td class="paramname"><em>lst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>tempFiles</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Display the Open-With dialog for those URLs, and run the chosen application. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">lst</td><td>the list of applications to run </td></tr>
    <tr><td class="paramname">tempFiles</td><td>if true and lst are local files, they will be deleted when the application exits. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>false if the dialog was canceled </dd></dl>

<p>Definition at line <a class="el" href="krun_8cpp_source.html#l00193">193</a> of file <a class="el" href="krun_8cpp_source.html">krun.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a7cac381825d4143b03bc19fd563a0674"></a><!-- doxytag: member="KRun::displayOpenWithDialog" ref="a7cac381825d4143b03bc19fd563a0674" args="(const KURL::List &amp;lst, bool tempFiles, const QString &amp;suggestedFileName)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool KRun::displayOpenWithDialog </td>
          <td>(</td>
          <td class="paramtype">const KURL::List &amp;&#160;</td>
          <td class="paramname"><em>lst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>tempFiles</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>suggestedFileName</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="since"><dt><b>Since:</b></dt><dd>3.5.3 </dd></dl>

<p>Definition at line <a class="el" href="krun_8cpp_source.html#l00198">198</a> of file <a class="el" href="krun_8cpp_source.html">krun.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a8b6f349976e50ef379fdda66037d3afb"></a><!-- doxytag: member="KRun::error" ref="a8b6f349976e50ef379fdda66037d3afb" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KRun::error </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [signal]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Emitted when the operation had an error. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKRun.html#a0cd3c8ce5a9b54ee6cbc45fd36ca4444" title="Returns true if the KRun instance has an error.">hasError()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a0811ba8471c6a70e6bd1f7c16f4ca775"></a><!-- doxytag: member="KRun::finished" ref="a0811ba8471c6a70e6bd1f7c16f4ca775" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KRun::finished </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [signal]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Emitted when the operation finished. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKRun.html#a52e5ce498a5af56eed4d6b36bdb93184" title="Returns true if the KRun instance has finished.">hasFinished()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="abdcfdd7a385d6f05a370c74391f23181"></a><!-- doxytag: member="KRun::foundMimeType" ref="abdcfdd7a385d6f05a370c74391f23181" args="(const QString &amp;_type)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KRun::foundMimeType </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>_type</em></td><td>)</td>
          <td><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Called if the mimetype has been detected. </p>
<p>The function checks whether the document and appends the gzip protocol to the URL. Otherwise runURL is called to finish the job. </p>

<p><p>Note: the line above means that if that service failed, we'll go to runURL to maybe find another service, even though a dialog box was displayed. That's good if runURL tries another service, but it's not good if it tries the same one :} </p>
</p>

<p>Definition at line <a class="el" href="krun_8cpp_source.html#l01164">1164</a> of file <a class="el" href="krun_8cpp_source.html">krun.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a0cd3c8ce5a9b54ee6cbc45fd36ca4444"></a><!-- doxytag: member="KRun::hasError" ref="a0cd3c8ce5a9b54ee6cbc45fd36ca4444" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool KRun::hasError </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns true if the <a class="el" href="classKRun.html" title="To open files with their associated applications in KDE, use KRun.">KRun</a> instance has an error. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>true when an error occurred </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKRun.html#a8b6f349976e50ef379fdda66037d3afb" title="Emitted when the operation had an error.">error()</a> </dd></dl>

<p>Definition at line <a class="el" href="krun_8h_source.html#l00134">134</a> of file <a class="el" href="krun_8h_source.html">krun.h</a>.</p>

</div>
</div>
<a class="anchor" id="a52e5ce498a5af56eed4d6b36bdb93184"></a><!-- doxytag: member="KRun::hasFinished" ref="a52e5ce498a5af56eed4d6b36bdb93184" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool KRun::hasFinished </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns true if the <a class="el" href="classKRun.html" title="To open files with their associated applications in KDE, use KRun.">KRun</a> instance has finished. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if the <a class="el" href="classKRun.html" title="To open files with their associated applications in KDE, use KRun.">KRun</a> instance has finished </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKRun.html#a0811ba8471c6a70e6bd1f7c16f4ca775" title="Emitted when the operation finished.">finished()</a> </dd></dl>

<p>Definition at line <a class="el" href="krun_8h_source.html#l00141">141</a> of file <a class="el" href="krun_8h_source.html">krun.h</a>.</p>

</div>
</div>
<a class="anchor" id="abe21b7573533035c6613ebca1bf0dd18"></a><!-- doxytag: member="KRun::isExecutable" ref="abe21b7573533035c6613ebca1bf0dd18" args="(const QString &amp;serviceType)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool KRun::isExecutable </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>serviceType</em></td><td>)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns whether <code>serviceType</code> refers to an executable program instead of a data file. </p>
<dl class="since"><dt><b>Since:</b></dt><dd>3.2 </dd></dl>

<p>Definition at line <a class="el" href="krun_8cpp_source.html#l01314">1314</a> of file <a class="el" href="krun_8cpp_source.html">krun.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a3b89fed66b4a7a9af9353caf6782ab55"></a><!-- doxytag: member="KRun::isExecutableFile" ref="a3b89fed66b4a7a9af9353caf6782ab55" args="(const KURL &amp;url, const QString &amp;mimetype)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool KRun::isExecutableFile </td>
          <td>(</td>
          <td class="paramtype">const KURL &amp;&#160;</td>
          <td class="paramname"><em>url</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>mimetype</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns wether the <code>url</code> of <code>mimetype</code> is executable. </p>
<p>To be executable the file must pass the following rules:</p>
<ol type="1">
<li>Must reside on the local filesystem.</li>
<li>Must be marked as executable for the user by the filesystem.</li>
<li>The mime type must inherit application/x-executable or application/x-executable-script. To allow a script to run when the above rules are satisfied add the entry <div class="fragment"><pre class="fragment"> X-KDE-IsAlso=application/x-executable-script
</pre></div> to the mimetype's desktop file. <dl class="since"><dt><b>Since:</b></dt><dd>3.3 </dd></dl>
</li>
</ol>

<p>Definition at line <a class="el" href="krun_8cpp_source.html#l00097">97</a> of file <a class="el" href="krun_8cpp_source.html">krun.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="aef7877016f7c1befedd20dd38549907a"></a><!-- doxytag: member="KRun::processDesktopExec" ref="aef7877016f7c1befedd20dd38549907a" args="(const KService &amp;_service, const KURL::List &amp;_urls, bool has_shell, bool tempFiles)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="qstringlist.html">QStringList</a> KRun::processDesktopExec </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classKService.html">KService</a> &amp;&#160;</td>
          <td class="paramname"><em>_service</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const KURL::List &amp;&#160;</td>
          <td class="paramname"><em>_urls</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>has_shell</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>tempFiles</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Processes a Exec= line as found in .desktop files. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">_service</td><td>the service to extract information from. </td></tr>
    <tr><td class="paramname">_urls</td><td>The urls the service should open. </td></tr>
    <tr><td class="paramname">has_shell</td><td>If true, the arguments are going to be fed into a shell e.g by using system(). If false, the arguments are going to be fed into a exec() kind call. If the arguments are intended for an exec() kind of call and the Exec line contains shell commands then "/bin/sh -c" is added. </td></tr>
    <tr><td class="paramname">tempFiles</td><td>if true and _urls are local files, they will be deleted when the application exits. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>a list of arguments suitable for either system() or exec(). </dd></dl>

<p>Definition at line <a class="el" href="krun_8cpp_source.html#l00358">358</a> of file <a class="el" href="krun_8cpp_source.html">krun.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="aebeb8a36dfe9a31f0398c7123d91adb5"></a><!-- doxytag: member="KRun::processDesktopExec" ref="aebeb8a36dfe9a31f0398c7123d91adb5" args="(const KService &amp;_service, const KURL::List &amp;_urls, bool has_shell, bool tempFiles, const QString &amp;suggestedFileName)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="qstringlist.html">QStringList</a> KRun::processDesktopExec </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classKService.html">KService</a> &amp;&#160;</td>
          <td class="paramname"><em>_service</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const KURL::List &amp;&#160;</td>
          <td class="paramname"><em>_urls</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>has_shell</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>tempFiles</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>suggestedFileName</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="since"><dt><b>Since:</b></dt><dd>3.5.3 </dd></dl>

<p><p>compatibility hack -- KDE 4: remove </p>
</p>

<p>Definition at line <a class="el" href="krun_8cpp_source.html#l00363">363</a> of file <a class="el" href="krun_8cpp_source.html">krun.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a3a73dc0693a3b17dd8f4c4dac18ae2b5"></a><!-- doxytag: member="KRun::run" ref="a3a73dc0693a3b17dd8f4c4dac18ae2b5" args="(const KService &amp;_service, const KURL::List &amp;_urls, bool tempFiles)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">pid_t KRun::run </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classKService.html">KService</a> &amp;&#160;</td>
          <td class="paramname"><em>_service</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const KURL::List &amp;&#160;</td>
          <td class="paramname"><em>_urls</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>tempFiles</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Open a list of URLs with a certain service (application). </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">_service</td><td>the service to run </td></tr>
    <tr><td class="paramname">_urls</td><td>the list of URLs, can be empty (app launched without argument) </td></tr>
    <tr><td class="paramname">tempFiles</td><td>if true and _urls are local files, they will be deleted when the application exits. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the process id, or 0 on error </dd></dl>

<p>Definition at line <a class="el" href="krun_8cpp_source.html#l00730">730</a> of file <a class="el" href="krun_8cpp_source.html">krun.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="adbccd08c050f7b7f6a871f559d2063df"></a><!-- doxytag: member="KRun::run" ref="adbccd08c050f7b7f6a871f559d2063df" args="(const KService &amp;_service, const KURL::List &amp;_urls, QWidget *window, bool tempFiles, const QString &amp;suggestedFileName)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">pid_t KRun::run </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classKService.html">KService</a> &amp;&#160;</td>
          <td class="paramname"><em>_service</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const KURL::List &amp;&#160;</td>
          <td class="paramname"><em>_urls</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="elRef" href="qwidget.html">QWidget</a> *&#160;</td>
          <td class="paramname"><em>window</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>tempFiles</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>suggestedFileName</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="since"><dt><b>Since:</b></dt><dd>3.5.3 </dd></dl>

<p>Definition at line <a class="el" href="krun_8cpp_source.html#l00740">740</a> of file <a class="el" href="krun_8cpp_source.html">krun.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a995bc1308f9ccd35cf42b4d1e448006d"></a><!-- doxytag: member="KRun::run" ref="a995bc1308f9ccd35cf42b4d1e448006d" args="(const QString &amp;_exec, const KURL::List &amp;_urls, const QString &amp;_name=QString::null, const QString &amp;_icon=QString::null, const QString &amp;_obsolete1=QString::null, const QString &amp;_obsolete2=QString::null)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">pid_t KRun::run </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>_exec</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const KURL::List &amp;&#160;</td>
          <td class="paramname"><em>_urls</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>_name</em> = <code>QString::null</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>_icon</em> = <code>QString::null</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>_obsolete1</em> = <code>QString::null</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>_obsolete2</em> = <code>QString::null</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Open a list of URLs with. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">_exec</td><td>the name of the executable, for example "/usr/bin/netscape". </td></tr>
    <tr><td class="paramname">_urls</td><td>the list of URLs to open, can be empty (app launched without argument) </td></tr>
    <tr><td class="paramname">_name</td><td>the logical name of the application, for example "Netscape 4.06". </td></tr>
    <tr><td class="paramname">_icon</td><td>the icon which should be used by the application. </td></tr>
    <tr><td class="paramname">_obsolete1</td><td>Do not use! </td></tr>
    <tr><td class="paramname">_obsolete2</td><td>Do not use! </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the process id, or 0 on error </dd></dl>

<p>Definition at line <a class="el" href="krun_8cpp_source.html#l00793">793</a> of file <a class="el" href="krun_8cpp_source.html">krun.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ad86a1cb147017c650f441f2a8abbb81f"></a><!-- doxytag: member="KRun::run" ref="ad86a1cb147017c650f441f2a8abbb81f" args="(const KService &amp;_service, const KURL::List &amp;_urls, QWidget *window, bool tempFiles=false)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">pid_t KRun::run </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classKService.html">KService</a> &amp;&#160;</td>
          <td class="paramname"><em>_service</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const KURL::List &amp;&#160;</td>
          <td class="paramname"><em>_urls</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="elRef" href="qwidget.html">QWidget</a> *&#160;</td>
          <td class="paramname"><em>window</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>tempFiles</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Open a list of URLs with a certain service (application). </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">_service</td><td>the service to run </td></tr>
    <tr><td class="paramname">_urls</td><td>the list of URLs, can be empty (app launched without argument) </td></tr>
    <tr><td class="paramname">window</td><td>The top-level widget of the app that invoked this object. </td></tr>
    <tr><td class="paramname">tempFiles</td><td>if true and _urls are local files, they will be deleted when the application exits. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the process id, or 0 on error </dd></dl>
<dl class="since"><dt><b>Since:</b></dt><dd>3.5.2 </dd></dl>

<p>Definition at line <a class="el" href="krun_8cpp_source.html#l00735">735</a> of file <a class="el" href="krun_8cpp_source.html">krun.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="acbf97c72c343ef24a427e744d63139bc"></a><!-- doxytag: member="KRun::runCommand" ref="acbf97c72c343ef24a427e744d63139bc" args="(QString cmd)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">pid_t KRun::runCommand </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" href="qstring.html">QString</a>&#160;</td>
          <td class="paramname"><em>cmd</em></td><td>)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Run the given shell command and notifies kicker of the starting of the application. </p>
<p>If the program to be called doesn't exist, an error box will be displayed.</p>
<p>Use only when you know the full command line. Otherwise use the other static methods, or KRun's constructor.</p>
<p><code>_cmd</code> must be a shell command. You must not append "&amp;" to it, since the function will do that for you.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>PID of running command, 0 if it could not be started, 0 - (PID of running command) if command was unsafe for map notification. </dd></dl>

<p>Definition at line <a class="el" href="krun_8cpp_source.html#l00801">801</a> of file <a class="el" href="krun_8cpp_source.html">krun.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a83990b8cb95e5a1440ec63fe8d132e93"></a><!-- doxytag: member="KRun::runCommand" ref="a83990b8cb95e5a1440ec63fe8d132e93" args="(const QString &amp;cmd, const QString &amp;execName, const QString &amp;icon)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">pid_t KRun::runCommand </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>cmd</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>execName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>icon</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Same as the other <a class="el" href="classKRun.html#acbf97c72c343ef24a427e744d63139bc" title="Run the given shell command and notifies kicker of the starting of the application.">runCommand()</a>, but it also takes the name of the binary, to display an error message in case it couldn't find it. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">cmd</td><td>must be a shell command. You must not append "&amp;" to it, since the function will do that for you. </td></tr>
    <tr><td class="paramname">execName</td><td>the name of the executable </td></tr>
    <tr><td class="paramname">icon</td><td>icon for app starting notification </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>PID of running command, 0 if it could not be started, 0 - (PID of running command) if command was unsafe for map notification. </dd></dl>

<p>Definition at line <a class="el" href="krun_8cpp_source.html#l00806">806</a> of file <a class="el" href="krun_8cpp_source.html">krun.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ad897535fa88959dd80adf9afb0a4e447"></a><!-- doxytag: member="KRun::runURL" ref="ad897535fa88959dd80adf9afb0a4e447" args="(const KURL &amp;_url, const QString &amp;_mimetype, bool tempFile, bool runExecutables, const QString &amp;suggestedFileName)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">pid_t KRun::runURL </td>
          <td>(</td>
          <td class="paramtype">const KURL &amp;&#160;</td>
          <td class="paramname"><em>_url</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>_mimetype</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>tempFile</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>runExecutables</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>suggestedFileName</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="since"><dt><b>Since:</b></dt><dd>3.5.3 </dd></dl>

<p>Definition at line <a class="el" href="krun_8cpp_source.html#l00113">113</a> of file <a class="el" href="krun_8cpp_source.html">krun.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ac9b7d470640917274f3091c6e3eb305e"></a><!-- doxytag: member="KRun::runURL" ref="ac9b7d470640917274f3091c6e3eb305e" args="(const KURL &amp;_url, const QString &amp;_mimetype, bool tempFile, bool runExecutables)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">pid_t KRun::runURL </td>
          <td>(</td>
          <td class="paramtype">const KURL &amp;&#160;</td>
          <td class="paramname"><em>_url</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>_mimetype</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>tempFile</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>runExecutables</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Open the given URL. </p>
<p>This function is used after the mime type is found out. It will search for all services which can handle the mime type and call <a class="el" href="classKRun.html#ad86a1cb147017c650f441f2a8abbb81f" title="Open a list of URLs with a certain service (application).">run()</a> afterwards. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">_url</td><td>the URL to open </td></tr>
    <tr><td class="paramname">_mimetype</td><td>the mime type of the resource </td></tr>
    <tr><td class="paramname">tempFile</td><td>if true and _url is a local file, it will be deleted when the launched application exits. </td></tr>
    <tr><td class="paramname">runExecutables</td><td>if false then local .desktop files, executables and shell scripts will not be run. See also <a class="el" href="classKRun.html#abe21b7573533035c6613ebca1bf0dd18" title="Returns whether serviceType refers to an executable program instead of a data file.">isExecutable()</a>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the process id, or 0 on error </dd></dl>

<p>Definition at line <a class="el" href="krun_8cpp_source.html#l00092">92</a> of file <a class="el" href="krun_8cpp_source.html">krun.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ab5e7b0ec20b3986a66158b1a15f9fdef"></a><!-- doxytag: member="KRun::setAutoDelete" ref="ab5e7b0ec20b3986a66158b1a15f9fdef" args="(bool b)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KRun::setAutoDelete </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>b</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Enables or disabled auto deletion. </p>
<p>Auto deletion causes the <a class="el" href="classKRun.html" title="To open files with their associated applications in KDE, use KRun.">KRun</a> instance to delete itself when it finished its task. If you allocate the <a class="el" href="classKRun.html" title="To open files with their associated applications in KDE, use KRun.">KRun</a> object on the stack you must disable auto deletion. By default auto deletion is on. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">b</td><td>true to enable auto deletion, false to disable </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="krun_8h_source.html#l00160">160</a> of file <a class="el" href="krun_8h_source.html">krun.h</a>.</p>

</div>
</div>
<a class="anchor" id="a6a9a9f87d73a222e02a54f20e10d707f"></a><!-- doxytag: member="KRun::setEnableExternalBrowser" ref="a6a9a9f87d73a222e02a54f20e10d707f" args="(bool b)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KRun::setEnableExternalBrowser </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>b</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets whether the external webbrowser setting should be honoured. </p>
<p>This is enabled by default. This should only be disabled in webbrowser applications. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">b</td><td>whether to enable the external browser or not. </td></tr>
  </table>
  </dd>
</dl>
<dl class="since"><dt><b>Since:</b></dt><dd>3.4 </dd></dl>

<p>Definition at line <a class="el" href="krun_8cpp_source.html#l01291">1291</a> of file <a class="el" href="krun_8cpp_source.html">krun.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a84f99406c29dc580299e25ea779c100c"></a><!-- doxytag: member="KRun::setPreferredService" ref="a84f99406c29dc580299e25ea779c100c" args="(const QString &amp;desktopEntryName)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KRun::setPreferredService </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>desktopEntryName</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the preferred service for opening this URL, after its mimetype will have been found by <a class="el" href="classKRun.html" title="To open files with their associated applications in KDE, use KRun.">KRun</a>. </p>
<p>IMPORTANT: the service is only used if its configuration says it can handle this mimetype. This is used for instance for the X-KDE-LastOpenedWith key, for the recent documents list. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">desktopEntryName</td><td>the desktopEntryName of the service, e.g. "kate". </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="krun_8cpp_source.html#l01299">1299</a> of file <a class="el" href="krun_8cpp_source.html">krun.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a67257f7b3e7feef8b16d49485fd221f5"></a><!-- doxytag: member="KRun::setRunExecutables" ref="a67257f7b3e7feef8b16d49485fd221f5" args="(bool b)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KRun::setRunExecutables </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>b</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets whether executables, .desktop files or shell scripts should be run by <a class="el" href="classKRun.html" title="To open files with their associated applications in KDE, use KRun.">KRun</a>. </p>
<p>This is enabled by default. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">b</td><td>whether to run executable files or not. </td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKRun.html#abe21b7573533035c6613ebca1bf0dd18" title="Returns whether serviceType refers to an executable program instead of a data file.">isExecutable()</a> </dd></dl>
<dl class="since"><dt><b>Since:</b></dt><dd>3.2 </dd></dl>

<p>Definition at line <a class="el" href="krun_8cpp_source.html#l01304">1304</a> of file <a class="el" href="krun_8cpp_source.html">krun.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a768ff89c98ff1315e002dac28f40cc1d"></a><!-- doxytag: member="KRun::setSuggestedFileName" ref="a768ff89c98ff1315e002dac28f40cc1d" args="(const QString &amp;fileName)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KRun::setSuggestedFileName </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>fileName</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the file name to use in the case of downloading the file to a tempfile in order to give to a non-url-aware application. </p>
<p>Some apps rely on the extension to determine the mimetype of the file. Usually the file name comes from the URL, but in the case of the HTTP Content-Disposition header, we need to override the file name. </p>
<dl class="since"><dt><b>Since:</b></dt><dd>3.5.3 </dd></dl>

<p>Definition at line <a class="el" href="krun_8cpp_source.html#l01309">1309</a> of file <a class="el" href="krun_8cpp_source.html">krun.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a1460a9e90e2002bc1448e8824800da97"></a><!-- doxytag: member="KRun::shellQuote" ref="a1460a9e90e2002bc1448e8824800da97" args="(QString &amp;_str)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KRun::shellQuote </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" href="qstring.html">QString</a> &amp;&#160;</td>
          <td class="paramname"><em>_str</em></td><td>)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Quotes a string for the shell. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">_str</td><td>the string to quote. The quoted string will be written here </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="krun_8cpp_source.html#l00220">220</a> of file <a class="el" href="krun_8cpp_source.html">krun.cpp</a>.</p>

</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="a259e6cbfe56fd75f66816df50e77ef01"></a><!-- doxytag: member="KRun::m_bInit" ref="a259e6cbfe56fd75f66816df50e77ef01" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classKRun.html#a259e6cbfe56fd75f66816df50e77ef01">KRun::m_bInit</a><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>USed to indicate that the next action is to initialize. </p>
<p>This action is invoked from slotTimeout </p>

<p>Definition at line <a class="el" href="krun_8h_source.html#l00432">432</a> of file <a class="el" href="krun_8h_source.html">krun.h</a>.</p>

</div>
</div>
<a class="anchor" id="a13ae5ae5f6020360eea6e2d8ab20b62a"></a><!-- doxytag: member="KRun::m_bScanFile" ref="a13ae5ae5f6020360eea6e2d8ab20b62a" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classKRun.html#a13ae5ae5f6020360eea6e2d8ab20b62a">KRun::m_bScanFile</a><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Used to indicate that the next action is to scan the file. </p>
<p>This action is invoked from slotTimeout. </p>

<p>Definition at line <a class="el" href="krun_8h_source.html#l00425">425</a> of file <a class="el" href="krun_8h_source.html">krun.h</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="krun_8h_source.html">krun.h</a></li>
<li><a class="el" href="krun_8cpp_source.html">krun.cpp</a></li>
</ul>
</div>
    </div></div>


      </td>
  </tr>
  <tr>
    <td valign="top" id="leftmenu" width="25%">
      <a name="navigation"></a>
      <div class="menu_box"><h2>kio/kio</h2>
<div class="nav_list">
<ul><li><a href="index.html">Main Page</a></li><li><a href="modules.html">Modules</a></li><li><a href="namespaces.html">Namespace List</a></li><li><a href="hierarchy.html">Class Hierarchy</a></li><li><a href="classes.html">Alphabetical List</a></li><li><a href="annotated.html">Class List</a></li><li><a href="files.html">File List</a></li><li><a href="namespacemembers.html">Namespace Members</a></li><li><a href="functions.html">Class Members</a></li><li><a href="pages.html">Related Pages</a></li></ul>
<!--
<h2>Class Picker</h2>
<div style="text-align: center;">
<form name="guideform">
<select name="guidelinks" style="width:100%;" onChange="window.location=document.guideform.guidelinks.options[document.guideform.guidelinks.selectedIndex].value">
<option value="annotated.html">-- Choose --</option>
  <option value="classKACL.html">kacl</option>,  <option value="classKAr.html">kar</option>,  <option value="classKArchive.html">karchive</option>,  <option value="classKArchiveDirectory.html">karchivedirectory</option>,  <option value="classKArchiveEntry.html">karchiveentry</option>,  <option value="classKArchiveFile.html">karchivefile</option>,  <option value="classKAutoMount.html">kautomount</option>,  <option value="classKAutoUnmount.html">kautounmount</option>,  <option value="classKDataTool.html">kdatatool</option>,  <option value="classKDataToolAction.html">kdatatoolaction</option>,  <option value="classKDataToolInfo.html">kdatatoolinfo</option>,  <option value="classKDCOPServiceStarter.html">kdcopservicestarter</option>,  <option value="classKDEDesktopMimeType.html">kdedesktopmimetype</option>,  <option value="classKDirLister.html">kdirlister</option>,  <option value="classKDirNotify.html">kdirnotify</option>,  <option value="classKDirWatch.html">kdirwatch</option>,  <option value="classKEMailSettings.html">kemailsettings</option>,  <option value="classKExecMimeType.html">kexecmimetype</option>,  <option value="classKFileFilter.html">kfilefilter</option>,  <option value="classKFileItem.html">kfileitem</option>,  <option value="classKFileMetaInfo.html">kfilemetainfo</option>,  <option value="classKFileMetaInfoGroup.html">kfilemetainfogroup</option>,  <option value="classKFileMetaInfoItem.html">kfilemetainfoitem</option>,  <option value="classKFileMimeTypeInfo.html">kfilemimetypeinfo</option>,  <option value="classKFileMimeTypeInfo_1_1GroupInfo.html">kfilemimetypeinfo::groupinfo</option>,  <option value="classKFileMimeTypeInfo_1_1ItemInfo.html">kfilemimetypeinfo::iteminfo</option>,  <option value="classKFilePlugin.html">kfileplugin</option>,  <option value="classKFileShare.html">kfileshare</option>,  <option value="classKFilterBase.html">kfilterbase</option>,  <option value="classKFilterDev.html">kfilterdev</option>,  <option value="classKFolderType.html">kfoldertype</option>,  <option value="classKImageIO.html">kimageio</option>,  <option value="classKIO_1_1AuthInfo.html">kio::authinfo</option>,  <option value="classKIO_1_1ChmodJob.html">kio::chmodjob</option>,  <option value="classKIO_1_1Connection.html">kio::connection</option>,  <option value="classKIO_1_1CopyJob.html">kio::copyjob</option>,  <option value="classKIO_1_1DataProtocol.html">kio::dataprotocol</option>,  <option value="classKIO_1_1DataSlave.html">kio::dataslave</option>,  <option value="classKIO_1_1DavJob.html">kio::davjob</option>,  <option value="classKIO_1_1DeleteJob.html">kio::deletejob</option>,  <option value="classKIO_1_1FileCopyJob.html">kio::filecopyjob</option>,  <option value="classKIO_1_1ForwardingSlaveBase.html">kio::forwardingslavebase</option>,  <option value="classKIO_1_1Job.html">kio::job</option>,  <option value="classKIO_1_1ListJob.html">kio::listjob</option>,  <option value="classKIO_1_1MetaData.html">kio::metadata</option>,  <option value="classKIO_1_1MetaInfoJob.html">kio::metainfojob</option>,  <option value="classKIO_1_1MimetypeJob.html">kio::mimetypejob</option>,  <option value="classKIO_1_1MkdirJob.html">kio::mkdirjob</option>,  <option value="classKIO_1_1MultiGetJob.html">kio::multigetjob</option>,  <option value="classKIO_1_1NetAccess.html">kio::netaccess</option>,  <option value="classKIO_1_1NetRC.html">kio::netrc</option>,  <option value="classKIO_1_1PasswordDialog.html">kio::passworddialog</option>,  <option value="classKIO_1_1PreviewJob.html">kio::previewjob</option>,  <option value="classKIO_1_1ProgressBase.html">kio::progressbase</option>,  <option value="classKIO_1_1RenameDlg.html">kio::renamedlg</option>,  <option value="classKIO_1_1Scheduler.html">kio::scheduler</option>,  <option value="classKIO_1_1SimpleJob.html">kio::simplejob</option>,  <option value="classKIO_1_1Slave.html">kio::slave</option>,  <option value="classKIO_1_1SlaveBase.html">kio::slavebase</option>,  <option value="classKIO_1_1SlaveConfig.html">kio::slaveconfig</option>,  <option value="classKIO_1_1SlaveInterface.html">kio::slaveinterface</option>,  <option value="classKIO_1_1StatJob.html">kio::statjob</option>,  <option value="classKIO_1_1StatusbarProgress.html">kio::statusbarprogress</option>,  <option value="classKIO_1_1StoredTransferJob.html">kio::storedtransferjob</option>,  <option value="classKIO_1_1TCPSlaveBase.html">kio::tcpslavebase</option>,  <option value="classKIO_1_1TransferJob.html">kio::transferjob</option>,  <option value="classKLimitedIODevice.html">klimitediodevice</option>,  <option value="classKMimeMagic.html">kmimemagic</option>,  <option value="classKMimeMagicResult.html">kmimemagicresult</option>,  <option value="classKMimeType.html">kmimetype</option>,  <option value="classKMimeTypeChooser.html">kmimetypechooser</option>,  <option value="classKMimeTypeChooserDialog.html">kmimetypechooserdialog</option>,  <option value="classKMimeTypeResolver.html">kmimetyperesolver</option>,  <option value="classKNFSShare.html">knfsshare</option>,  <option value="classKOCRDialog.html">kocrdialog</option>,  <option value="classKOCRDialogFactory.html">kocrdialogfactory</option>,  <option value="classKOpenWithHandler.html">kopenwithhandler</option>,  <option value="classKProtocolInfo.html">kprotocolinfo</option>,  <option value="classKProtocolManager.html">kprotocolmanager</option>,  <option value="classKRemoteEncoding.html">kremoteencoding</option>,  <option value="classKRun.html">krun</option>,  <option value="classKSambaShare.html">ksambashare</option>,  <option value="classKScanDialog.html">kscandialog</option>,  <option value="classKScanDialogFactory.html">kscandialogfactory</option>,  <option value="classKService.html">kservice</option>,  <option value="classKServiceGroup.html">kservicegroup</option>,  <option value="classKServiceOffer.html">kserviceoffer</option>,  <option value="classKServiceType.html">kservicetype</option>,  <option value="classKServiceTypeProfile.html">kservicetypeprofile</option>,  <option value="classKShellCompletion.html">kshellcompletion</option>,  <option value="classKShred.html">kshred</option>,  <option value="classKSimpleFileFilter.html">ksimplefilefilter</option>,  <option value="classKTar.html">ktar</option>,  <option value="classKTrader.html">ktrader</option>,  <option value="classKURIFilter.html">kurifilter</option>,  <option value="classKURIFilterData.html">kurifilterdata</option>,  <option value="classKURIFilterPlugin.html">kurifilterplugin</option>,  <option value="classKURIFilterPluginList.html">kurifilterpluginlist</option>,  <option value="classKURLCompletion.html">kurlcompletion</option>,  <option value="classKURLPixmapProvider.html">kurlpixmapprovider</option>,  <option value="classKZip.html">kzip</option>,  <option value="classObserver.html">observer</option>,  <option value="classRenameDlgPlugin.html">renamedlgplugin</option>,  <option value="classThumbCreator.html">thumbcreator</option>,
</select>
</form>
</div>
-->
</div></div>
<div class="menu_box"><h2>API Dox</h2>
<div class="nav_list">
<ul>
<li><a href="../../../arts/html/index.html">arts</a></li><li><a href="../../../dcop/html/index.html">dcop</a></li><li><a href="../../../dnssd/html/index.html">dnssd</a></li><li><a href="../../../interfaces/html/index.html">interfaces</a></li><li>&nbsp;&nbsp;&nbsp;&nbsp;<a href="../../../interfaces/kimproxy/interface/html/index.html">interface</a></li><li>&nbsp;&nbsp;&nbsp;&nbsp;<a href="../../../interfaces/kimproxy/library/html/index.html">library</a></li><li>&nbsp;&nbsp;<a href="../../../interfaces/kspeech/html/index.html">kspeech</a></li><li>&nbsp;&nbsp;<a href="../../../interfaces/ktexteditor/html/index.html">ktexteditor</a></li><li><a href="../../../kabc/html/index.html">kabc</a></li><li><a href="../../../kate/html/index.html">kate</a></li><li><a href="../../../kcmshell/html/index.html">kcmshell</a></li><li><a href="../../../kdecore/html/index.html">kdecore</a></li><li><a href="../../../kded/html/index.html">kded</a></li><li><a href="../../../kdefx/html/index.html">kdefx</a></li><li><a href="../../../kdeprint/html/index.html">kdeprint</a></li><li><a href="../../../kdesu/html/index.html">kdesu</a></li><li><a href="../../../kdeui/html/index.html">kdeui</a></li><li><a href="../../../kdoctools/html/index.html">kdoctools</a></li><li><a href="../../../khtml/html/index.html">khtml</a></li><li><a href="../../../kimgio/html/index.html">kimgio</a></li><li><a href="../../../kinit/html/index.html">kinit</a></li><li><a href="../../../kio/html/index.html">kio</a></li><li>&nbsp;&nbsp;<a href="../../../kio/bookmarks/html/index.html">bookmarks</a></li><li>&nbsp;&nbsp;<a href="../../../kio/httpfilter/html/index.html">httpfilter</a></li><li>&nbsp;&nbsp;<a href="../../../kio/kfile/html/index.html">kfile</a></li><li>&nbsp;&nbsp;<a href="../../../kio/kio/html/index.html">kio</a></li><li>&nbsp;&nbsp;<a href="../../../kio/kioexec/html/index.html">kioexec</a></li><li>&nbsp;&nbsp;<a href="../../../kio/kpasswdserver/html/index.html">kpasswdserver</a></li><li>&nbsp;&nbsp;<a href="../../../kio/kssl/html/index.html">kssl</a></li><li><a href="../../../kioslave/html/index.html">kioslave</a></li><li>&nbsp;&nbsp;<a href="../../../kioslave/http/html/index.html">http</a></li><li><a href="../../../kjs/html/index.html">kjs</a></li><li><a href="../../../kmdi/html/index.html">kmdi</a></li><li>&nbsp;&nbsp;<a href="../../../kmdi/kmdi/html/index.html">kmdi</a></li><li><a href="../../../knewstuff/html/index.html">knewstuff</a></li><li><a href="../../../kparts/html/index.html">kparts</a></li><li><a href="../../../kresources/html/index.html">kresources</a></li><li><a href="../../../kspell2/html/index.html">kspell2</a></li><li><a href="../../../kunittest/html/index.html">kunittest</a></li><li><a href="../../../kutils/html/index.html">kutils</a></li><li><a href="../../../kwallet/html/index.html">kwallet</a></li><li><a href="../../../libkmid/html/index.html">libkmid</a></li><li><a href="../../../libkscreensaver/html/index.html">libkscreensaver</a></li>
</ul></div></div>


        </td>
</tr>
</table>

<span class="doNotDisplay">
  <a href="http://www.kde.org/" accesskey="8">KDE Home</a> |
  <a href="http://accessibility.kde.org/" accesskey="9">KDE Accessibility Home</a> |
  <a href="http://www.kde.org/media/accesskeys.php" accesskey="0">Description of Access Keys</a>
</span>


<div style="height: 8px"></div>

<div id="footer">
  <div id="footer_left">
    Maintained by <a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;groo&#116;&#64;kde&#46;or&#x67;">Adriaan de Groot</a>
and
<a href="&#109;a&#105;&#108;&#116;&#111;&#58;w&#105;nter&#64;kde&#46;or&#x67">Allen Winter</a>.
<br/>
    KDE and K Desktop Environment are trademarks of <a href="http://www.kde.org/areas/kde-ev/" title="Homepage of the KDE non-profit Organization">KDE e.V.</a> |
    <a href="http://www.kde.org/contact/impressum.php">Legal</a>
  </div>
  <div id="footer_right"><img src="/media/images/footer_right.png" style="margin: 0px" alt="" /></div>
</div>

<!--
WARNING: DO NOT SEND MAIL TO THE FOLLOWING EMAIL ADDRESS! YOU WILL
BE BLOCKED INSTANTLY AND PERMANENTLY!
<a href="mailto:aaaatrap-425acc3b5374943f@kde.org">Block me</a>
WARNING END
-->

</body>
</html>