File indexing completed on 2024-05-05 04:49:21

0001 /****************************************************************************************
0002  * Copyright (c) 2012 Matěj Laitl <matej@laitl.cz>                                      *
0003  *                                                                                      *
0004  * This program is free software; you can redistribute it and/or modify it under        *
0005  * the terms of the GNU General Public License as published by the Free Software        *
0006  * Foundation; either version 2 of the License, or (at your option) any later           *
0007  * version.                                                                             *
0008  *                                                                                      *
0009  * This program is distributed in the hope that it will be useful, but WITHOUT ANY      *
0010  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A      *
0011  * PARTICULAR PURPOSE. See the GNU General Public License for more details.             *
0012  *                                                                                      *
0013  * You should have received a copy of the GNU General Public License along with         *
0014  * this program.  If not, see <http://www.gnu.org/licenses/>.                           *
0015  ****************************************************************************************/
0016 
0017 #ifndef STATSYNCING_OPTIONS_H
0018 #define STATSYNCING_OPTIONS_H
0019 
0020 #include <QtGlobal>
0021 #include <QString>
0022 #include <QSet>
0023 
0024 namespace StatSyncing
0025 {
0026     /**
0027      * A container for options controlling how synchronization of two tracks is
0028      * performed.
0029      */
0030     class Options
0031     {
0032         public:
0033             explicit Options();
0034 
0035             /**
0036              * Binary OR of Meta::val* fields that should be synced.
0037              */
0038             qint64 syncedFields() const;
0039             void setSyncedFields( qint64 fields );
0040 
0041             /**
0042              * A list of labels statsyncing should not touch at all.
0043              */
0044             QSet<QString> excludedLabels() const;
0045             void setExcludedLabels( const QSet<QString> &labels );
0046 
0047         private:
0048             qint64 m_syncedFields;
0049             QSet<QString> m_excludedLabels;
0050     };
0051 
0052 } // namespace StatSyncing
0053 
0054 #endif // STATSYNCING_OPTIONS_H