kompare
cvsdiffparser.h
Go to the documentation of this file.00001 /************************************************************************** 00002 ** cvsdiffparser.h 00003 ** ---------------- 00004 ** begin : Sun Aug 4 15:05:35 2002 00005 ** Copyright 2002-2004 Otto Bruggeman <otto.bruggeman@home.nl> 00006 ***************************************************************************/ 00007 /*************************************************************************** 00008 ** 00009 ** This program is free software; you can redistribute it and/or modify 00010 ** it under the terms of the GNU General Public License as published by 00011 ** the Free Software Foundation; either version 2 of the License, or 00012 ** ( at your option ) any later version. 00013 ** 00014 ***************************************************************************/ 00015 00016 #ifndef CVSDIFF_PARSER_H 00017 #define CVSDIFF_PARSER_H 00018 00019 #include <QtCore/QRegExp> 00020 00021 #include "parserbase.h" 00022 00023 namespace Diff2 00024 { 00025 00026 class KompareModelList; 00027 00028 class CVSDiffParser : public ParserBase 00029 { 00030 public: 00031 CVSDiffParser( const KompareModelList* list, const QStringList& diff ); 00032 virtual ~CVSDiffParser(); 00033 00034 protected: 00035 virtual enum Kompare::Format determineFormat(); 00036 00037 protected: 00038 // virtual bool parseContextDiffHeader(); 00039 virtual bool parseEdDiffHeader(); 00040 virtual bool parseNormalDiffHeader(); 00041 virtual bool parseRCSDiffHeader(); 00042 // virtual bool parseUnifiedDiffHeader(); 00043 00044 // virtual bool parseContextHunkHeader(); 00045 virtual bool parseEdHunkHeader(); 00046 // virtual bool parseNormalHunkHeader(); 00047 virtual bool parseRCSHunkHeader(); 00048 // virtual bool parseUnifiedHunkHeader(); 00049 00050 // virtual bool parseContextHunkBody(); 00051 virtual bool parseEdHunkBody(); 00052 // virtual bool parseNormalHunkBody(); 00053 virtual bool parseRCSHunkBody(); 00054 // virtual bool parseUnifiedHunkBody(); 00055 }; 00056 00057 } // End of namespace Diff2 00058 00059 #endif
KDE 4.2 API Reference