rfccodecs.h

Go to the documentation of this file.
00001 /**********************************************************************
00002  *
00003  *   rfccodecs  - handler for various rfc/mime encodings
00004  *   Copyright (C) 2000 s.carstens@gmx.de
00005  *
00006  *   This library is free software; you can redistribute it and/or
00007  *   modify it under the terms of the GNU Library General Public
00008  *   License as published by the Free Software Foundation; either
00009  *   version 2 of the License, or (at your option) any later version.
00010  *
00011  *   This library is distributed in the hope that it will be useful,
00012  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  *   Library General Public License for more details.
00015  *
00016  *   You should have received a copy of the GNU Library General Public License
00017  *   along with this library; see the file COPYING.LIB.  If not, write to
00018  *   the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00019  *   Boston, MA 02110-1301, USA.
00020  *
00021  *********************************************************************/
00033 #ifndef KIMAP_RFCCODECS_H
00034 #define KIMAP_RFCCODECS_H
00035 
00036 #include <QtCore/QString>
00037 
00038 #include "kimap_export.h"
00039 
00040 class QTextCodec;
00041 
00042 namespace KIMAP {
00043 
00050   KIMAP_EXPORT QByteArray encodeImapFolderName( const QByteArray &src );
00051 
00057   KIMAP_EXPORT QByteArray decodeImapFolderName( const QByteArray &inSrc );
00063   KIMAP_EXPORT QString encodeImapFolderName( const QString &src );
00064 
00069   KIMAP_EXPORT QString decodeImapFolderName( const QString &inSrc );
00070 
00075   KIMAP_EXPORT QString quoteIMAP( const QString &src );
00076 
00082   KIMAP_EXPORT QByteArray quoteIMAP( const QByteArray &src );
00083 
00089   KIMAP_EXPORT QTextCodec *codecForName( const QString &name );
00090 
00097   KIMAP_EXPORT const QString decodeRFC2047String( const QString &str,
00098                                                   QString &charset,
00099                                                   QString &language );
00105   KIMAP_EXPORT const QString decodeRFC2047String( const QString &str,
00106                                                   QString &charset );
00107 
00112   KIMAP_EXPORT const QString decodeRFC2047String( const QString &str );
00113 
00118   KIMAP_EXPORT const QString encodeRFC2047String( const QString &str );
00119 
00124   KIMAP_EXPORT const QByteArray encodeRFC2047String( const QByteArray &str );
00125 
00130   KIMAP_EXPORT const QString encodeRFC2231String( const QString &str );
00131 
00136   KIMAP_EXPORT const QString decodeRFC2231String( const QString &str );
00137 }
00138 
00139 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys