00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef EASYSOK_DUPLICATE_LEVEL_FINDER_INC_GUARD_H
00022 #define EASYSOK_DUPLICATE_LEVEL_FINDER_INC_GUARD_H
00023
00024
00025 #include <map>
00026
00027 #include <qstring.h>
00028
00029 #include "compressed_map.h"
00030
00031
00032 class Collection;
00033
00034
00035
00036
00044 class DuplicateLevelFinder
00045 {
00046
00047 public:
00048
00053 DuplicateLevelFinder();
00054
00055
00060 bool process();
00061
00062
00067 int steps() const;
00068
00069
00074 bool finished() const;
00075
00076
00081 bool foundDuplicates() const;
00082
00083
00088 QString const & text() const;
00089
00090
00091 private:
00092
00097 int m_number_of_collections;
00098
00099
00104 int m_collection_nr;
00105
00106
00111 Collection * m_collection;
00112
00113
00118 int m_number_of_levels;
00119
00120
00125 int m_level_nr;
00126
00127
00132 std::map<CompressedMap, int> maps;
00133
00134
00139 QString m_text;
00140
00141
00146 int m_steps;
00147 };
00148
00149
00150 #endif