File indexing completed on 2024-05-05 04:04:27

0001 /*
0002    This library is free software; you can redistribute it and/or
0003    modify it under the terms of the GNU Library General Public
0004    License either version 2
0005    of the License, or (at your option) any later version.or later as published by the Free Software Foundation.
0006 
0007    This library is distributed in the hope that it will be useful,
0008    but WITHOUT ANY WARRANTY; without even the implied warranty of
0009    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0010    Library General Public License for more details.
0011 
0012    You should have received a copy of the GNU Library General Public License
0013    along with this library; see the file COPYING.LIB.  If not, write to
0014    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
0015    Boston, MA 02110-1301, USA.
0016 */
0017 
0018 #ifndef DISTRIBUTIONDATA_H
0019 #define DISTRIBUTIONDATA_H
0020 
0021 #include <QList>
0022 
0023 class DistributionData : public QList<int>
0024 {
0025 public:
0026   DistributionData() {}
0027 
0028   void init(int nb, int nbCountries);
0029 
0030   inline int nbToPlace() {return m_nbToPlace;}
0031   inline void setNbToPlace(int nb) {m_nbToPlace = nb;}
0032 
0033 private:
0034   int m_nbToPlace;
0035 };
0036 
0037 #endif // DISTRIBUTIONDATA_H