File indexing completed on 2024-04-28 05:42:08
0001 /*************************************************************************** 0002 * Copyright (C) 2007-2010 by Rajko Albrecht ral@alwins-world.de * 0003 * https://kde.org/applications/development/org.kde.kdesvn * 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 0025 #include "client_update_parameter.h" 0026 #include "path.h" 0027 #include "svnqttypes.h" 0028 #include "targets.h" 0029 0030 #include "client_parameter_macros.h" 0031 0032 namespace svn 0033 { 0034 struct SVNQT_NOEXPORT UpdateParameterData { 0035 UpdateParameterData() 0036 : _destPaths() 0037 , _srcRevision() 0038 , _depth(DepthInfinity) 0039 , _ignore_externals(false) 0040 , _allow_unversioned(false) 0041 , _sticky_depth(true) 0042 , _make_parents(false) 0043 , _add_as_modification(true) 0044 { 0045 } 0046 Targets _destPaths; 0047 Revision _srcRevision; 0048 Depth _depth; 0049 bool _ignore_externals; 0050 bool _allow_unversioned; 0051 bool _sticky_depth; 0052 bool _make_parents; 0053 bool _add_as_modification; 0054 }; 0055 0056 UpdateParameter::UpdateParameter() 0057 : _data(new UpdateParameterData) 0058 { 0059 } 0060 0061 UpdateParameter::~UpdateParameter() 0062 { 0063 } 0064 0065 GETSET(UpdateParameter, Targets, _destPaths, targets) 0066 GETSET(UpdateParameter, Revision, _srcRevision, revision) 0067 0068 GETSETSI(UpdateParameter, Depth, _depth, depth) 0069 GETSETSI(UpdateParameter, bool, _ignore_externals, ignore_externals) 0070 GETSETSI(UpdateParameter, bool, _allow_unversioned, allow_unversioned) 0071 GETSETSI(UpdateParameter, bool, _sticky_depth, sticky_depth) 0072 GETSETSI(UpdateParameter, bool, _make_parents, make_parents) 0073 GETSETSI(UpdateParameter, bool, _add_as_modification, add_as_modification) 0074 }