Open Source Snapmatic picture and Savegame viewer/editor for GTA V https://gta5view.syping.de/

ExportThread.h 1.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /*****************************************************************************
  2. * gta5view Grand Theft Auto V Profile Viewer
  3. * Copyright (C) 2016-2017 Syping
  4. *
  5. * This program is free software: you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation, either version 3 of the License, or
  8. * (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. *****************************************************************************/
  18. #ifndef EXPORTTHREAD_H
  19. #define EXPORTTHREAD_H
  20. #include "SnapmaticWidget.h"
  21. #include "SavegameWidget.h"
  22. #include "ProfileWidget.h"
  23. #include <QThread>
  24. #include <QMap>
  25. class ExportThread : public QThread
  26. {
  27. Q_OBJECT
  28. public:
  29. explicit ExportThread(QMap<ProfileWidget*,QString> profileMap, QString exportDirectory, bool pictureCopyEnabled, bool pictureExportEnabled, int exportCount, QObject *parent = 0);
  30. QStringList getFailedSavegames();
  31. QStringList getFailedCopyPictures();
  32. QStringList getFailedExportPictures();
  33. protected:
  34. void run();
  35. private:
  36. QMap <ProfileWidget*, QString> profileMap;
  37. QString exportDirectory;
  38. bool pictureCopyEnabled;
  39. bool pictureExportEnabled;
  40. int exportCount;
  41. QStringList failedSavegames;
  42. QStringList failedCopyPictures;
  43. QStringList failedExportPictures;
  44. signals:
  45. void exportStringUpdate(QString currentFileName);
  46. void exportProgressUpdate(int currentProgressValue);
  47. void exportFinished();
  48. };
  49. #endif // EXPORTTHREAD_H