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
}
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