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
#ifndef KBIBTEX_MESSAGEHANDLER_H
24
#define KBIBTEX_MESSAGEHANDLER_H
32
* @author Robby Stephenson
34
class MessageHandler {
36
enum Type { Status, Warning, Error, ListError };
39
virtual ~MessageHandler() {}
41
virtual void send(const QString& message, Type type) = 0;
42
virtual void infoList(const QString& message, const QStringList& list) = 0;
45
class ManagerMessage : public MessageHandler {
47
ManagerMessage() : MessageHandler() {}
48
virtual ~ManagerMessage() {}
50
virtual void send(const QString& message, Type type);
51
virtual void infoList(const QString& message, const QStringList& list);