ShellProcess Class Reference
The ShellProcess class runs a shell command and interprets the shell exit status as far as possible. KShellProcess with interpretation of shell exit status. More...
#include <shellprocess.h>
Inherits KShellProcess.
Public Types
- enum Status {
INACTIVE, RUNNING, SUCCESS, UNAUTHORISED,
DIED, NOT_FOUND, START_FAIL
}
Signals
- void shellExited (ShellProcess *)
Public Member Functions
- ShellProcess (const QString &command)
- bool start ()
- Status status () const
- bool normalExit () const
- const QString & command () const
- QString errorMessage () const
Static Public Member Functions
- static bool authorised ()
- static const QCString & shellName ()
Detailed Description
The ShellProcess class runs a shell command and interprets the shell exit status as far as possible. KShellProcess with interpretation of shell exit status.Derived from KShellProcess, this class additionally tries to interpret the shell exit status. Different shells use different exit codes. Currently, if bash or ksh report that the command could not be found or could not be executed, the NOT_FOUND status is returned.
- Author:
- David Jarvie <software@astrojar.org.uk>
Member Enumeration Documentation
|
Current status of the shell process.
|
Constructor & Destructor Documentation
|
Constructor.
|
Member Function Documentation
|
Executes the configured command.
|
|
Returns the current status of the shell process.
|
|
Returns whether the command was run successfully.
|
|
Returns the command configured to be run.
|
|
Returns the error message corresponding to the command exit status.
|
|
Returns whether the user is authorised to run shell commands. Shell commands may be prohibited in kiosk mode, for example. |
|
Finds which shell to use.
|
|
Signal emitted when the shell process execution completes. It is not emitted if start() did not attempt to start the command execution, e.g. in kiosk mode. |
The documentation for this class was generated from the following files:
- shellprocess.h
- shellprocess.cpp