A class representing the Identify codec. More...
#include <kmime_codec_identity.h>

Public Member Functions | |
~IdentityCodec () | |
QByteArray | decode (const QByteArray &src, bool withCRLF=false) const |
QByteArray | encode (const QByteArray &src, bool withCRLF=false) const |
Decoder * | makeDecoder (bool withCRLF=false) const |
Encoder * | makeEncoder (bool withCRLF=false) const |
int | maxDecodedSizeFor (int insize, bool withCRLF) const |
int | maxEncodedSizeFor (int insize, bool withCRLF) const |
Protected Member Functions | |
IdentityCodec () |
Detailed Description
A class representing the Identify codec.
Definition at line 48 of file kmime_codec_identity.h.
Constructor & Destructor Documentation
KMime::IdentityCodec::IdentityCodec | ( | ) | [inline, protected] |
Constructs the Identity codec.
Definition at line 55 of file kmime_codec_identity.h.
KMime::IdentityCodec::~IdentityCodec | ( | ) | [inline] |
Destroys the codec.
Definition at line 61 of file kmime_codec_identity.h.
Member Function Documentation
QByteArray KMime::IdentityCodec::decode | ( | const QByteArray & | src, |
bool | withCRLF = false |
||
) | const [virtual] |
Reimplemented from KMime::Codec.
Definition at line 104 of file kmime_codec_identity.cpp.
QByteArray KMime::IdentityCodec::encode | ( | const QByteArray & | src, |
bool | withCRLF = false |
||
) | const [virtual] |
Reimplemented from KMime::Codec.
Definition at line 98 of file kmime_codec_identity.cpp.
Decoder * KMime::IdentityCodec::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 77 of file kmime_codec_identity.cpp.
Encoder * KMime::IdentityCodec::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 72 of file kmime_codec_identity.cpp.
int KMime::IdentityCodec::maxDecodedSizeFor | ( | int | insize, |
bool | withCRLF | ||
) | 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::BinaryCodec.
Definition at line 95 of file kmime_codec_identity.h.
int KMime::IdentityCodec::maxEncodedSizeFor | ( | int | insize, |
bool | withCRLF | ||
) | 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::BinaryCodec.
Definition at line 82 of file kmime_codec_identity.h.
The documentation for this class was generated from the following files: