makeactionfilter.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 MakeActionFilter_h 00013 #define MakeActionFilter_h 00014 00015 #include <qobject.h> 00016 #include <qregexp.h> 00017 #include <qvaluelist.h> 00018 #include "outputfilter.h" 00019 00020 class MakeItem; 00021 class ActionItem; 00022 00023 class MakeActionFilter : public QObject, public OutputFilter 00024 { 00025 Q_OBJECT 00026 00027 public: 00028 #ifdef DEBUG 00029 static void test(); 00030 #endif 00031 00032 MakeActionFilter( OutputFilter& ); 00033 00034 struct ActionFormat 00035 { 00036 ActionFormat() {} 00037 ActionFormat( const QString&, const QString&, const char *, int ); 00038 QString action; 00039 QString tool; 00040 QRegExp expression; 00041 int fileGroup; 00042 }; 00043 static ActionFormat* actionFormats(); 00044 00045 void processLine( const QString& line ); 00046 00047 signals: 00048 void item( MakeItem* ); 00049 00050 private: 00051 static ActionItem* matchLine( const QString& line ); 00052 }; 00053 00054 #endif