File indexing completed on 2024-04-28 05:42:07
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 * https://kde.org/applications/development/org.kde.kdesvn 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 <qdatetime.h> 0038 #include <qstring.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 AnnotateLine(qlonglong line_no, 0060 qlonglong revision, 0061 const PropertiesMap &revisionproperties, 0062 const char *line, 0063 qlonglong merge_revision, 0064 const PropertiesMap &mergeproperties, 0065 const char *merge_path, 0066 qlonglong revstart, 0067 qlonglong revend, 0068 bool local); 0069 0070 qlonglong lineNumber() const 0071 { 0072 return m_line_no; 0073 } 0074 qlonglong revision() const 0075 { 0076 return m_revision; 0077 } 0078 0079 const QByteArray &author() const 0080 { 0081 return m_author; 0082 } 0083 0084 const QDateTime &date() const 0085 { 0086 return m_date; 0087 } 0088 0089 const QByteArray &line() const 0090 { 0091 return m_line; 0092 } 0093 0094 protected: 0095 qlonglong m_line_no; 0096 qlonglong m_revision; 0097 QDateTime m_date; 0098 QByteArray m_line; 0099 QByteArray m_author; 0100 0101 qlonglong m_merge_revision; 0102 QDateTime m_merge_date; 0103 QByteArray m_merge_author; 0104 QByteArray m_merge_path; 0105 }; 0106 } 0107 0108 #endif 0109 /* ----------------------------------------------------------------- 0110 * local variables: 0111 * eval: (load-file "../../rapidsvn-dev.el") 0112 * end: 0113 */