• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.8.3 API Reference
  • KDE Home
  • 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 kDebug() << "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 '" << ch << "'"
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
00042 #  define KMIME_WARN_LONE(x) KMIME_WARN << "Lonely " #x " character"
00043 #  define KMIME_WARN_NON_FOLDING(x) KMIME_WARN << "Non-folding " #x
00044 #  define KMIME_WARN_CTL_OUTSIDE_QS(x) KMIME_WARN << "Control character " \
00045           #x " outside quoted-string"
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
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon Apr 30 2012 21:48:41 by doxygen 1.8.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KMIME Library

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

kdepimlibs-4.8.3 API Reference

Skip menu "kdepimlibs-4.8.3 API Reference"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • 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