<?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.h Source File (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 class="header"> <div class="headertitle"> <div class="title">krun.h</div> </div> </div> <div class="contents"> <div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* This file is part of the KDE project</span> <a name="l00002"></a>00002 <span class="comment"> Copyright (C) 1998, 1999 Torben Weis <weis@kde.org></span> <a name="l00003"></a>00003 <span class="comment"> Copyright (C) 2006 David Faure <faure@kde.org></span> <a name="l00004"></a>00004 <span class="comment"></span> <a name="l00005"></a>00005 <span class="comment"> This library is free software; you can redistribute it and/or</span> <a name="l00006"></a>00006 <span class="comment"> modify it under the terms of the GNU Library General Public</span> <a name="l00007"></a>00007 <span class="comment"> License as published by the Free Software Foundation; either</span> <a name="l00008"></a>00008 <span class="comment"> version 2 of the License, or (at your option) any later version.</span> <a name="l00009"></a>00009 <span class="comment"></span> <a name="l00010"></a>00010 <span class="comment"> This library is distributed in the hope that it will be useful,</span> <a name="l00011"></a>00011 <span class="comment"> but WITHOUT ANY WARRANTY; without even the implied warranty of</span> <a name="l00012"></a>00012 <span class="comment"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span> <a name="l00013"></a>00013 <span class="comment"> Library General Public License for more details.</span> <a name="l00014"></a>00014 <span class="comment"></span> <a name="l00015"></a>00015 <span class="comment"> You should have received a copy of the GNU Library General Public License</span> <a name="l00016"></a>00016 <span class="comment"> along with this library; see the file COPYING.LIB. If not, write to</span> <a name="l00017"></a>00017 <span class="comment"> the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,</span> <a name="l00018"></a>00018 <span class="comment"> Boston, MA 02110-1301, USA.</span> <a name="l00019"></a>00019 <span class="comment">*/</span> <a name="l00020"></a>00020 <a name="l00021"></a>00021 <span class="preprocessor">#ifndef __k_run_h__</span> <a name="l00022"></a>00022 <span class="preprocessor"></span><span class="preprocessor">#define __k_run_h__</span> <a name="l00023"></a>00023 <span class="preprocessor"></span> <a name="l00024"></a>00024 <span class="preprocessor">#include <sys/stat.h></span> <a name="l00025"></a>00025 <span class="preprocessor">#include <sys/types.h></span> <a name="l00026"></a>00026 <a name="l00027"></a>00027 <span class="preprocessor">#include <qobject.h></span> <a name="l00028"></a>00028 <span class="preprocessor">#include <qtimer.h></span> <a name="l00029"></a>00029 <span class="preprocessor">#include <qstring.h></span> <a name="l00030"></a>00030 <span class="preprocessor">#include <kurl.h></span> <a name="l00031"></a>00031 <span class="preprocessor">#include <kstartupinfo.h></span> <a name="l00032"></a>00032 <a name="l00033"></a>00033 <span class="keyword">class </span>KProcess; <a name="l00034"></a>00034 <span class="keyword">class </span><a class="code" href="classKService.html" title="Represent a service, i.e.">KService</a>; <a name="l00035"></a>00035 <span class="keyword">namespace </span>KIO { <a name="l00036"></a>00036 <span class="keyword">class </span>Job; <a name="l00037"></a>00037 <span class="keyword">class </span>StatJob; <a name="l00038"></a>00038 } <a name="l00039"></a>00039 <a name="l00058"></a><a class="code" href="classKRun.html">00058</a> <span class="keyword">class </span>KIO_EXPORT <a class="code" href="classKRun.html" title="To open files with their associated applications in KDE, use KRun.">KRun</a> : <span class="keyword">public</span> <a class="codeRef" href="qobject.html">QObject</a> <a name="l00059"></a>00059 { <a name="l00060"></a>00060 Q_OBJECT <a name="l00061"></a>00061 <span class="keyword">public</span>: <a name="l00085"></a>00085 <a class="code" href="classKRun.html" title="To open files with their associated applications in KDE, use KRun.">KRun</a>( <span class="keyword">const</span> KURL& url, mode_t mode = 0, <a name="l00086"></a>00086 <span class="keywordtype">bool</span> isLocalFile = <span class="keyword">false</span>, <span class="keywordtype">bool</span> showProgressInfo = <span class="keyword">true</span> ); <a name="l00087"></a>00087 <a name="l00112"></a>00112 <a class="code" href="classKRun.html" title="To open files with their associated applications in KDE, use KRun.">KRun</a>( <span class="keyword">const</span> KURL& url, <a class="codeRef" href="qwidget.html">QWidget</a>* window, mode_t mode = 0, <a name="l00113"></a>00113 <span class="keywordtype">bool</span> isLocalFile = <span class="keyword">false</span>, <span class="keywordtype">bool</span> showProgressInfo = <span class="keyword">true</span> ); <a name="l00114"></a>00114 <a name="l00119"></a>00119 <span class="keyword">virtual</span> ~<a class="code" href="classKRun.html" title="To open files with their associated applications in KDE, use KRun.">KRun</a>(); <a name="l00120"></a>00120 <a name="l00127"></a>00127 <span class="keywordtype">void</span> abort(); <a name="l00128"></a>00128 <a name="l00134"></a><a class="code" href="classKRun.html#a0cd3c8ce5a9b54ee6cbc45fd36ca4444">00134</a> <span class="keywordtype">bool</span> <a class="code" href="classKRun.html#a0cd3c8ce5a9b54ee6cbc45fd36ca4444" title="Returns true if the KRun instance has an error.">hasError</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_bFault; } <a name="l00135"></a>00135 <a name="l00141"></a><a class="code" href="classKRun.html#a52e5ce498a5af56eed4d6b36bdb93184">00141</a> <span class="keywordtype">bool</span> <a class="code" href="classKRun.html#a52e5ce498a5af56eed4d6b36bdb93184" title="Returns true if the KRun instance has finished.">hasFinished</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_bFinished; } <a name="l00142"></a>00142 <a name="l00150"></a><a class="code" href="classKRun.html#af986114ef3ce471705f5c62f5c847de4">00150</a> <span class="keywordtype">bool</span> <a class="code" href="classKRun.html#af986114ef3ce471705f5c62f5c847de4" title="Checks whether auto delete is activated.">autoDelete</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_bAutoDelete; } <a name="l00151"></a>00151 <a name="l00160"></a><a class="code" href="classKRun.html#ab5e7b0ec20b3986a66158b1a15f9fdef">00160</a> <span class="keywordtype">void</span> <a class="code" href="classKRun.html#ab5e7b0ec20b3986a66158b1a15f9fdef" title="Enables or disabled auto deletion.">setAutoDelete</a>(<span class="keywordtype">bool</span> b) { m_bAutoDelete = b; } <a name="l00161"></a>00161 <a name="l00170"></a>00170 <span class="keywordtype">void</span> setPreferredService( <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a>& desktopEntryName ); <a name="l00171"></a>00171 <a name="l00179"></a>00179 <span class="keywordtype">void</span> setRunExecutables(<span class="keywordtype">bool</span> b); <a name="l00180"></a>00180 <a name="l00188"></a>00188 <span class="keywordtype">void</span> setEnableExternalBrowser(<span class="keywordtype">bool</span> b); <a name="l00189"></a>00189 <a name="l00198"></a>00198 <span class="keywordtype">void</span> setSuggestedFileName( <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a>& fileName ); <a name="l00199"></a>00199 <a name="l00212"></a>00212 <span class="keyword">static</span> pid_t run( <span class="keyword">const</span> <a class="code" href="classKService.html" title="Represent a service, i.e.">KService</a>& _service, <span class="keyword">const</span> KURL::List& _urls, <a class="codeRef" href="qwidget.html">QWidget</a>* window, <span class="keywordtype">bool</span> tempFiles = <span class="keyword">false</span> ); <a name="l00223"></a>00223 <span class="comment">// BIC merge second overload with first one, using tempFiles=false</span> <a name="l00224"></a>00224 <span class="keyword">static</span> pid_t run( <span class="keyword">const</span> <a class="code" href="classKService.html" title="Represent a service, i.e.">KService</a>& _service, <span class="keyword">const</span> KURL::List& _urls, <span class="keywordtype">bool</span> tempFiles ); <a name="l00225"></a>00225 <span class="keyword">static</span> pid_t run( <span class="keyword">const</span> <a class="code" href="classKService.html" title="Represent a service, i.e.">KService</a>& _service, <span class="keyword">const</span> KURL::List& _urls ); <a name="l00228"></a>00228 <span class="keyword">static</span> pid_t run( <span class="keyword">const</span> <a class="code" href="classKService.html" title="Represent a service, i.e.">KService</a>& _service, <span class="keyword">const</span> KURL::List& _urls, <a class="codeRef" href="qwidget.html">QWidget</a>* window, <span class="keywordtype">bool</span> tempFiles, <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a>& suggestedFileName ); <a name="l00229"></a>00229 <a name="l00243"></a>00243 <span class="keyword">static</span> pid_t run( <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a>& _exec, <span class="keyword">const</span> KURL::List& _urls, <a name="l00244"></a>00244 <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a>& _name = QString::null, <a name="l00245"></a>00245 <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a>& _icon = QString::null, <a name="l00246"></a>00246 <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a>& _obsolete1 = QString::null, <a name="l00247"></a>00247 <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a>& _obsolete2 = QString::null ); <a name="l00248"></a>00248 <a name="l00264"></a>00264 <span class="comment">// BIC Merge second overload with first one using runExecutables=true, and</span> <a name="l00265"></a>00265 <span class="comment">// merge third overload with first one as well using tempFiles=false and</span> <a name="l00266"></a>00266 <span class="comment">// runExecutables=true</span> <a name="l00267"></a>00267 <span class="keyword">static</span> pid_t runURL( <span class="keyword">const</span> KURL& _url, <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a>& _mimetype, <span class="keywordtype">bool</span> tempFile, <span class="keywordtype">bool</span> runExecutables); <a name="l00268"></a>00268 <span class="keyword">static</span> pid_t runURL( <span class="keyword">const</span> KURL& _url, <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a>& _mimetype, <span class="keywordtype">bool</span> tempFile); <a name="l00269"></a>00269 <span class="keyword">static</span> pid_t runURL( <span class="keyword">const</span> KURL& _url, <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a>& _mimetype ); <a name="l00272"></a>00272 <span class="keyword">static</span> pid_t runURL( <span class="keyword">const</span> KURL& _url, <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a>& _mimetype, <span class="keywordtype">bool</span> tempFile, <span class="keywordtype">bool</span> runExecutables, <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a>& suggestedFileName ); <a name="l00273"></a>00273 <a name="l00288"></a>00288 <span class="keyword">static</span> pid_t runCommand( <a class="codeRef" href="qstring.html">QString</a> cmd ); <a name="l00289"></a>00289 <a name="l00301"></a>00301 <span class="keyword">static</span> pid_t runCommand( <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a>& cmd, <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a> & execName, <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a> & icon ); <a name="l00302"></a>00302 <a name="l00310"></a>00310 <span class="comment">// BIC merge second overload with first one, using tempFiles=false</span> <a name="l00311"></a>00311 <span class="keyword">static</span> <span class="keywordtype">bool</span> displayOpenWithDialog( <span class="keyword">const</span> KURL::List& lst, <span class="keywordtype">bool</span> tempFiles ); <a name="l00312"></a>00312 <span class="keyword">static</span> <span class="keywordtype">bool</span> displayOpenWithDialog( <span class="keyword">const</span> KURL::List& lst ); <a name="l00315"></a>00315 <span class="keyword">static</span> <span class="keywordtype">bool</span> displayOpenWithDialog( <span class="keyword">const</span> KURL::List& lst, <span class="keywordtype">bool</span> tempFiles, <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a>& suggestedFileName ); <a name="l00316"></a>00316 <a name="l00321"></a>00321 <span class="keyword">static</span> <span class="keywordtype">void</span> shellQuote( <a class="codeRef" href="qstring.html">QString</a> &_str ); <a name="l00322"></a>00322 <a name="l00337"></a>00337 <span class="keyword">static</span> <a class="codeRef" href="qstringlist.html">QStringList</a> processDesktopExec(<span class="keyword">const</span> <a class="code" href="classKService.html" title="Represent a service, i.e.">KService</a> &_service, <span class="keyword">const</span> KURL::List &_urls, <span class="keywordtype">bool</span> has_shell, <span class="keywordtype">bool</span> tempFiles); <a name="l00338"></a>00338 <span class="keyword">static</span> <a class="codeRef" href="qstringlist.html">QStringList</a> processDesktopExec(<span class="keyword">const</span> <a class="code" href="classKService.html" title="Represent a service, i.e.">KService</a> &_service, <span class="keyword">const</span> KURL::List &_urls, <span class="keywordtype">bool</span> has_shell); <a name="l00341"></a>00341 <span class="keyword">static</span> <a class="codeRef" href="qstringlist.html">QStringList</a> processDesktopExec(<span class="keyword">const</span> <a class="code" href="classKService.html" title="Represent a service, i.e.">KService</a> &_service, <span class="keyword">const</span> KURL::List &_urls, <span class="keywordtype">bool</span> has_shell, <span class="keywordtype">bool</span> tempFiles, <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a>& suggestedFileName); <a name="l00342"></a>00342 <a name="l00351"></a>00351 <span class="keyword">static</span> <a class="codeRef" href="qstring.html">QString</a> binaryName( <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a> & execLine, <span class="keywordtype">bool</span> removePath ); <a name="l00352"></a>00352 <a name="l00358"></a>00358 <span class="keyword">static</span> <span class="keywordtype">bool</span> isExecutable( <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a>& serviceType ); <a name="l00359"></a>00359 <a name="l00373"></a>00373 <span class="keyword">static</span> <span class="keywordtype">bool</span> isExecutableFile( <span class="keyword">const</span> KURL& url, <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a> &mimetype ); <a name="l00374"></a>00374 <a name="l00379"></a>00379 <span class="keyword">static</span> <span class="keywordtype">bool</span> checkStartupNotify( <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a>& binName, <span class="keyword">const</span> <a class="code" href="classKService.html" title="Represent a service, i.e.">KService</a>* service, <span class="keywordtype">bool</span>* silent_arg, <a class="codeRef" href="qcstring.html">QCString</a>* wmclass_arg ); <a name="l00380"></a>00380 <a name="l00381"></a>00381 signals: <a name="l00386"></a>00386 <span class="keywordtype">void</span> finished(); <a name="l00391"></a>00391 <span class="keywordtype">void</span> error(); <a name="l00392"></a>00392 <a name="l00393"></a>00393 <span class="keyword">protected</span> slots: <a name="l00394"></a>00394 <span class="keywordtype">void</span> slotTimeout(); <a name="l00395"></a>00395 <span class="keywordtype">void</span> slotScanFinished( <a class="code" href="classKIO_1_1Job.html" title="The base class for all jobs.">KIO::Job</a> * ); <a name="l00396"></a>00396 <span class="keywordtype">void</span> slotScanMimeType( <a class="code" href="classKIO_1_1Job.html" title="The base class for all jobs.">KIO::Job</a> *, <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a> &type ); <a name="l00397"></a>00397 <span class="keyword">virtual</span> <span class="keywordtype">void</span> slotStatResult( <a class="code" href="classKIO_1_1Job.html" title="The base class for all jobs.">KIO::Job</a> * ); <a name="l00398"></a>00398 <a name="l00399"></a>00399 <span class="keyword">protected</span>: <a name="l00400"></a>00400 <span class="keyword">virtual</span> <span class="keywordtype">void</span> init(); <a name="l00401"></a>00401 <a name="l00402"></a>00402 <span class="keyword">virtual</span> <span class="keywordtype">void</span> scanFile(); <a name="l00403"></a>00403 <a name="l00409"></a>00409 <span class="keyword">virtual</span> <span class="keywordtype">void</span> foundMimeType( <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a>& _type ); <a name="l00410"></a>00410 <a name="l00411"></a>00411 <span class="keyword">virtual</span> <span class="keywordtype">void</span> killJob(); <a name="l00412"></a>00412 <a name="l00413"></a>00413 KURL m_strURL; <a name="l00414"></a>00414 <span class="keywordtype">bool</span> m_bFault; <a name="l00415"></a>00415 <span class="keywordtype">bool</span> m_bAutoDelete; <a name="l00416"></a>00416 <span class="keywordtype">bool</span> m_bProgressInfo; <a name="l00417"></a>00417 <span class="keywordtype">bool</span> m_bFinished; <a name="l00418"></a>00418 <a class="code" href="classKIO_1_1Job.html" title="The base class for all jobs.">KIO::Job</a> * m_job; <a name="l00419"></a>00419 <a class="codeRef" href="qtimer.html">QTimer</a> m_timer; <a name="l00420"></a>00420 <a name="l00425"></a><a class="code" href="classKRun.html#a13ae5ae5f6020360eea6e2d8ab20b62a">00425</a> <span class="keywordtype">bool</span> <a class="code" href="classKRun.html#a13ae5ae5f6020360eea6e2d8ab20b62a" title="Used to indicate that the next action is to scan the file.">m_bScanFile</a>; <a name="l00426"></a>00426 <span class="keywordtype">bool</span> m_bIsDirectory; <a name="l00427"></a>00427 <a name="l00432"></a><a class="code" href="classKRun.html#a259e6cbfe56fd75f66816df50e77ef01">00432</a> <span class="keywordtype">bool</span> <a class="code" href="classKRun.html#a259e6cbfe56fd75f66816df50e77ef01" title="USed to indicate that the next action is to initialize.">m_bInit</a>; <a name="l00433"></a>00433 <a name="l00434"></a>00434 <span class="keywordtype">bool</span> m_bIsLocalFile; <a name="l00435"></a>00435 mode_t m_mode; <a name="l00436"></a>00436 <a name="l00437"></a>00437 <span class="keyword">protected</span>: <a name="l00438"></a>00438 <span class="keyword">virtual</span> <span class="keywordtype">void</span> virtual_hook( <span class="keywordtype">int</span> <span class="keywordtype">id</span>, <span class="keywordtype">void</span>* data ); <a name="l00439"></a>00439 <a name="l00440"></a>00440 <span class="keyword">private</span>: <a name="l00441"></a>00441 <span class="keywordtype">void</span> init (<span class="keyword">const</span> KURL& url, <a class="codeRef" href="qwidget.html">QWidget</a>* window, mode_t mode, <a name="l00442"></a>00442 <span class="keywordtype">bool</span> isLocalFile, <span class="keywordtype">bool</span> showProgressInfo); <a name="l00443"></a>00443 <span class="keyword">private</span>: <a name="l00444"></a>00444 <span class="keyword">class </span>KRunPrivate; <a name="l00445"></a>00445 KRunPrivate *d; <a name="l00446"></a>00446 }; <a name="l00447"></a>00447 <a name="l00448"></a>00448 <span class="preprocessor">#ifndef KDE_NO_COMPAT</span> <a name="l00449"></a>00449 <span class="preprocessor"></span> <a name="l00455"></a><a class="code" href="classKOpenWithHandler.html">00455</a> <span class="keyword">class </span>KIO_EXPORT_DEPRECATED <a class="code" href="classKOpenWithHandler.html">KOpenWithHandler</a> <a name="l00456"></a>00456 { <a name="l00457"></a>00457 <span class="keyword">public</span>: <a name="l00458"></a>00458 <a class="code" href="classKOpenWithHandler.html">KOpenWithHandler</a>() {} <a name="l00459"></a>00459 <span class="keyword">static</span> <span class="keywordtype">bool</span> exists() { <span class="keywordflow">return</span> <span class="keyword">true</span>; } <a name="l00460"></a>00460 }; <a name="l00461"></a>00461 <span class="preprocessor">#endif</span> <a name="l00462"></a>00462 <span class="preprocessor"></span> <a name="l00469"></a>00469 <span class="keyword">class </span>KIO_EXPORT KProcessRunner : <span class="keyword">public</span> <a class="codeRef" href="qobject.html">QObject</a> <a name="l00470"></a>00470 { <a name="l00471"></a>00471 Q_OBJECT <a name="l00472"></a>00472 <a name="l00473"></a>00473 <span class="keyword">public</span>: <a name="l00474"></a>00474 <a name="l00475"></a>00475 <span class="keyword">static</span> pid_t run(KProcess *, <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a> & binName); <a name="l00476"></a>00476 <span class="preprocessor">#ifdef Q_WS_X11 // We don't have KStartupInfo in Qt/Embedded</span> <a name="l00477"></a>00477 <span class="preprocessor"></span> <span class="keyword">static</span> pid_t run(KProcess *, <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a> & binName, <span class="keyword">const</span> KStartupInfoId& <span class="keywordtype">id</span> ); <a name="l00478"></a>00478 <span class="preprocessor">#endif</span> <a name="l00479"></a>00479 <span class="preprocessor"></span> <a name="l00480"></a>00480 <span class="keyword">virtual</span> ~KProcessRunner(); <a name="l00481"></a>00481 <a name="l00482"></a>00482 pid_t pid() <span class="keyword">const</span>; <a name="l00483"></a>00483 <a name="l00484"></a>00484 <span class="keyword">protected</span> slots: <a name="l00485"></a>00485 <a name="l00486"></a>00486 <span class="keywordtype">void</span> slotProcessExited(KProcess *); <a name="l00487"></a>00487 <a name="l00488"></a>00488 <span class="keyword">private</span>: <a name="l00489"></a>00489 <a name="l00490"></a>00490 KProcessRunner(KProcess *, <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a> & binName); <a name="l00491"></a>00491 <span class="preprocessor">#ifdef Q_WS_X11 // We don't have KStartupInfo in Qt/Embedded</span> <a name="l00492"></a>00492 <span class="preprocessor"></span> KProcessRunner(KProcess *, <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a> & binName, <span class="keyword">const</span> KStartupInfoId& <span class="keywordtype">id</span> ); <a name="l00493"></a>00493 <span class="preprocessor">#endif</span> <a name="l00494"></a>00494 <span class="preprocessor"></span> KProcessRunner(); <a name="l00495"></a>00495 <a name="l00496"></a>00496 KProcess * process_; <a name="l00497"></a>00497 <a class="codeRef" href="qstring.html">QString</a> binName; <a name="l00498"></a>00498 <span class="preprocessor">#ifdef Q_WS_X11 // We don't have KStartupInfo in Qt/Embedded</span> <a name="l00499"></a>00499 <span class="preprocessor"></span> KStartupInfoId id_; <a name="l00500"></a>00500 <span class="preprocessor">#endif</span> <a name="l00501"></a>00501 <span class="preprocessor"></span>}; <a name="l00502"></a>00502 <a name="l00503"></a>00503 <span class="preprocessor">#endif</span> </pre></div></div> </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> <a href="../../../interfaces/kimproxy/interface/html/index.html">interface</a></li><li> <a href="../../../interfaces/kimproxy/library/html/index.html">library</a></li><li> <a href="../../../interfaces/kspeech/html/index.html">kspeech</a></li><li> <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> <a href="../../../kio/bookmarks/html/index.html">bookmarks</a></li><li> <a href="../../../kio/httpfilter/html/index.html">httpfilter</a></li><li> <a href="../../../kio/kfile/html/index.html">kfile</a></li><li> <a href="../../../kio/kio/html/index.html">kio</a></li><li> <a href="../../../kio/kioexec/html/index.html">kioexec</a></li><li> <a href="../../../kio/kpasswdserver/html/index.html">kpasswdserver</a></li><li> <a href="../../../kio/kssl/html/index.html">kssl</a></li><li><a href="../../../kioslave/html/index.html">kioslave</a></li><li> <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> <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="mailto:groot@kde.org">Adriaan de Groot</a> and <a href="mailto:winter@kde.org">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>