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

kabc

  • 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
28class QWidget;
29
30namespace KABC {
31
39class KABC_EXPORT ErrorHandler
40{
41 public:
45 virtual ~ErrorHandler();
46
52 virtual void error( const QString &msg ) = 0;
53};
54
58class 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
86class 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::ConsoleErrorHandler
This class prints the error messages to stderr via kError().
Definition: errorhandler.h:59
KABC::ErrorHandler
Abstract class that provides displaying of error messages.
Definition: errorhandler.h:40
KABC::ErrorHandler::error
virtual void error(const QString &msg)=0
Show error message.
KABC::GuiErrorHandler
This class shows messages boxes for every error message.
Definition: errorhandler.h:87
KABC
Class that holds a Calendar Url (FBURL/CALADRURI/CALURI)
Definition: address.h:29
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jul 21 2022 00:00:00 by doxygen 1.9.5 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-4.14.10 API Reference

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