• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.14.10 API Reference
  • KDE Home
  • Contact Us
 

KIMAP Library

  • kimap
Functions
rfccodecs.h File Reference
#include <QtCore/QString>
#include "kimap_export.h"

Go to the source code of this file.

Functions

QTextCodec * KIMAP::codecForName (const QString &name)
 
QByteArray KIMAP::decodeImapFolderName (const QByteArray &inSrc)
 
QString KIMAP::decodeImapFolderName (const QString &inSrc)
 
const QString KIMAP::decodeRFC2047String (const QString &str)
 
const QString KIMAP::decodeRFC2047String (const QString &str, QString &charset)
 
const QString KIMAP::decodeRFC2047String (const QString &str, QString &charset, QString &language)
 
const QString KIMAP::decodeRFC2231String (const QString &str)
 
QByteArray KIMAP::encodeImapFolderName (const QByteArray &src)
 
QString KIMAP::encodeImapFolderName (const QString &src)
 
const QByteArray KIMAP::encodeRFC2047String (const QByteArray &str)
 
const QString KIMAP::encodeRFC2047String (const QString &str)
 
const QString KIMAP::encodeRFC2231String (const QString &str)
 
QByteArray KIMAP::quoteIMAP (const QByteArray &src)
 
QString KIMAP::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 * 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 297 of file rfccodecs.cpp.

◆ decodeImapFolderName() [1/2]

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 71 of file rfccodecs.cpp.

◆ decodeImapFolderName() [2/2]

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 155 of file rfccodecs.cpp.

◆ decodeRFC2047String() [1/3]

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

Decodes a RFC2047 string str.

Parameters
stris the QString to decode.

Definition at line 307 of file rfccodecs.cpp.

◆ decodeRFC2047String() [2/3]

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 315 of file rfccodecs.cpp.

◆ decodeRFC2047String() [3/3]

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 324 of file rfccodecs.cpp.

◆ decodeRFC2231String()

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

Decodes a RFC2231 string str.

Parameters
stris the QString to decode.

Definition at line 619 of file rfccodecs.cpp.

◆ encodeImapFolderName() [1/2]

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 198 of file rfccodecs.cpp.

◆ encodeImapFolderName() [2/2]

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 193 of file rfccodecs.cpp.

◆ encodeRFC2047String() [1/2]

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

Encodes a RFC2047 string str.

Parameters
stris the QString to encode.

Definition at line 447 of file rfccodecs.cpp.

◆ encodeRFC2047String() [2/2]

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

Encodes a RFC2047 string str.

Parameters
stris the QString to encode.

Definition at line 441 of file rfccodecs.cpp.

◆ encodeRFC2231String()

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

Encodes a RFC2231 string str.

Parameters
stris the QString to encode.

Definition at line 565 of file rfccodecs.cpp.

◆ quoteIMAP() [1/2]

QByteArray KIMAP::quoteIMAP ( const QByteArray &  src)

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

Parameters
srcis the QString to quote.
Since
4.3

Definition at line 162 of file rfccodecs.cpp.

◆ quoteIMAP() [2/2]

QString KIMAP::quoteIMAP ( const QString &  src)

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

Parameters
srcis the QString to quote.

Definition at line 177 of file rfccodecs.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jul 21 2022 00:00:00 by doxygen 1.9.5 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KIMAP Library

Skip menu "KIMAP Library"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • Related Pages

kdepimlibs-4.14.10 API Reference

Skip menu "kdepimlibs-4.14.10 API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal