libkmime

KMime::BinaryCodec Class Reference

Inheritance diagram for KMime::BinaryCodec:

KMime::IdentityCodec KMime::Codec List of all members.

Detailed Description

Definition at line 91 of file kmime_codec_identity.h.


Public Member Functions

 ~BinaryCodec ()
const char * name () const
int maxEncodedSizeFor (int insize, bool)
int maxDecodedSizeFor (int insize, bool) const
QCString encodeToQCString (const QByteArray &, bool) const

Protected Member Functions

 BinaryCodec ()

Friends

class Codec

Member Function Documentation

const char* KMime::BinaryCodec::name (  )  const [inline, virtual]

Returns:
the name of the encoding.

Guaranteed to be lowercase.

Implements KMime::Codec.

Definition at line 99 of file kmime_codec_identity.h.

QCString KMime::BinaryCodec::encodeToQCString ( const QByteArray &  ,
bool   
) const [inline, virtual]

Even more convenient, but also a bit slower and more memory intensive, since it allocates storage for the worst case and then shrinks the result QCString to the actual size again.

For use with small src.

This method only works for codecs whose output is in the 8bit domain (ie. not in the binary domain). Codecs that do not fall into this category will return a null QCString.

Reimplemented from KMime::IdentityCodec.

Definition at line 108 of file kmime_codec_identity.h.


The documentation for this class was generated from the following file:
KDE Home | KDE Accessibility Home | Description of Access Keys