bookunzipper.h 537 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef BOOKUNZIPPER_H
  2. #define BOOKUNZIPPER_H
  3. #include <QThread>
  4. #include <QObject>
  5. #include "bookitemlist.h"
  6. class BookUnzipper : public QThread
  7. {
  8. Q_OBJECT
  9. public:
  10. BookUnzipper();
  11. protected:
  12. void run();
  13. signals:
  14. void openedZipPage(int count, int total, QString text);
  15. void extractFinished(BookItemList::ErrorCodes code);
  16. public:
  17. void setArchiveName(QString text);
  18. void cancelRun();
  19. private:
  20. QString m_archiveName;
  21. bool m_cancel;
  22. };
  23. #endif // BOOKUNZIPPER_H