[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    Re: Data types for KCodecs (Re: kdenetwork/kmail)
From:       Dirk Mueller <mueller () kde ! org>
Date:       2001-12-28 0:01:00
[Download RAW message or body]

On Don, 27 Dez 2001, Michael Häckel wrote:

> Ok, we currently have
> KCodecs::quotedPrintableEncode
> KCodecs::uuencode
> KCodecs::base64Encode
> 
> and the same for decoding.
> 
> All these operations should probably have similar functions.
> 
> The binary data should always be in a QByteArray and not sometimes in a 
> QCString or QString.
> The encoded data should be either in a QByteArray of a QCString.
> 
> So functions like the following for all encoding types should be enough:
> 
> static QCString base64Encode(const QByteArray& in, bool insertLFs = false) 
> static void base64Encode(const QByteArray& in, QByteArray& out, bool insertLFs 
> = false)
> 
> static QByteArray base64Decode(const QCString& in) 
> static void base64Decode(const QByteArray& in, QByteArray& out)
> 
> Everything with QString can leave totally.
> 
> Is this good?

Yes, this sounds good. Now we need to find out who will write the patch :)


Dirk
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic