Enhancement: KLineBufferedProcess

Jonas Bähr jonas.baehr at web.de
Tue Mar 11 18:20:38 GMT 2008


Hi,

Am 11.03.2008 um 12:57 schrieb Andreas Pakulat:
> On 07.03.08 16:13:40, Rolf Eike Beer wrote:
>> I'd like to introduce my example of KLineBufferedProcess, which  
>> should ease
>> the handling of line oriented output of processes. Users would be  
>> for example
>> KGpg where the interaction with gpg is line based. Also K3b could  
>> be a
>> potential user as it parses the output of several different  
>> command line
>> tools.
>
> Other uses include some of the KDevelop plugins (cvs, gdb, outputview)
> which also deal with output on a line-by-line basis.

For Krusader I would also use such a class. Every external cli tool  
we invoke is line based. In addition the handling of multibyte  
characters in the output (when converting to a QString) would be much  
easier since there would be no more the risk to cut them in pieces.

bye,
Jonas

>
> Andreas
>
> -- 
> Good news.  Ten weeks from Friday will be a pretty good day.





More information about the kde-core-devel mailing list