errorhandler.cpp
00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 
00022 
00023 #include <kdebug.h>
00024 #include <klocale.h>
00025 #include <kmessagebox.h>
00026 
00027 #include "errorhandler.h"
00028 
00029 using namespace KABC;
00030 
00031 void ConsoleErrorHandler::error( const QString &msg )
00032 {
00033   
00034   kdError() << msg << endl;
00035 }
00036 
00037 
00038 void GUIErrorHandler::error( const QString &msg )
00039 {
00040   KMessageBox::error( 0, msg, i18n( "Error in libkabc" ) );
00041 }
00042 
00043 
00044 GuiErrorHandler::GuiErrorHandler( QWidget *parent )
00045   : mParent( parent )
00046 {
00047 }
00048 
00049 void GuiErrorHandler::error( const QString &msg )
00050 {
00051   KMessageBox::error( mParent, msg );
00052 }
 
This file is part of the documentation for kabc Library Version 3.2.0.