libkmime

KMime::IdentityCodec Class Reference

Inheritance diagram for KMime::IdentityCodec:

KMime::Codec KMime::BinaryCodec KMime::EightBitCodec KMime::SevenBitCodec List of all members.

Detailed Description

Definition at line 39 of file kmime_codec_identity.h.


Public Member Functions

 ~IdentityCodec ()
QByteArray encode (const QByteArray &src, bool withCRLF) const
QCString encodeToQCString (const QByteArray &src, bool withCRLF) const
QByteArray decode (const QByteArray &src, bool withCRLF) const
int maxEncodedSizeFor (int insize, bool withCRLF) const
int maxDecodedSizeFor (int insize, bool withCRLF) const
EncodermakeEncoder (bool withCRLF=false) const
DecodermakeDecoder (bool withCRLF=false) const

Protected Member Functions

 IdentityCodec ()

Friends

class Codec

Member Function Documentation

QByteArray KMime::IdentityCodec::encode ( const QByteArray &  src,
bool  withCRLF 
) const [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 QByteArray to the actual size again.

For use with small src.

Reimplemented from KMime::Codec.

Definition at line 94 of file kmime_codec_identity.cpp.

QCString KMime::IdentityCodec::encodeToQCString ( const QByteArray &  src,
bool  withCRLF 
) const [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::Codec.

Reimplemented in KMime::BinaryCodec.

Definition at line 104 of file kmime_codec_identity.cpp.

QByteArray KMime::IdentityCodec::decode ( const QByteArray &  src,
bool  withCRLF 
) const [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 QByteArray to the actual size again.

For use with small src.

Reimplemented from KMime::Codec.

Definition at line 99 of file kmime_codec_identity.cpp.


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