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

« back to all changes in this revision

Viewing changes to src/messagehandler.cpp

  • 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
 
#include "messagehandler.h"
24
 
 
25
 
#include <kmessagebox.h>
26
 
 
27
 
namespace KBibTeX {
28
 
 
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
33
 
  if(type_ == Error) {
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
37
 
  }
38
 
}
39
 
 
40
 
void ManagerMessage::infoList(const QString& message_, const QStringList& list_) {
41
 
  KMessageBox::informationList(NULL, message_, list_); // FIXME: some widget instead of NULL
42
 
}
43
 
 
44
 
}