parts/outputviews/compileerrorfilter.h
Go to the documentation of this file.00001 /*************************************************************************** 00002 * Copyright (C) 1999-2001 by Bernd Gehrmann and the KDevelop Team * 00003 * bernd@kdevelop.org * 00004 * * 00005 * This program is free software; you can redistribute it and/or modify * 00006 * it under the terms of the GNU General Public License as published by * 00007 * the Free Software Foundation; either version 2 of the License, or * 00008 * (at your option) any later version. * 00009 * * 00010 ***************************************************************************/ 00011 00012 #ifndef CompileErrorFilter_h 00013 #define CompileErrorFilter_h 00014 00015 #include <qobject.h> 00016 #include <qregexp.h> 00017 #include <qvaluelist.h> 00018 #include "outputfilter.h" 00019 00020 class MakeItem; 00021 00022 class CompileErrorFilter : public QObject, public OutputFilter 00023 { 00024 Q_OBJECT 00025 00026 public: 00027 CompileErrorFilter( OutputFilter& ); 00028 00029 struct ErrorFormat 00030 { 00031 ErrorFormat() {} 00032 ErrorFormat( const char *, int, int, int ); 00033 ErrorFormat( const char *, int, int, int, QString ); 00034 QRegExp expression; 00035 int fileGroup; 00036 int lineGroup; 00037 int textGroup; 00038 QString compiler; 00039 }; 00040 static ErrorFormat* errorFormats(); 00041 00042 void processLine( const QString& line ); 00043 00044 signals: 00045 void item( MakeItem* ); 00046 }; 00047 00048 #endif