KMime::Rfc2047QEncodingCodec Class Reference

A class representing the codec for the Q encoding as specified in RFC2047Q. More...

#include <kmime_codec_qp.h>

Inheritance diagram for KMime::Rfc2047QEncodingCodec:

List of all members.

Public Member Functions

virtual ~Rfc2047QEncodingCodec ()
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

 Rfc2047QEncodingCodec ()

Detailed Description

A class representing the codec for the Q encoding as specified in RFC2047Q.

Definition at line 117 of file kmime_codec_qp.h.


Constructor & Destructor Documentation

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

Constructs a RFC2047Q codec.

Definition at line 124 of file kmime_codec_qp.h.

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

Destroys the codec.

Definition at line 130 of file kmime_codec_qp.h.


Member Function Documentation

Decoder * KMime::Rfc2047QEncodingCodec::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 261 of file kmime_codec_qp.cpp.

Encoder * KMime::Rfc2047QEncodingCodec::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 256 of file kmime_codec_qp.cpp.

int KMime::Rfc2047QEncodingCodec::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 266 of file kmime_codec_qp.cpp.

int KMime::Rfc2047QEncodingCodec::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 143 of file kmime_codec_qp.h.

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

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

Implements KMime::Codec.

Definition at line 136 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