~ubuntu-branches/ubuntu/wily/kbibtex/wily

« back to all changes in this revision

Viewing changes to src/messagehandler.h

  • Committer: Package Import Robot
  • Author(s): Michael Hanke
  • Date: 2011-07-18 09:29:48 UTC
  • mfrom: (1.1.6) (2.1.5 sid)
  • Revision ID: package-import@ubuntu.com-20110718092948-ksxjmg7kdfamolmg
Tags: 0.3-1
* First upstream release for KDE4 (Closes: #634255). A number of search
  engines are still missing, in comparison to the 0.2 series.
* Bumped Standards-Version to 3.9.2, no changes necessary.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/***************************************************************************
2
 
    copyright            : (C) 2005-2006 by Robby Stephenson
3
 
    email                :  robby@periapsis.org
4
 
 ***************************************************************************/
5
 
 
6
 
/***************************************************************************
7
 
 *                                                                         *
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>  *
12
 
 *                                                                         *
13
 
 ***************************************************************************/
14
 
 
15
 
/***************************************************************************
16
 
 *                                                                         *
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;                            *
20
 
 *                                                                         *
21
 
 ***************************************************************************/
22
 
 
23
 
#ifndef KBIBTEX_MESSAGEHANDLER_H
24
 
#define KBIBTEX_MESSAGEHANDLER_H
25
 
 
26
 
class QString;
27
 
class QStringList;
28
 
 
29
 
namespace KBibTeX {
30
 
 
31
 
/**
32
 
 * @author Robby Stephenson
33
 
 */
34
 
class MessageHandler {
35
 
public:
36
 
  enum Type { Status, Warning, Error, ListError };
37
 
 
38
 
  MessageHandler() {}
39
 
  virtual ~MessageHandler() {}
40
 
 
41
 
  virtual void send(const QString& message, Type type) = 0;
42
 
  virtual void infoList(const QString& message, const QStringList& list) = 0;
43
 
};
44
 
 
45
 
class ManagerMessage : public MessageHandler {
46
 
public:
47
 
  ManagerMessage() : MessageHandler() {}
48
 
  virtual ~ManagerMessage() {}
49
 
 
50
 
  virtual void send(const QString& message, Type type);
51
 
  virtual void infoList(const QString& message, const QStringList& list);
52
 
};
53
 
 
54
 
} // end namespace
55
 
 
56
 
#endif