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

kabc

errorhandler.h

00001 /*
00002     This file is part of libkabc.
00003 
00004     Copyright (c) 2002 Tobias Koenig <tokoe@kde.org>
00005     Copyright (c) 2003 Cornelius Schumacher <schumacher@kde.org>
00006 
00007     This library is free software; you can redistribute it and/or
00008     modify it under the terms of the GNU Library General Public
00009     License as published by the Free Software Foundation; either
00010     version 2 of the License, or (at your option) any later version.
00011 
00012     This library is distributed in the hope that it will be useful,
00013     but WITHOUT ANY WARRANTY; without even the implied warranty of
00014     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015     Library General Public License for more details.
00016 
00017     You should have received a copy of the GNU Library General Public License
00018     along with this library; see the file COPYING.LIB.  If not, write to
00019     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00020     Boston, MA 02110-1301, USA.
00021 */
00022 #ifndef KABC_ERRORHANDLER_H
00023 #define KABC_ERRORHANDLER_H
00024 
00025 #include "kabc_export.h"
00026 #include <QtCore/QString>
00027 
00028 class QWidget;
00029 
00030 namespace KABC {
00031 
00039 class KABC_EXPORT ErrorHandler
00040 {
00041   public:
00045     virtual ~ErrorHandler();
00046 
00052     virtual void error( const QString &msg ) = 0;
00053 };
00054 
00058 class KABC_EXPORT ConsoleErrorHandler : public ErrorHandler
00059 {
00060   public:
00066     ConsoleErrorHandler();
00067 
00071     virtual ~ConsoleErrorHandler();
00072 
00073     virtual void error( const QString &msg );
00074 
00075   private:
00076     class Private;
00077     Private *const d;
00078 
00079     Q_DISABLE_COPY( ConsoleErrorHandler )
00080 };
00081 
00086 class KABC_EXPORT GuiErrorHandler : public ErrorHandler
00087 {
00088   public:
00096     GuiErrorHandler( QWidget *parent = 0 );
00097 
00101     virtual ~GuiErrorHandler();
00102 
00103     virtual void error( const QString &msg );
00104 
00105   private:
00106     class Private;
00107     Private *const d;
00108 
00109     Q_DISABLE_COPY( GuiErrorHandler )
00110 };
00111 
00112 }
00113 
00114 #endif

kabc

Skip menu "kabc"
  • 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
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  • kldap
  • kmime
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.6.1
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