1 #ifndef WORKER_H 2 #define WORKER_H 3 4 #include <QThread> 5 6 7 class ResourceManager; 8 class Canvas; 9 10 11 class Worker : public QThread { 12 Q_OBJECT 13 14 public: 15 Worker(ResourceManager *res); 16 void run(); 17 18 volatile bool die; 19 20 signals: 21 void page_rendered(int page); 22 23 private: 24 ResourceManager *res; 25 26 // config options 27 bool smooth_downscaling; 28 int thumbnail_size; 29 }; 30 31 #endif 32 33