KIMAP

rfccodecs.h File Reference
#include <QString>
#include "kimap_export.h"
Include dependency graph for rfccodecs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

KIMAP_EXPORT QTextCodecKIMAP::codecForName (const QString &name)
 
KIMAP_EXPORT QByteArray KIMAP::decodeImapFolderName (const QByteArray &inSrc)
 
KIMAP_EXPORT QString KIMAP::decodeImapFolderName (const QString &inSrc)
 
KIMAP_EXPORT const QString KIMAP::decodeRFC2047String (const QString &str, QString &charset, QString &language)
 
KIMAP_EXPORT const QString KIMAP::decodeRFC2047String (const QString &str, QString &charset)
 
KIMAP_EXPORT const QString KIMAP::decodeRFC2047String (const QString &str)
 
KIMAP_EXPORT const QString KIMAP::decodeRFC2231String (const QString &str)
 
KIMAP_EXPORT QByteArray KIMAP::encodeImapFolderName (const QByteArray &src)
 
KIMAP_EXPORT QString KIMAP::encodeImapFolderName (const QString &src)
 
KIMAP_EXPORT const QString KIMAP::encodeRFC2047String (const QString &str)
 
KIMAP_EXPORT const QByteArray KIMAP::encodeRFC2047String (const QByteArray &str)
 
KIMAP_EXPORT const QString KIMAP::encodeRFC2231String (const QString &str)
 
KIMAP_EXPORT QString KIMAP::quoteIMAP (const QString &src)
 
KIMAP_EXPORT QByteArray KIMAP::quoteIMAP (const QByteArray &src)
 

Detailed Description

This file is part of the IMAP support library and defines the RfcCodecs class.

Provides handlers for various RFC/MIME encodings.

Author
Sven Carstens

Definition in file rfccodecs.h.

Function Documentation

QTextCodec * KIMAP::codecForName ( const QString name)

Fetches a Codec by name.

Parameters
nameis the QString version of the Codec name.
Returns
Text Codec object

Definition at line 288 of file rfccodecs.cpp.

QByteArray KIMAP::decodeImapFolderName ( const QByteArray inSrc)

Converts an UTF-7 encoded IMAP mailbox to a QByteArray.

Parameters
inSrcis the QByteArray containing the Unicode path.
Since
4.3

Definition at line 55 of file rfccodecs.cpp.

QString KIMAP::decodeImapFolderName ( const QString inSrc)

Converts an UTF-7 encoded IMAP mailbox to a Unicode QString.

Parameters
inSrcis the QString containing the Unicode path.

Definition at line 144 of file rfccodecs.cpp.

const QString KIMAP::decodeRFC2047String ( const QString str,
QString charset,
QString language 
)

Decodes a RFC2047 string str.

Parameters
stris the QString to decode.
charsetis the character set to use when decoding.
languageis the language found in the charset.

Definition at line 313 of file rfccodecs.cpp.

const QString KIMAP::decodeRFC2047String ( const QString str,
QString charset 
)

Decodes a RFC2047 string str.

Parameters
stris the QString to decode.
charsetis the character set to use when decoding.

Definition at line 305 of file rfccodecs.cpp.

const QString KIMAP::decodeRFC2047String ( const QString str)

Decodes a RFC2047 string str.

Parameters
stris the QString to decode.

Definition at line 297 of file rfccodecs.cpp.

const QString KIMAP::decodeRFC2231String ( const QString str)

Decodes a RFC2231 string str.

Parameters
stris the QString to decode.

Definition at line 606 of file rfccodecs.cpp.

QByteArray KIMAP::encodeImapFolderName ( const QByteArray src)

Converts an Unicode IMAP mailbox to a QByteArray which can be used in IMAP communication.

Parameters
srcis the QByteArray containing the IMAP mailbox.
Since
4.3

Definition at line 187 of file rfccodecs.cpp.

QString KIMAP::encodeImapFolderName ( const QString src)

Converts an Unicode IMAP mailbox to a QString which can be used in IMAP communication.

Parameters
srcis the QString containing the IMAP mailbox.

Definition at line 182 of file rfccodecs.cpp.

const QString KIMAP::encodeRFC2047String ( const QString str)

Encodes a RFC2047 string str.

Parameters
stris the QString to encode.

Definition at line 427 of file rfccodecs.cpp.

const QByteArray KIMAP::encodeRFC2047String ( const QByteArray str)

Encodes a RFC2047 string str.

Parameters
stris the QString to encode.

Definition at line 433 of file rfccodecs.cpp.

const QString KIMAP::encodeRFC2231String ( const QString str)

Encodes a RFC2231 string str.

Parameters
stris the QString to encode.

Definition at line 553 of file rfccodecs.cpp.

QString KIMAP::quoteIMAP ( const QString src)

Replaces " with \" and \ with \ " and \ characters.

Parameters
srcis the QString to quote.

Definition at line 166 of file rfccodecs.cpp.

QByteArray KIMAP::quoteIMAP ( const QByteArray src)

Replaces " with \" and \ with \ " and \ characters.

Parameters
srcis the QString to quote.
Since
4.3

Definition at line 151 of file rfccodecs.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sun Oct 24 2021 23:12:47 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.