#ifndef IMAGESELECTOR_H #define IMAGESELECTOR_H #include #include class MainWindow; class ImageSelector { public: ImageSelector(std::string path, bool recursive); std::string getNextImage() const; private: QStringList listImagesRecursive() const; unsigned int selectRandom(const QStringList& images) const; std::string path; bool recursive; }; #endif // IMAGESELECTOR_H