vcs/cvsservice/changelog.h
Go to the documentation of this file.00001 /*************************************************************************** 00002 * Copyright (C) 2003 by Mario Scalas * 00003 * mario.scalas@libero.it * 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 CHANGELOG_H 00013 #define CHANGELOG_H 00014 00015 #include <qstringlist.h> 00016 00022 struct ChangeLogEntry 00023 { 00024 public: 00025 ChangeLogEntry(); 00026 ~ChangeLogEntry(); 00027 00029 void addLine( const QString &aLine ); 00031 void addLines( const QStringList &someLines ); 00034 QString toString( const QString &startLineString = QString::null ) const; 00037 void addToLog( const QString &logFilePath, const bool prepend = true, const QString &startLineString = "\t" ); 00038 00039 QString authorName, 00040 authorEmail, 00041 date; 00042 QStringList lines; 00043 }; 00044 00045 #endif