Warning, file /sdk/cervisia/entry_status.cpp 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) 2004-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 #include "entry_status.h" 0020 0021 #include <qstring.h> 0022 0023 #include <KLocalizedString> 0024 0025 namespace Cervisia 0026 { 0027 0028 QString toString(EntryStatus entryStatus) 0029 { 0030 QString result; 0031 switch (entryStatus) { 0032 case LocallyModified: 0033 result = i18n("Locally Modified"); 0034 break; 0035 case LocallyAdded: 0036 result = i18n("Locally Added"); 0037 break; 0038 case LocallyRemoved: 0039 result = i18n("Locally Removed"); 0040 break; 0041 case NeedsUpdate: 0042 result = i18n("Needs Update"); 0043 break; 0044 case NeedsPatch: 0045 result = i18n("Needs Patch"); 0046 break; 0047 case NeedsMerge: 0048 result = i18n("Needs Merge"); 0049 break; 0050 case UpToDate: 0051 result = i18n("Up to Date"); 0052 break; 0053 case Conflict: 0054 result = i18n("Conflict"); 0055 break; 0056 case Updated: 0057 result = i18n("Updated"); 0058 break; 0059 case Patched: 0060 result = i18n("Patched"); 0061 break; 0062 case Removed: 0063 result = i18n("Removed"); 0064 break; 0065 case NotInCVS: 0066 result = i18n("Not in CVS"); 0067 break; 0068 case Unknown: 0069 result = i18n("Unknown"); 0070 break; 0071 } 0072 0073 return result; 0074 } 0075 0076 } // namespace Cervisia