KIMAP2

rfccodecs.h File Reference
#include <QtCore/QString>
#include "kimap2_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

KIMAP2_EXPORT QTextCodec * KIMAP2::codecForName (const QString &name)
 
KIMAP2_EXPORT QByteArray KIMAP2::decodeImapFolderName (const QByteArray &inSrc)
 
KIMAP2_EXPORT QString KIMAP2::decodeImapFolderName (const QString &inSrc)
 
KIMAP2_EXPORT const QString KIMAP2::decodeRFC2047String (const QString &str)
 
KIMAP2_EXPORT const QString KIMAP2::decodeRFC2047String (const QString &str, QString &charset)
 
KIMAP2_EXPORT const QString KIMAP2::decodeRFC2047String (const QString &str, QString &charset, QString &language)
 
KIMAP2_EXPORT const QString KIMAP2::decodeRFC2231String (const QString &str)
 
KIMAP2_EXPORT QByteArray KIMAP2::encodeImapFolderName (const QByteArray &src)
 
KIMAP2_EXPORT QString KIMAP2::encodeImapFolderName (const QString &src)
 
KIMAP2_EXPORT const QByteArray KIMAP2::encodeRFC2047String (const QByteArray &str)
 
KIMAP2_EXPORT const QString KIMAP2::encodeRFC2047String (const QString &str)
 
KIMAP2_EXPORT const QString KIMAP2::encodeRFC2231String (const QString &str)
 
KIMAP2_EXPORT QByteArray KIMAP2::quoteIMAP (const QByteArray &src)
 
KIMAP2_EXPORT QString KIMAP2::quoteIMAP (const QString &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

◆ codecForName()

QTextCodec * KIMAP2::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 294 of file rfccodecs.cpp.

◆ decodeImapFolderName() [1/2]

QByteArray KIMAP2::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 70 of file rfccodecs.cpp.

◆ decodeImapFolderName() [2/2]

QString KIMAP2::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 154 of file rfccodecs.cpp.

◆ decodeRFC2047String() [1/3]

const QString KIMAP2::decodeRFC2047String ( const QString & str)

Decodes a RFC2047 string str.

Parameters
stris the QString to decode.

Definition at line 304 of file rfccodecs.cpp.

◆ decodeRFC2047String() [2/3]

const QString KIMAP2::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 312 of file rfccodecs.cpp.

◆ decodeRFC2047String() [3/3]

const QString KIMAP2::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 321 of file rfccodecs.cpp.

◆ decodeRFC2231String()

const QString KIMAP2::decodeRFC2231String ( const QString & str)

Decodes a RFC2231 string str.

Parameters
stris the QString to decode.

Definition at line 616 of file rfccodecs.cpp.

◆ encodeImapFolderName() [1/2]

QByteArray KIMAP2::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 197 of file rfccodecs.cpp.

◆ encodeImapFolderName() [2/2]

QString KIMAP2::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 192 of file rfccodecs.cpp.

◆ encodeRFC2047String() [1/2]

const QByteArray KIMAP2::encodeRFC2047String ( const QByteArray & str)

Encodes a RFC2047 string str.

Parameters
stris the QString to encode.

Definition at line 444 of file rfccodecs.cpp.

◆ encodeRFC2047String() [2/2]

const QString KIMAP2::encodeRFC2047String ( const QString & str)

Encodes a RFC2047 string str.

Parameters
stris the QString to encode.

Definition at line 438 of file rfccodecs.cpp.

◆ encodeRFC2231String()

const QString KIMAP2::encodeRFC2231String ( const QString & str)

Encodes a RFC2231 string str.

Parameters
stris the QString to encode.

Definition at line 562 of file rfccodecs.cpp.

◆ quoteIMAP() [1/2]

QByteArray KIMAP2::quoteIMAP ( const QByteArray & src)

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

Parameters
srcis the QString to quote.
Since
4.3

Definition at line 161 of file rfccodecs.cpp.

◆ quoteIMAP() [2/2]

QString KIMAP2::quoteIMAP ( const QString & src)

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

Parameters
srcis the QString to quote.

Definition at line 176 of file rfccodecs.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:56:35 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.