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

void QMailCodec::encode ( QDataStream &  out,
QTextStream &  in,
const QString &  charset = "UTF-8" 
) [virtual, inherited]

Writes the data read from the stream in to the stream out, as a sequence of 7-bit ASCII characters. The unicode characters read from in are first encoded to the text encoding charset.

See also:

Definition at line 141 of file qmailcodec.cpp.

References QMailCodec::codecForName(), and QMailCodec::encodeChunk().

Referenced by QMailCodec::encode(), and QMailServiceConfiguration::encodeValue().

    if (QTextCodec* codec = codecForName(charset.toLatin1()))
        while (!in.atEnd())
            QString chunk = in.read(MaxCharacters);
            QByteArray charsetEncoded = codec->fromUnicode(chunk);

                        reinterpret_cast<const unsigned char*>(charsetEncoded.constData()), 

Here is the call graph for this function:

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index