KMime::Rfc2231EncodingCodec Class Reference

A class representing the codec for RFC2231. More...

#include <kmime_codec_qp.h>

Inheritance diagram for KMime::Rfc2231EncodingCodec:

List of all members.

Public Member Functions

virtual ~Rfc2231EncodingCodec ()
DecodermakeDecoder (bool withCRLF=false) const
EncodermakeEncoder (bool withCRLF=false) const
int maxDecodedSizeFor (int insize, bool withCRLF=false) const
int maxEncodedSizeFor (int insize, bool withCRLF=false) const
const char * name () const

Protected Member Functions

 Rfc2231EncodingCodec ()

Detailed Description

A class representing the codec for RFC2231.

Definition at line 174 of file kmime_codec_qp.h.


Constructor & Destructor Documentation

KMime::Rfc2231EncodingCodec::Rfc2231EncodingCodec (  )  [inline, protected]

Constructs a RFC2231 codec.

Definition at line 181 of file kmime_codec_qp.h.

virtual KMime::Rfc2231EncodingCodec::~Rfc2231EncodingCodec (  )  [inline, virtual]

Destroys the codec.

Definition at line 187 of file kmime_codec_qp.h.


Member Function Documentation

Decoder * KMime::Rfc2231EncodingCodec::makeDecoder ( bool  withCRLF = false  )  const [virtual]

Creates the decoder for the codec.

Parameters:
withCRLF if true, make the newlines CRLF; else use LF.
Returns:
a pointer to an instance of the codec's decoder.

Implements KMime::Codec.

Definition at line 276 of file kmime_codec_qp.cpp.

Encoder * KMime::Rfc2231EncodingCodec::makeEncoder ( bool  withCRLF = false  )  const [virtual]

Creates the encoder for the codec.

Parameters:
withCRLF if true, make the newlines CRLF; else use LF.
Returns:
a pointer to an instance of the codec's encoder.

Implements KMime::Codec.

Definition at line 271 of file kmime_codec_qp.cpp.

int KMime::Rfc2231EncodingCodec::maxDecodedSizeFor ( int  insize,
bool  withCRLF = false 
) const [virtual]

Computes the maximum size, in characters, needed for the deccoding.

Parameters:
insize is the number of input characters to be decoded.
withCRLF if true, make the newlines CRLF; else use LF.
Returns:
the maximum number of characters in the decoding.

Implements KMime::Codec.

Definition at line 281 of file kmime_codec_qp.cpp.

int KMime::Rfc2231EncodingCodec::maxEncodedSizeFor ( int  insize,
bool  withCRLF = false 
) const [inline, virtual]

Computes the maximum size, in characters, needed for the encoding.

Parameters:
insize is the number of input characters to be encoded.
withCRLF if true, make the newlines CRLF; else use LF.
Returns:
the maximum number of characters in the encoding.

Implements KMime::Codec.

Definition at line 200 of file kmime_codec_qp.h.

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

Returns the name of the encoding. Guaranteed to be lowercase.

Implements KMime::Codec.

Definition at line 193 of file kmime_codec_qp.h.


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