[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: Enhancement: KLineBufferedProcess
From: Thiago Macieira <thiago () kde ! org>
Date: 2008-03-12 7:42:17
Message-ID: 200803120842.18131.thiago () kde ! org
[Download RAW message or body]
Rolf Eike Beer wrote:
>Oswald Buddenhagen wrote:
>> On Fri, Mar 07, 2008 at 04:13:40PM +0100, Rolf Eike Beer wrote:
>> > The idea behind this class is to receive the data from the process
>> > and buffer it. A signal is emitted only if a complete line of data
>> > is available.
>>
>> fwiw, in qt 4.4, the combination of kprocess + qtextstream should work
>> reliably.
>
>Well, that would not help anyone who could find arbitrary 8 bit
> characters in the output so he needs the result as a QByteArray. For
> the GPG output I should be able to write a QTextCodec that handles this
> stuff. Thanks for the hint.
>
>Nevertheless I have attached a version that actually works (tested with
> KGpg). The other one was a bit hacky since the people at the booth
> confused me ;)
Is the QProcess being opened in QIODevice::Text mode? If not, you have to
handle CRLF too.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
["signature.asc" (application/pgp-signature)]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic