KMIME Library
KMime::Base64Codec Class Reference
#include <kmime_codec_base64.h>

Detailed Description
A class representing the codec for Base64 as specified in RFC2045.Definition at line 64 of file kmime_codec_base64.h.
Public Member Functions | |
Decoder * | makeDecoder (bool withCRLF=false) const |
Encoder * | makeEncoder (bool withCRLF=false) const |
int | maxDecodedSizeFor (int insize, bool withCRLF=false) const |
int | maxEncodedSizeFor (int insize, bool withCRLF=false) const |
const char * | name () const |
virtual | ~Base64Codec () |
Protected Member Functions | |
Base64Codec () |
Constructor & Destructor Documentation
KMime::Base64Codec::Base64Codec | ( | ) | [inline, protected] |
virtual KMime::Base64Codec::~Base64Codec | ( | ) | [inline, virtual] |
Member Function Documentation
Decoder * KMime::Base64Codec::makeDecoder | ( | bool | withCRLF = false |
) | const [virtual] |
Creates the decoder for the codec.
- 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.
- 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: