Logo Search packages:      
Sourcecode: qmf version File versions  Download package

QMailQuotedPrintableCodec::QMailQuotedPrintableCodec ( ContentType  content,
ConformanceType  conformance,
int  maximumLineLength = -1 

Constructs a codec object for coding data of type content, using the mapping scheme specified by the requirements of conformance.

If content is QMailQuotedPrintableCodec::Text, then newline sequences will be converted between the local representation (for example, 0x0A on Unix) and the transmission standard representation (0x0D 0x0A). Otherwise, the data will be coded without modification.

If conformance is QMailQuotedPrintableCodec::Rfc2047, then coding will use the mapping scheme of the {http://www.ietf.org/rfc/rfc2047.txt} {RFC 2047} '"Q" encoding'; otherwise the scheme defined in {http://www.ietf.org/rfc/rfc2045.txt} {RFC 2045} will be used.

The maximum number of encoded output characters per line can be specified as maximumLineLength. If not specified, or specified to a non-positive value, a default value will be used.

Definition at line 786 of file qmailcodec.cpp.

    : _content(content),
    // We're allowed up to 76 chars per output line, but the RFC isn't really clear on 
    // whether this includes the '=' and '\n' of a soft line break, so we'll assume they're counted
    if (_maximumLineLength <= 0)
        _maximumLineLength = QuotedPrintableMaxLineLength;

    _encodeLineCharsRemaining = _maximumLineLength;
    _encodeLastChar = '\0';

    _decodePrecedingInput = NilPreceding;
    _decodeLastChar = '\0';

Generated by  Doxygen 1.6.0   Back to index