2 * TjMessageHandler.h - TaskJuggler
4 * Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007
5 * by Chris Schlaeger <cs@kde.org>
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of version 2 of the GNU General Public License as
9 * published by the Free Software Foundation.
14 #include "TjMessageHandler.h"
16 TjMessageHandler TJMH(true);
19 TjMessageHandler::warningMessage(const QString& msg, const QString& file, int
27 qWarning("%s", msg.latin1());
29 qWarning("%s:%d: %s", file.latin1(), line, msg.latin1());
32 printWarning(msg, file, line);
36 TjMessageHandler::errorMessage(const QString& msg, const QString& file, int
44 qWarning("%s", msg.latin1());
46 qWarning("%s:%d: %s", file.latin1(), line, msg.latin1());
49 printError(msg, file, line);
53 TjMessageHandler::fatalMessage(const QString& msg, const QString& file, int
59 qFatal("%s", msg.latin1());
61 qFatal("%s:%d: %s", file.latin1(), line, msg.latin1());
64 printFatal(msg, file, line);
67 #include "TjMessageHandler.moc"