A modded EditSaber for making beat saber maps.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
908 B

  1. #pragma once
  2. #include "SevenZipLibrary.h"
  3. #include "CompressionFormat.h"
  4. namespace SevenZip
  5. {
  6. class ProgressCallback
  7. {
  8. public:
  9. /*
  10. Called at beginning
  11. */
  12. virtual void OnStartWithTotal(const TString& archivePath, unsigned __int64 totalBytes) = 0;
  13. /*
  14. Called Whenever progress has updated with a bytes complete
  15. */
  16. virtual void OnProgress(const TString& archivePath, unsigned __int64 bytesCompleted) = 0;
  17. /*
  18. Called When progress has reached 100%
  19. */
  20. virtual void OnDone(const TString& archivePath) = 0;
  21. /*
  22. Called When single file progress has reached 100%, returns the filepath that completed
  23. */
  24. virtual void OnFileDone(const TString& archivePath, const TString& filePath, unsigned __int64 bytesCompleted) = 0;
  25. /*
  26. Called to determine if it's time to abort the zip operation. Return true to abort the current operation.
  27. */
  28. virtual bool OnCheckBreak() = 0;
  29. };
  30. }