Warning, file /sdk/cervisia/entry.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* 0002 * Copyright (c) 2003-2008 André Wöbbeking <Woebbeking@kde.org> 0003 * 0004 * This program is free software; you can redistribute it and/or modify 0005 * it under the terms of the GNU General Public License as published by 0006 * the Free Software Foundation; either version 2 of the License, or 0007 * (at your option) any later version. 0008 * 0009 * This program is distributed in the hope that it will be useful, 0010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 0011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0012 * GNU General Public License for more details. 0013 * 0014 * You should have received a copy of the GNU General Public License 0015 * along with this program; if not, write to the Free Software 0016 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 0017 */ 0018 0019 #ifndef CERVISIA_ENTRY_H 0020 #define CERVISIA_ENTRY_H 0021 0022 #include <qdatetime.h> 0023 #include <qstring.h> 0024 0025 #include "entry_status.h" 0026 0027 namespace Cervisia 0028 { 0029 0030 /** 0031 * Dumb data struct to store an entry controlled by a version control system. 0032 */ 0033 struct Entry { 0034 enum Type { Dir, File }; 0035 0036 /** 0037 * Sets status to \a EntryStatus::Unknown and type to \a File. 0038 */ 0039 Entry(); 0040 0041 /** 0042 * The name of this entry (without path). 0043 */ 0044 QString m_name; 0045 0046 /** 0047 * The type of this entry. 0048 */ 0049 Type m_type; 0050 0051 /** 0052 * The status of this entry. 0053 */ 0054 EntryStatus m_status; 0055 0056 /** 0057 * The revision of this entry. 0058 */ 0059 QString m_revision; 0060 0061 /** 0062 * The modification date/time of this entry (in user's local time). 0063 */ 0064 QDateTime m_dateTime; 0065 0066 /** 0067 * The tag/branch of this entry. 0068 */ 0069 QString m_tag; 0070 }; 0071 0072 } // namespace Cervisia 0073 0074 #endif // CERVISIA_ENTRY_H