KMIME Library
KMime::Rfc2047QEncodingCodec Class Reference
#include <kmime_codec_qp.h>
Inheritance diagram for KMime::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.
Public Member Functions | |
virtual | ~Rfc2047QEncodingCodec () |
const char * | name () const |
int | maxEncodedSizeFor (int insize, bool withCRLF=false) const |
int | maxDecodedSizeFor (int insize, bool withCRLF=false) const |
Encoder * | makeEncoder (bool withCRLF=false) const |
Decoder * | makeDecoder (bool withCRLF=false) const |
Protected Member Functions | |
Rfc2047QEncodingCodec () | |
Friends | |
class | Codec |
Constructor & Destructor Documentation
KMime::Rfc2047QEncodingCodec::Rfc2047QEncodingCodec | ( | ) | [inline, protected] |
virtual KMime::Rfc2047QEncodingCodec::~Rfc2047QEncodingCodec | ( | ) | [inline, virtual] |
Member Function Documentation
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.
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.
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.
Encoder * KMime::Rfc2047QEncodingCodec::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.
Definition at line 256 of file kmime_codec_qp.cpp.
Decoder * KMime::Rfc2047QEncodingCodec::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 261 of file kmime_codec_qp.cpp.
The documentation for this class was generated from the following files: