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

tdeabc

  • tdeabc
errorhandler.cpp
1/*
2 This file is part of libtdeabc.
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 <tdelocale.h>
25#include <tdemessagebox.h>
26
27#include <tqapplication.h>
28
29#include "errorhandler.h"
30
31using namespace TDEABC;
32
33void ConsoleErrorHandler::error( const TQString &msg )
34{
35 // no debug area is ok here
36 kdError() << msg << endl;
37}
38
39
40void GUIErrorHandler::error( const TQString &msg )
41{
42 KMessageBox::error( 0, msg, i18n( "Error in libtdeabc" ) );
43}
44
45
46GuiErrorHandler::GuiErrorHandler( TQWidget *parent )
47 : mParent( parent )
48{
49}
50
51void 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)
TDEABC::GUIErrorHandler::error
virtual void error(const TQString &msg)
Show error message.
Definition: errorhandler.cpp:40
TDEABC::GuiErrorHandler::error
virtual void error(const TQString &msg)
Show error message.
Definition: errorhandler.cpp:51
TDEABC::GuiErrorHandler::GuiErrorHandler
GuiErrorHandler(TQWidget *parent)
Create error handler.
Definition: errorhandler.cpp:46
kdError
kdbgstream kdError(int area=0)
endl
kndbgstream & endl(kndbgstream &s)
TDEABC
static data, shared by ALL addressee objects
Definition: address.h:48
tdelocale.h

tdeabc

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

tdeabc

Skip menu "tdeabc"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeabc by doxygen 1.9.4
This website is maintained by Timothy Pearson.