1
/***************************************************************************
2
copyright : (C) 2005-2006 by Robby Stephenson
3
email : robby@periapsis.org
4
***************************************************************************/
6
/***************************************************************************
8
* This file has been modified to match the requirements of KBibTeX. *
9
* In case of problems or bugs arising from this implementation, please *
10
* contact the KBibTeX team first. *
11
* Thomas Fischer <fischer@unix-ag.uni-kl.de> *
13
***************************************************************************/
15
/***************************************************************************
17
* This program is free software; you can redistribute it and/or modify *
18
* it under the terms of version 2 of the GNU General Public License as *
19
* published by the Free Software Foundation; *
21
***************************************************************************/
23
#include "messagehandler.h"
25
#include <kmessagebox.h>
29
// all messages go to manager
30
void ManagerMessage::send(const QString& message_, Type type_) {
31
// Fetch::Manager::self()->updateStatus(message_);
32
// plus errors get a message box
34
KMessageBox::sorry(NULL, message_); // FIXME: some widget instead of NULL
35
} else if(type_ == Warning) {
36
KMessageBox::information(NULL, message_); // FIXME: some widget instead of NULL
40
void ManagerMessage::infoList(const QString& message_, const QStringList& list_) {
41
KMessageBox::informationList(NULL, message_, list_); // FIXME: some widget instead of NULL