1 /* 2 This library is free software; you can redistribute it and/or 3 modify it under the terms of the GNU Library General Public 4 License either version 2 5 of the License, or (at your option) any later version.or later as published by the Free Software Foundation. 6 7 This library is distributed in the hope that it will be useful, 8 but WITHOUT ANY WARRANTY; without even the implied warranty of 9 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10 Library General Public License for more details. 11 12 You should have received a copy of the GNU Library General Public License 13 along with this library; see the file COPYING.LIB. If not, write to 14 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 15 Boston, MA 02110-1301, USA. 16 */ 17 18 #ifndef DISTRIBUTIONDATA_H 19 #define DISTRIBUTIONDATA_H 20 21 #include <QList> 22 23 class DistributionData : public QList<int> 24 { 25 public: DistributionData()26 DistributionData() {} 27 28 void init(int nb, int nbCountries); 29 nbToPlace()30 inline int nbToPlace() {return m_nbToPlace;} setNbToPlace(int nb)31 inline void setNbToPlace(int nb) {m_nbToPlace = nb;} 32 33 private: 34 int m_nbToPlace; 35 }; 36 37 #endif // DISTRIBUTIONDATA_H 38