File indexing completed on 2024-04-28 05:42:07
0001 /*************************************************************************** 0002 * Copyright (C) 2005-2009 by Rajko Albrecht * 0003 * ral@alwins-world.de * 0004 * * 0005 * This program is free software; you can redistribute it and/or * 0006 * modify it under the terms of the GNU Lesser General Public * 0007 * License as published by the Free Software Foundation; either * 0008 * version 2.1 of the License, or (at your option) any later version. * 0009 * * 0010 * This program is distributed in the hope that it will be useful, * 0011 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 0012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * 0013 * Lesser General Public License for more details. * 0014 * * 0015 * You should have received a copy of the GNU Lesser General Public * 0016 * License along with this program (in the file LGPL.txt); if not, * 0017 * write to the Free Software Foundation, Inc., 51 Franklin St, * 0018 * Fifth Floor, Boston, MA 02110-1301 USA * 0019 * * 0020 * This software consists of voluntary contributions made by many * 0021 * individuals. For exact contribution history, see the revision * 0022 * history and logs, available at https://commits.kde.org/kdesvn. * 0023 ***************************************************************************/ 0024 #include "client_commit_parameter.h" 0025 #include "client_parameter_macros.h" 0026 #include "stringarray.h" 0027 #include "svnqttypes.h" 0028 0029 namespace svn 0030 { 0031 struct CommitParameterData { 0032 CommitParameterData() 0033 : _targets() 0034 , _message(QString()) 0035 , _depth(DepthInfinity) 0036 , _changeList(StringArray()) 0037 , _revProps(PropertiesMap()) 0038 , _keepLocks(false) 0039 , _keepChangeList(false) 0040 , _commit_as_operations(false) 0041 { 0042 } 0043 Targets _targets; 0044 QString _message; 0045 Depth _depth; 0046 StringArray _changeList; 0047 PropertiesMap _revProps; 0048 bool _keepLocks, _keepChangeList, _commit_as_operations; 0049 }; 0050 0051 CommitParameter::CommitParameter() 0052 : _data(new CommitParameterData) 0053 { 0054 } 0055 0056 CommitParameter::~CommitParameter() 0057 { 0058 } 0059 0060 GETSET(CommitParameter, Targets, _targets, targets) 0061 GETSET(CommitParameter, QString, _message, message) 0062 GETSET(CommitParameter, StringArray, _changeList, changeList) 0063 GETSET(CommitParameter, PropertiesMap, _revProps, revisionProperties) 0064 GETSETSI(CommitParameter, Depth, _depth, depth) 0065 GETSETSI(CommitParameter, bool, _keepLocks, keepLocks) 0066 GETSETSI(CommitParameter, bool, _keepChangeList, keepChangeList) 0067 GETSETSI(CommitParameter, bool, _commit_as_operations, commitAsOperations) 0068 }