Bug in KProcess?

Rik Hemsley rik at kde.org
Sun Sep 1 14:59:34 BST 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

#if Sebastian Trueg
> Hy,
>
> it seems to be impossible to pass several Communication flags or'ed
> together to the start() method. I get
>
> no matching function for call to `KProcess::start (KProcess::RunMode,
> int)' /opt/kde3/include/kprocess.h:273: candidates are: bool
> KProcess::start(KProcess::RunMode = NotifyOnExit,
> KProcess::Communication = NoCommunication)
>
> for every combination.
> But I need to pass the NoRead flag in conjunction with AllOutput. I
> there a trick or is this impossible?

Try a cast:

process->start
(
  KProcess::NotifyOnExit,
  KProcess::Communication(KProcess::NoRead | KProcess::AllOutput)
);

Cheers,
Rik

- -- 
http://rikkus.info
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9ch1I6rehpl6X9l0RAvCeAJ94CQaVd1xzb6xQcrkuQlHZ8Bt3yQCeOBZb
BHfdBViIGrBXaaya+moAlFA=
=FaVC
-----END PGP SIGNATURE-----





More information about the kde-core-devel mailing list