[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: KProcess: Can't preload data to be piped to stdin?
From: Marc Mutz <Marc.Mutz () uni-bielefeld ! de>
Date: 2002-02-20 23:38:02
[Download RAW message or body]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi!
Suppose I have a QByteArray with data that should be piped to stdin of a
process. I need to use blocking mode (everything else is complete
overkill; we are talking about KMail's "execute" filter action here).
Question: How do I preload the data before calling .start()?
Answer: You can't.
OK, so I tried to use a QObject that would feed the data to the KProcess
on - umm, yeah on what?
There's no started() signal to which I could connect and writeStdin()
returns true when the process doesn't run. Hen and egg.
Ergo: Can't use blocking mode and stdin communication.
1. This isn't documented.
2. I need it to fix #38456
Can someone who knows this class have a look?
TIA,
Marc
- --
Marc Mutz <mutz@kde.org>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE8dDNa3oWD+L2/6DgRAnkSAJ9jeesdAVf0lOCiQ12+KmX7FPq2hwCfU4R0
vd9w4FXUq2bk6yYh+AHveP8=
=l8ua
-----END PGP SIGNATURE-----
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic