kexi

kexiguimsghandler.h

00001 /* This file is part of the KDE project
00002    Copyright (C) 2004 Jaroslaw Staniek <js@iidea.pl>
00003 
00004    This library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Library General Public
00006    License as published by the Free Software Foundation; either
00007    version 2 of the License, or (at your option) any later version.
00008 
00009    This library is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012    Library General Public License for more details.
00013 
00014    You should have received a copy of the GNU Library General Public License
00015    along with this library; see the file COPYING.LIB.  If not, write to
00016    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017  * Boston, MA 02110-1301, USA.
00018 */
00019 
00020 #ifndef KEXIGUIMSGHANDLER_H
00021 #define KEXIGUIMSGHANDLER_H
00022 
00023 #include <core/kexi.h>
00024 #include <kexidb/msghandler.h>
00025 
00026 class KEXICORE_EXPORT KexiGUIMessageHandler : public KexiDB::MessageHandler
00027 {
00028     public:
00029         KexiGUIMessageHandler(QWidget *parent = 0);
00030         virtual ~KexiGUIMessageHandler();
00031         virtual void showErrorMessage(const QString &title, const QString &details = QString::null);
00032         virtual void showErrorMessage(KexiDB::Object *obj, const QString& msg = QString::null);
00033 
00034         void showErrorMessage(const QString&,const QString&,KexiDB::Object *obj);
00035         void showErrorMessage(Kexi::ObjectStatus *status);
00036         void showErrorMessage(const QString &message, Kexi::ObjectStatus *status);
00037         void showSorryMessage(const QString &title, const QString &details = QString::null);
00038         virtual void showMessage(MessageType type, const QString &title, const QString &details);
00039 
00042         virtual int askQuestion( const QString& message, 
00043             KMessageBox::DialogType dlgType, KMessageBox::ButtonCode defaultResult,
00044             const KGuiItem &buttonYes=KStdGuiItem::yes(), 
00045             const KGuiItem &buttonNo=KStdGuiItem::no(),
00046             const QString &dontShowAskAgainName = QString::null,
00047             int options = KMessageBox::Notify );
00048 };
00049 
00050 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys