• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepimlibs API Reference
  • KDE Home
  • Contact Us
 

kabc

  • sources
  • kde-4.12
  • kdepimlibs
  • kabc
errorhandler.h
1 /*
2  This file is part of libkabc.
3 
4  Copyright (c) 2002 Tobias Koenig <tokoe@kde.org>
5  Copyright (c) 2003 Cornelius Schumacher <schumacher@kde.org>
6 
7  This library is free software; you can redistribute it and/or
8  modify it under the terms of the GNU Library General Public
9  License as published by the Free Software Foundation; either
10  version 2 of the License, or (at your option) any later version.
11 
12  This library is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  Library General Public License for more details.
16 
17  You should have received a copy of the GNU Library General Public License
18  along with this library; see the file COPYING.LIB. If not, write to
19  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20  Boston, MA 02110-1301, USA.
21 */
22 #ifndef KABC_ERRORHANDLER_H
23 #define KABC_ERRORHANDLER_H
24 
25 #include "kabc_export.h"
26 #include <QtCore/QString>
27 
28 class QWidget;
29 
30 namespace KABC {
31 
39 class KABC_EXPORT ErrorHandler
40 {
41  public:
45  virtual ~ErrorHandler();
46 
52  virtual void error( const QString &msg ) = 0;
53 };
54 
58 class KABC_EXPORT ConsoleErrorHandler : public ErrorHandler
59 {
60  public:
66  ConsoleErrorHandler();
67 
71  virtual ~ConsoleErrorHandler();
72 
73  virtual void error( const QString &msg );
74 
75  private:
76  class Private;
77  Private *const d;
78 
79  Q_DISABLE_COPY( ConsoleErrorHandler )
80 };
81 
86 class KABC_EXPORT GuiErrorHandler : public ErrorHandler
87 {
88  public:
96  GuiErrorHandler( QWidget *parent = 0 );
97 
101  virtual ~GuiErrorHandler();
102 
103  virtual void error( const QString &msg );
104 
105  private:
106  class Private;
107  Private *const d;
108 
109  Q_DISABLE_COPY( GuiErrorHandler )
110 };
111 
112 }
113 
114 #endif
KABC::ErrorHandler
Abstract class that provides displaying of error messages.
Definition: errorhandler.h:39
KABC::GuiErrorHandler
This class shows messages boxes for every error message.
Definition: errorhandler.h:86
KABC::ConsoleErrorHandler
This class prints the error messages to stderr via kError().
Definition: errorhandler.h:58
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:01:05 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kabc

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

kdepimlibs API Reference

Skip menu "kdepimlibs API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kldap
  • kmbox
  • kmime
  • kpimidentities
  • kpimtextedit
  • kresources
  • ktnef
  • kxmlrpcclient
  • microblog

Search



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