• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kabc
 

kabc

  • kabc
errorhandler.cpp
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 
23 #include <kdebug.h>
24 #include <klocale.h>
25 #include <kmessagebox.h>
26 
27 #include <tqapplication.h>
28 
29 #include "errorhandler.h"
30 
31 using namespace KABC;
32 
33 void ConsoleErrorHandler::error( const TQString &msg )
34 {
35  // no debug area is ok here
36  kdError() << msg << endl;
37 }
38 
39 
40 void GUIErrorHandler::error( const TQString &msg )
41 {
42  KMessageBox::error( 0, msg, i18n( "Error in libkabc" ) );
43 }
44 
45 
46 GuiErrorHandler::GuiErrorHandler( TQWidget *parent )
47  : mParent( parent )
48 {
49 }
50 
51 void GuiErrorHandler::error( const TQString &msg )
52 {
53  if (tqApp)
54  KMessageBox::error( mParent, msg );
55 }
KMessageBox::error
static void error(TQWidget *parent, const TQString &text, const TQString &caption=TQString::null, int options=Notify)
kdError
kdbgstream kdError(int area=0)
KABC::ConsoleErrorHandler::error
virtual void error(const TQString &msg)
Show error message.
Definition: errorhandler.cpp:33
klocale.h
KABC::GuiErrorHandler::error
virtual void error(const TQString &msg)
Show error message.
Definition: errorhandler.cpp:51
KABC::GUIErrorHandler::error
virtual void error(const TQString &msg)
Show error message.
Definition: errorhandler.cpp:40
KABC::GuiErrorHandler::GuiErrorHandler
GuiErrorHandler(TQWidget *parent)
Create error handler.
Definition: errorhandler.cpp:46
endl
kndbgstream & endl(kndbgstream &s)

kabc

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

kabc

Skip menu "kabc"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kabc by doxygen 1.8.6
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |