Diffusion Ark 6789a593bc17

cliinterface: Merge create the process creation and execution methods.

Authored by Raphael Kubo da Costa <kubito@gmail.com>.

Description

cliinterface: Merge create the process creation and execution methods.

Inpired by what Okular does in its comicbook generator, it also makes
sense for us to remove the process we run in the same method (ie
executeProcess()).

findProgramAndCreateProcess, createProcess and executeProcess have
been merged: the process is now crated, run and destroyed in the same
method, which makes us not need to wory about deleting the process in
different places.

While at it, doKill()'s implementation could also be simplified, as we
waitForFinished() right after calling KProcess::start(), so we need
not call it a few more times in doKill().

svn path=/trunk/KDE/kdeutils/ark/; revision=1216557

Details

Committed
Raphael Kubo da Costa <kubito@gmail.com>Jan 24 2011, 12:29 AM
Parents
R36:b305223c9b23: cliinterface: Move the qRegisterMetaType code to the constructor.
Branches
Unknown
Tags
Unknown
Raphael Kubo da Costa <kubito@gmail.com> committed R36:6789a593bc17: cliinterface: Merge create the process creation and execution methods. (authored by Raphael Kubo da Costa <kubito@gmail.com>).Jan 24 2011, 12:29 AM