File indexing completed on 2024-09-22 04:52:48
0001 /********************************************************************** 0002 * 0003 * rfccodecs - handler for various rfc/mime encodings 0004 * Copyright (C) 2000 s.carstens@gmx.de 0005 * 0006 * Imported from KDE's SVN and stripped of various parts which are not 0007 * used in Trojita. Please see KDE SVN or Trojita's git repo for the 0008 * original version. 0009 * 0010 * This library is free software; you can redistribute it and/or 0011 * modify it under the terms of the GNU Library General Public 0012 * License as published by the Free Software Foundation; either 0013 * version 2 of the License, or (at your option) any later version. 0014 * 0015 * This library is distributed in the hope that it will be useful, 0016 * but WITHOUT ANY WARRANTY; without even the implied warranty of 0017 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 0018 * Library General Public License for more details. 0019 * 0020 * You should have received a copy of the GNU Library General Public License 0021 * along with this library; see the file COPYING.LIB. If not, write to 0022 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 0023 * Boston, MA 02110-1301, USA. 0024 * 0025 *********************************************************************/ 0026 /** 0027 * @file 0028 * This file is part of the IMAP support library and defines the 0029 * RfcCodecs class. 0030 * 0031 * @brief 0032 * Provides handlers for various RFC/MIME encodings. 0033 * 0034 * @author Sven Carstens 0035 */ 0036 0037 #ifndef KIMAP_RFCCODECS_H 0038 #define KIMAP_RFCCODECS_H 0039 0040 #include <QtCore/QString> 0041 0042 #define KIMAP_EXPORT 0043 0044 class QTextCodec; 0045 0046 namespace KIMAP { 0047 0048 /** 0049 Converts an Unicode IMAP mailbox to a QString which can be used in 0050 IMAP communication. 0051 @param src is the QString containing the IMAP mailbox. 0052 */ 0053 KIMAP_EXPORT QByteArray encodeImapFolderName( const QString &src ); 0054 0055 /** 0056 Converts an UTF-7 encoded IMAP mailbox to a Unicode QString. 0057 @param inSrc is the QString containing the Unicode path. 0058 */ 0059 KIMAP_EXPORT QString decodeImapFolderName(const QByteArray &src ); 0060 0061 } 0062 0063 #endif