kmail Library API Documentation

kmdebug.h

00001 // -*- c++ -*- convenience wrappers around kdDebug/kdWarning/etc 00002 00003 #ifndef __KMAIL_KMDEBUG_H__ 00004 #define __KMAIL_KMDEBUG_H__ 00005 00006 #include <kdebug.h> 00007 00008 // return type of kmDebug() depends on NDEBUG define: 00009 #ifdef NDEBUG 00010 # define kmail_dbgstream kndbgstream 00011 #else 00012 # define kmail_dbgstream kdbgstream 00013 #endif 00014 00016 static const int kmail_debug_area = 5006; 00017 00018 static inline kmail_dbgstream kmDebug() { return kdDebug( kmail_debug_area ); } 00019 static inline kmail_dbgstream kmDebug( bool cond ) { return kdDebug( cond, kmail_debug_area ); } 00020 00021 static inline kdbgstream kmWarning() { return kdWarning( kmail_debug_area ); } 00022 static inline kdbgstream kmWarning( bool cond ) { return kdWarning( cond, kmail_debug_area ); } 00023 00024 static inline kdbgstream kmError() { return kdError( kmail_debug_area ); } 00025 static inline kdbgstream kmError( bool cond ) { return kdError( cond, kmail_debug_area ); } 00026 00027 static inline kdbgstream kmFatal() { return kdFatal( kmail_debug_area ); } 00028 static inline kdbgstream kmFatal( bool cond ) { return kdFatal( cond, kmail_debug_area ); } 00029 00030 #endif // __KMAIL_KMDEBUG_H__
KDE Logo
This file is part of the documentation for kmail Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Jul 28 23:58:00 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003