• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • Sitemap
  • Contact Us
 

KMIME Library

kmime_warning.h

00001 /*
00002     kmime_warning.h
00003 
00004     KMime, the KDE internet mail/usenet news message library.
00005     Copyright (c) 2001-2002 Marc Mutz <mutz@kde.org>
00006     See file AUTHORS for details
00007 
00008     This library is free software; you can redistribute it and/or
00009     modify it under the terms of the GNU Library General Public
00010     License as published by the Free Software Foundation; either
00011     version 2 of the License, or (at your option) any later version.
00012 
00013     This library is distributed in the hope that it will be useful,
00014     but WITHOUT ANY WARRANTY; without even the implied warranty of
00015     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00016     Library General Public License for more details.
00017 
00018     You should have received a copy of the GNU Library General Public License
00019     along with this library; see the file COPYING.LIB.  If not, write to
00020     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00021     Boston, MA 02110-1301, USA.
00022 */
00023 
00024 #ifndef KMIME_WARNING_H
00025 #define KMIME_WARNING_H
00026 
00027 #ifndef KMIME_NO_WARNING
00028 #  include <kdebug.h>
00029 #  define KMIME_WARN kWarning(5100) << "Tokenizer Warning: "
00030 #  define KMIME_WARN_UNKNOWN(x,y) KMIME_WARN << "unknown " #x ": \"" \
00031           << y << "\"";
00032 #  define KMIME_WARN_UNKNOWN_ENCODING KMIME_WARN << "unknown encoding in " \
00033           "RFC 2047 encoded-word (only know 'q' and 'b')";
00034 #  define KMIME_WARN_UNKNOWN_CHARSET(c) KMIME_WARN << "unknown charset \"" \
00035           << c << "\" in RFC 2047 encoded-word";
00036 #  define KMIME_WARN_8BIT(ch) KMIME_WARN \
00037           << "8Bit character '" << QString(QChar(ch)) << "'" << endl
00038 #  define KMIME_WARN_IF_8BIT(ch) if ( (unsigned char)(ch) > 127 ) \
00039           { KMIME_WARN_8BIT(ch); }
00040 #  define KMIME_WARN_PREMATURE_END_OF(x) KMIME_WARN \
00041           << "Premature end of " #x << endl
00042 #  define KMIME_WARN_LONE(x) KMIME_WARN << "Lonely " #x " character" << endl
00043 #  define KMIME_WARN_NON_FOLDING(x) KMIME_WARN << "Non-folding " #x << endl
00044 #  define KMIME_WARN_CTL_OUTSIDE_QS(x) KMIME_WARN << "Control character " \
00045           #x " outside quoted-string" << endl
00046 #  define KMIME_WARN_INVALID_X_IN_Y(X,Y) KMIME_WARN << "Invalid character '" \
00047           QString(QChar(X)) << "' in " #Y;
00048 #  define KMIME_WARN_TOO_LONG(x) KMIME_WARN << #x \
00049           " too long or missing delimiter";
00050 #else
00051 #  define KMIME_NOP do {} while (0)
00052 #  define KMIME_WARN_8BIT(ch) KMIME_NOP
00053 #  define KMIME_WARN_IF_8BIT(ch) KMIME_NOP
00054 #  define KMIME_WARN_PREMATURE_END_OF(x) KMIME_NOP
00055 #  define KMIME_WARN_LONE(x) KMIME_NOP
00056 #  define KMIME_WARN_NON_FOLDING(x) KMIME_NOP
00057 #  define KMIME_WARN_CTL_OUTSIDE_QS(x) KMIME_NOP
00058 #endif
00059 
00060 #endif

KMIME Library

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

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  • kabc
  • kblog
  • kcal
  • kimap
  • kioslave
  •   imap4
  •   mbox
  • kldap
  • kmime
  • kpimidentities
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal