1 /**************************************************************************************** 2 * Copyright (c) 2012 Matěj Laitl <matej@laitl.cz> * 3 * * 4 * This program is free software; you can redistribute it and/or modify it under * 5 * the terms of the GNU General Public License as published by the Free Software * 6 * Foundation; either version 2 of the License, or (at your option) any later * 7 * version. * 8 * * 9 * This program is distributed in the hope that it will be useful, but WITHOUT ANY * 10 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A * 11 * PARTICULAR PURPOSE. See the GNU General Public License for more details. * 12 * * 13 * You should have received a copy of the GNU General Public License along with * 14 * this program. If not, see <http://www.gnu.org/licenses/>. * 15 ****************************************************************************************/ 16 17 #ifndef STATSYNCING_OPTIONS_H 18 #define STATSYNCING_OPTIONS_H 19 20 #include <QtGlobal> 21 #include <QString> 22 #include <QSet> 23 24 namespace StatSyncing 25 { 26 /** 27 * A container for options controlling how synchronization of two tracks is 28 * performed. 29 */ 30 class Options 31 { 32 public: 33 explicit Options(); 34 35 /** 36 * Binary OR of Meta::val* fields that should be synced. 37 */ 38 qint64 syncedFields() const; 39 void setSyncedFields( qint64 fields ); 40 41 /** 42 * A list of labels statsyncing should not touch at all. 43 */ 44 QSet<QString> excludedLabels() const; 45 void setExcludedLabels( const QSet<QString> &labels ); 46 47 private: 48 qint64 m_syncedFields; 49 QSet<QString> m_excludedLabels; 50 }; 51 52 } // namespace StatSyncing 53 54 #endif // STATSYNCING_OPTIONS_H 55