Enhancement: KLineBufferedProcess

Ralf Habacker ralf.habacker at freenet.de
Wed Mar 12 05:09:09 GMT 2008


Rolf Eike Beer schrieb:
> 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 ;)
>
>   
in the header
#endif // GPGPROC_H

should be

#endif // KLINEBUFFEREDPROCESS_H

Ralf





More information about the kde-core-devel mailing list