Eneboo - Documentación para desarrolladores
src/flmail/mimecodec.h
Ir a la documentación de este archivo.
00001 /*
00002     Copyright (C) 2001-2002 by theKompany.com <www.thekompany.com>
00003     This program is free software; you can redistribute it and/or modify
00004     it under the terms of the GNU General Public License as published by
00005     the Free Software Foundation; either version 2 of the License, or
00006     (at your option) any later version.
00007 
00008     This program is distributed in the hope that it will be useful,
00009     but WITHOUT ANY WARRANTY; without even the implied warranty of
00010     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00011     GNU General Public License for more details.
00012 
00013     You should have received a copy of the GNU General Public License
00014     along with this program; if not, write to the Free Software
00015     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00016 
00017     By PLUGINS we mean the commercial plug-ins developed by theKompany.com
00018     for Aethera.
00019 
00020     In addition, as a special exception, theKompany.com gives permission
00021     to link the code of this program with PLUGINS (or with
00022     modified versions of PLUGINS that use the same license as PLUGINS),
00023     and distribute linked combinations including the two.  You must obey
00024     the GNU General Public License in all respects for all of the code used
00025     other than PLUGINS.  If you modify this file, you may extend this
00026     exception to your version of the file, but you are not obligated to do so.
00027     If you do not wish to do so, delete this exception statement from your
00028     version.
00029 
00030     This license grants you the ability to use PLUGINS with Aethera only
00031     and may not be used outside of Aethera.
00032     See also http://www.thekompany.com/products/license.txt for details.
00033 */
00034 
00035 /***************************************************************************
00036               mimecodec.h - utilities for encoding and decoding
00037                              -------------------
00038 
00039   copyright : (C) by theKompany.com     <www.thekompany.com>
00040               (C) by Atol C&D           <www.atolcd.com>
00041 
00042   authors :   Eugen C.      <eug@thekompany.com>
00043               Fabien Armand <f.armand@atolcd.com>
00044 
00045  ***************************************************************************/
00046 
00047 #ifndef __MIMECodec__
00048 #define __MIMECodec__
00049 
00050 #include <qcstring.h>
00051 
00052 namespace MIMECodec
00053 {
00055     FL_EXPORT QCString canonicalForm(const QCString &);
00056 
00058     FL_EXPORT QString translate(const QCString &);
00059 
00061     FL_EXPORT QCString fold(const QCString &);
00062 
00064     FL_EXPORT QCString unfold(const QCString &);
00065 
00067     FL_EXPORT QCString encodeEndLine(const QCString &);
00068 
00070     FL_EXPORT QCString decodeEndLine(const QCString &);
00071 
00073     FL_EXPORT QCString encodeQuotedPrintable(const QCString &, bool =false, bool =false);
00074 
00076     FL_EXPORT QCString decodeQuotedPrintable(const QCString &);
00077 
00079     FL_EXPORT QByteArray encodeBase64(const QByteArray &, bool endNewLine=true, bool endAllNewLines=true);
00080 
00082     FL_EXPORT QByteArray decodeBase64(const QByteArray &);
00083 
00085     FL_EXPORT QByteArray encode(const QByteArray &, const char *, bool =false);   // buffer, encoding
00086 
00088     FL_EXPORT QByteArray decode(const QByteArray &, const char *); // encoded buffer, encoding
00089 
00093     FL_EXPORT QString encodeMessageId(const QString &, const QString &);
00094 
00098     FL_EXPORT QByteArray CramMd5Digest(const QCString&,const QCString&,const QCString&);
00099 };
00100 
00101 #endif
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'