|
|
Implements a generic runner, i.e. the 'exec' functionality of KDE
It can execute any desktop entry, as well as any file, using default binding (service) or another bound service.
|
Create a KRun object to run the preferred application for a file/URL. KRun will first determine the type of the file, and will then run the associated application.
Parameters:
url | the URL of the file or directory to 'run' |
mode | The st_mode field of <tt>struct stat</tt>. If
you don't know this set it to 0.
|
isLocalFile | If this parameter is set to false then url 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.
|
showProgressInfo | Whether to show progress information when determining the type of the file (i.e. when using KIO::stat and KIO::mimetype) 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. |
~ |
[virtual]
Destructor. Don't call it yourself, since a KRun object auto-deletes itself.
bool |
[const]
bool |
[const]
bool |
[const]
By default auto deletion is on.
void |
pid_t |
[static]
Open a list of URLs with a certain service.
Parameters:
_urls | the list of URLs, can be empty (app launched without argument) |
pid_t |
[static]
Open a list of URLs with.
Parameters:
_exec | The name of the executable, for example "/usr/bin/netscape". |
_name | The logical name of the application, for example "Netscape 4.06". |
_icon | The icon which should be used by the application. |
_miniicon | The icon which should be used by the application. |
pid_t |
[static]
Open the given URL.
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 run() afterwards.
pid_t |
[static]
Run the given command and notifies kicker of the starting of the application.
Use only when you know the full command line. Otherwise use the other static methods, or KRun's constructor.
Parameters:
cmd | the full command line to run, see run() |
execName | Dhe name of the executable (usually the first 'word' of the command). |
iconName | The name of the (mini) icon to show in kicker. |
QString |
[static]
Returns the location of the LD_PRELOAD library that makes app start notification work.
void |
[signal]
void |
[signal]
void |
[protected slot]
void |
[protected slot]
void |
[protected slot]
void |
[protected virtual]
void |
[protected virtual]
void |
[protected virtual]
Called if the mimetype has been detected. The function checks whether the document and appends the gzip protocol to the URL. Otherwise runURL is called to finish the job.
void |
[protected virtual]
KURL |
[protected]
bool |
[protected]
bool |
[protected]
bool |
[protected]
bool |
[protected]
KIO::Job * |
[protected]
QTimer |
[protected]
bool |
[protected]
Used to indicate that the next action is to scan the file. This action is invoked from slotTimeout.
bool |
[protected]
bool |
[protected]
USed to indicate that the next action is to initialize. This action is invoked from slotTimeout
bool |
[protected]
mode_t |
[protected]
KRunPrivate * |
[protected]
pid_t |
[protected static]
For remote URLs to be opened with apps that don't support remote URLs. Uses kfmexec.
pid_t |
[protected static]
Runs a shell command.
_cmd must be a quoted shell command. You must not append "&" to it, since the function will do that for you. An example is "<tt>greet 'Hello Torben'</tt>".
Returns: PID of running command, or -1 if it could not be started.
void |
[protected static]
Sends a DCOP signal to Kicker's taskbar to indicate that an application has been started.
Parameters:
execName | Name of the app binary. |
iconName | Name of that app's mini icon. |
resName | Application's res_name, usually equivalent to execName. |
pid | PID of the KShellProcess that is executing the binary. |
QString |
[protected static]
Extracts binary name from Exec command line
void |
[protected static]
Quotes a string for the shell
Generated by: prospector@porky.devel.redhat.com on Thu Aug 24 05:36:06 2000, using kdoc 2.0a36. |