KMime::Base64Codec Class Reference

A class representing the codec for Base64 as specified in RFC2045. More...

#include <kmime_codec_base64.h>

Inheritance diagram for KMime::Base64Codec:

List of all members.

Public Member Functions

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

 Base64Codec ()

Detailed Description

A class representing the codec for Base64 as specified in RFC2045.

Definition at line 64 of file kmime_codec_base64.h.


Constructor & Destructor Documentation

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

Constructs a Base64 codec.

Definition at line 71 of file kmime_codec_base64.h.

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

Destroys the codec.

Definition at line 77 of file kmime_codec_base64.h.


Member Function Documentation

Decoder * KMime::Base64Codec::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 155 of file kmime_codec_base64.cpp.

Encoder * KMime::Base64Codec::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.

Reimplemented in KMime::Rfc2047BEncodingCodec.

Definition at line 150 of file kmime_codec_base64.cpp.

int KMime::Base64Codec::maxDecodedSizeFor ( int  insize,
bool  withCRLF = false 
) const [inline, 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.

Reimplemented in KMime::Rfc2047BEncodingCodec.

Definition at line 106 of file kmime_codec_base64.h.

int KMime::Base64Codec::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.

Reimplemented in KMime::Rfc2047BEncodingCodec.

Definition at line 90 of file kmime_codec_base64.h.

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

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

Implements KMime::Codec.

Reimplemented in KMime::Rfc2047BEncodingCodec.

Definition at line 83 of file kmime_codec_base64.h.


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