File indexing completed on 2024-05-12 17:16:20
0001 /* 0002 * Port for usage with qt-framework and development for kdesvn 0003 * Copyright (C) 2005-2009 by Rajko Albrecht (ral@alwins-world.de) 0004 * http://kdesvn.alwins-world.de 0005 */ 0006 /* 0007 * ==================================================================== 0008 * Copyright (c) 2002-2005 The RapidSvn Group. All rights reserved. 0009 * dev@rapidsvn.tigris.org 0010 * 0011 * This library is free software; you can redistribute it and/or 0012 * modify it under the terms of the GNU Lesser General Public 0013 * License as published by the Free Software Foundation; either 0014 * version 2.1 of the License, or (at your option) any later version. 0015 * 0016 * This library is distributed in the hope that it will be useful, 0017 * but WITHOUT ANY WARRANTY; without even the implied warranty of 0018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 0019 * Lesser General Public License for more details. 0020 * 0021 * You should have received a copy of the GNU Lesser General Public 0022 * License along with this library (in the file LGPL.txt); if not, 0023 * write to the Free Software Foundation, Inc., 51 Franklin St, 0024 * Fifth Floor, Boston, MA 02110-1301 USA 0025 * 0026 * This software consists of voluntary contributions made by many 0027 * individuals. For exact contribution history, see the revision 0028 * history and logs, available at http://rapidsvn.tigris.org/. 0029 * ==================================================================== 0030 */ 0031 #ifndef SVNQT_ANNOTATE_LINE_H 0032 #define SVNQT_ANNOTATE_LINE_H 0033 0034 #include "svnqt/svnqt_defines.h" 0035 #include "svnqt/svnqttypes.h" 0036 0037 #include <qstring.h> 0038 #include <qdatetime.h> 0039 0040 namespace svn 0041 { 0042 /** 0043 * This class holds the data for one line in an annotation 0044 */ 0045 class SVNQT_EXPORT AnnotateLine 0046 { 0047 public: 0048 AnnotateLine(); 0049 AnnotateLine(qlonglong line_no, 0050 qlonglong revision, 0051 const char *author, 0052 const char *date, 0053 const char *line, 0054 qlonglong merge_revision, 0055 const char *merge_author, 0056 const char *merge_date, 0057 const char *merge_path 0058 ); 0059 0060 AnnotateLine(qlonglong line_no, 0061 qlonglong revision, 0062 const PropertiesMap &revisionproperties, 0063 const char *line, 0064 qlonglong merge_revision, 0065 const PropertiesMap &mergeproperties, 0066 const char *merge_path, 0067 qlonglong revstart, 0068 qlonglong revend, 0069 bool local 0070 ); 0071 0072 qlonglong 0073 lineNumber() const 0074 { 0075 return m_line_no; 0076 } 0077 qlonglong 0078 revision() const 0079 { 0080 return m_revision; 0081 } 0082 0083 const QByteArray & 0084 author() const 0085 { 0086 return m_author; 0087 } 0088 0089 const QDateTime & 0090 date() const 0091 { 0092 return m_date; 0093 } 0094 0095 const QByteArray & 0096 line() const 0097 { 0098 return m_line; 0099 } 0100 0101 protected: 0102 qlonglong m_line_no; 0103 qlonglong m_revision; 0104 QDateTime m_date; 0105 QByteArray m_line; 0106 QByteArray m_author; 0107 0108 qlonglong m_merge_revision; 0109 QDateTime m_merge_date; 0110 QByteArray m_merge_author; 0111 QByteArray m_merge_path; 0112 }; 0113 } 0114 0115 #endif 0116 /* ----------------------------------------------------------------- 0117 * local variables: 0118 * eval: (load-file "../../rapidsvn-dev.el") 0119 * end: 0120 */