Chris@57: /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ Chris@57: Chris@57: /* Chris@57: EasyMercurial Chris@57: Chris@57: Based on HgExplorer by Jari Korhonen Chris@57: Copyright (c) 2010 Jari Korhonen Chris@244: Copyright (c) 2011 Chris Cannam Chris@244: Copyright (c) 2011 Queen Mary, University of London Chris@57: Chris@57: This program is free software; you can redistribute it and/or Chris@57: modify it under the terms of the GNU General Public License as Chris@57: published by the Free Software Foundation; either version 2 of the Chris@57: License, or (at your option) any later version. See the file Chris@57: COPYING included with this distribution for more information. Chris@57: */ Chris@57: Chris@43: #ifndef LOGPARSER_H Chris@43: #define LOGPARSER_H Chris@43: Chris@43: #include Chris@43: #include Chris@43: #include Chris@43: #include Chris@43: Chris@43: typedef QMap LogEntry; Chris@43: typedef QList LogList; Chris@43: Chris@43: class LogParser : public QObject Chris@43: { Chris@43: public: Chris@74: LogParser(QString text, QString separator = ":"); Chris@43: Chris@43: QStringList split(); Chris@43: LogList parse(); Chris@43: Chris@43: private: Chris@43: QString m_text; Chris@74: QString m_sep; Chris@43: }; Chris@43: Chris@43: #endif // LOGPARSER_H