File indexing completed on 2024-05-12 17:16:22

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