react-native-update 10.34.2 → 10.34.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.gitmodules +4 -4
- package/harmony/pushy/src/main/cpp/HDiffPatch/CHANGELOG.md +291 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/LICENSE +48 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/Makefile +473 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/README.md +552 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/README_cn.md +547 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/_atosize.h +127 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/_clock_for_demo.h +59 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/_dir_ignore.h +191 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/_hextobytes.h +112 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/bsdiff_wrapper/bsdiff_wrapper.cpp +389 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/bsdiff_wrapper/bsdiff_wrapper.h +73 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/bsdiff_wrapper/bspatch_wrapper.c +266 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/bsdiff_wrapper/bspatch_wrapper.h +58 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/Android.mk +190 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/Application.mk +8 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/build_libs.bat +1 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/build_libs.sh +1 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/build_libs_patchers.bat +1 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/build_libs_patchers.sh +1 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/hpatch.c +49 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/hpatch.h +31 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/hpatch_jni.c +38 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/java/com/github/sisong/HPatch.java +26 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/HDiffPatch.sln +155 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/HDiffZ.vcxproj +364 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/HPatchZ.vcxproj +348 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/bzip2.vcxproj +228 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/hpatchz_test.vcxproj +215 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/libdeflate.vcxproj +256 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/longPathAware.exe.manifest +7 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/lzma.vcxproj +271 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/testHashClash.vcxproj +228 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/unitTest.vcxproj +296 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/zlib.vcxproj +242 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/zstd.vcxproj +287 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/HDiffPatch.xcworkspace/contents.xcworkspacedata +39 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/HDiffPatch.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/HDiffPatch.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings +8 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/bestParams.xcodeproj/project.pbxproj +447 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/hdiffz.xcodeproj/project.pbxproj +703 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/hpatchz.xcodeproj/project.pbxproj +463 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/libdeflate.xcodeproj/project.pbxproj +286 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/lz4.xcodeproj/project.pbxproj +268 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/lzma.xcodeproj/project.pbxproj +585 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/testHashClash.xcodeproj/project.pbxproj +301 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/unitTest.xcodeproj/project.pbxproj +591 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/zlib.xcodeproj/project.pbxproj +308 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/zstd.xcodeproj/project.pbxproj +524 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode_iOS_hpatchz/hpatch_objc/hpatch_objc.h +33 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode_iOS_hpatchz/hpatch_objc/hpatch_objc.m +33 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode_iOS_hpatchz/hpatchz.xcodeproj/project.pbxproj +774 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/checksum_plugin_demo.h +799 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/compress_parallel.cpp +201 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/compress_parallel.h +59 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/compress_plugin_demo.h +1526 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/decompress_plugin_demo.h +1637 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_diff/dir_diff.cpp +846 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_diff/dir_diff.h +79 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_diff/dir_diff_tools.cpp +339 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_diff/dir_diff_tools.h +190 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_diff/dir_manifest.cpp +339 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_diff/dir_manifest.h +87 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_diff/file_for_dirDiff.h +43 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/dir_patch.c +836 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/dir_patch.h +246 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/dir_patch_private.h +47 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/dir_patch_tools.c +112 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/dir_patch_tools.h +69 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/dir_patch_types.h +65 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/new_dir_output.c +346 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/new_dir_output.h +149 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/new_stream.c +176 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/new_stream.h +84 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/ref_stream.c +146 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/ref_stream.h +61 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/res_handle_limit.c +152 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/res_handle_limit.h +76 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/file_for_patch.c +735 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/file_for_patch.h +240 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/hdiffz.cpp +1971 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/hdiffz_import_patch.c +31 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/hdiffz_import_patch.h +42 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/hpatch_dir_listener.h +307 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/hpatchz.c +1786 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/diff.cpp +1746 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/diff.h +201 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/diff_for_hpatch_lite.h +74 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/diff_types.h +187 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/match_block.cpp +478 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/match_block.h +222 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/bytes_rle.cpp +383 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/bytes_rle.h +73 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/compress_detect.cpp +184 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/compress_detect.h +88 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/config.h +89 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/divsufsort.c.inc.h +325 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/divsufsort.cpp +10 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/divsufsort.h +97 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/divsufsort64.cpp +14 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/divsufsort64.h +108 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/divsufsort_private.h +186 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/sssort.c.inc.h +780 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/trsort.c.inc.h +579 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/adler_roll.c +415 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/adler_roll.h +144 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/bloom_filter.h +164 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/covers.h +148 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/digest_matcher.cpp +769 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/digest_matcher.h +97 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/stream_serialize.cpp +954 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/stream_serialize.h +299 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/match_inplace.cpp +168 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/match_inplace.h +44 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/mem_buf.h +72 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/pack_uint.h +130 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/qsort_parallel.h +125 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/suffix_string.cpp +428 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/suffix_string.h +133 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/checksum_plugin.h +52 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/_hcache_old_mt.c +243 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/_hcache_old_mt.h +51 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/_hinput_mt.c +153 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/_hinput_mt.h +54 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/_houtput_mt.c +158 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/_houtput_mt.h +49 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/_hpatch_mt.c +294 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/_hpatch_mt.h +59 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/_patch_private_mt.h +217 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/hpatch_mt.c +349 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/hpatch_mt.h +110 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/patch.c +2643 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/patch.h +253 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/patch_private.h +245 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/patch_types.h +361 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatchLite/hpatch_lite.c +366 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatchLite/hpatch_lite.h +91 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatchLite/hpatch_lite_input_cache.h +31 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatchLite/hpatch_lite_types.h +106 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libParallel/parallel_channel.cpp +170 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libParallel/parallel_channel.h +250 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libParallel/parallel_import.h +67 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libParallel/parallel_import_c.c +497 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libParallel/parallel_import_c.h +106 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sign_diff/_match_in_old_sign.cpp +254 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sign_diff/_match_in_old_sign.h +39 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sign_diff/_sign_diff_type.h +37 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sign_diff/sign_diff.cpp +62 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sign_diff/sign_diff.h +44 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/dict_decompress_plugin.h +156 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/dir_sync_client.cpp +440 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/dir_sync_client.h +88 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/match_in_old.cpp +332 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/match_in_old.h +48 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/match_in_types.h +198 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/sync_client.cpp +697 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/sync_client.h +74 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/sync_client_private.h +262 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/sync_client_type.h +174 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/sync_client_type_private.h +174 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/sync_diff_data.cpp +252 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/sync_diff_data.h +67 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/sync_info_client.cpp +680 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/sync_info_client.h +137 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/dict_compress_plugin.h +83 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/dir_sync_make.cpp +125 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/dir_sync_make.h +56 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/hsynz_plugin.h +55 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/match_in_new.cpp +147 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/match_in_new.h +38 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/sync_info_make.cpp +354 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/sync_info_make.h +76 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/sync_make.cpp +521 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/sync_make.h +69 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/sync_make_hash_clash.h +122 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/sync_make_private.h +66 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_client_wrapper/zsync_client_type.h +36 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_client_wrapper/zsync_client_type_private.h +81 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_client_wrapper/zsync_client_wrapper.cpp +247 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_client_wrapper/zsync_client_wrapper.h +71 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_client_wrapper/zsync_info_client.cpp +351 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_client_wrapper/zsync_info_client.h +42 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_client_wrapper/zsync_match_in_old.cpp +124 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_client_wrapper/zsync_match_in_old.h +38 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_make_wrapper/zsync_info_make.cpp +203 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_make_wrapper/zsync_info_make.h +55 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_make_wrapper/zsync_make_wrapper.cpp +79 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_make_wrapper/zsync_make_wrapper.h +66 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/test/_private_searchBestParams.cpp +301 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/test/hpatchz_test.cpp +291 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/test/testHashClash.cpp +630 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/test/unit_test.cpp +889 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/vcdiff_wrapper/vcdiff_wrapper.cpp +628 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/vcdiff_wrapper/vcdiff_wrapper.h +95 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/vcdiff_wrapper/vcpatch_code_table.h +78 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/vcdiff_wrapper/vcpatch_wrapper.c +950 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/vcdiff_wrapper/vcpatch_wrapper.h +72 -0
- package/harmony/pushy/src/main/cpp/lzma/Asm/arm/7zCrcOpt.asm +100 -0
- package/harmony/pushy/src/main/cpp/lzma/Asm/arm64/7zAsm.S +181 -0
- package/harmony/pushy/src/main/cpp/lzma/Asm/arm64/LzmaDecOpt.S +1487 -0
- package/harmony/pushy/src/main/cpp/lzma/Asm/x86/7zAsm.asm +341 -0
- package/harmony/pushy/src/main/cpp/lzma/Asm/x86/7zCrcOpt.asm +258 -0
- package/harmony/pushy/src/main/cpp/lzma/Asm/x86/AesOpt.asm +742 -0
- package/harmony/pushy/src/main/cpp/lzma/Asm/x86/LzFindOpt.asm +540 -0
- package/harmony/pushy/src/main/cpp/lzma/Asm/x86/LzmaDecOpt.asm +1339 -0
- package/harmony/pushy/src/main/cpp/lzma/Asm/x86/Sha256Opt.asm +275 -0
- package/harmony/pushy/src/main/cpp/lzma/Asm/x86/Sort.asm +860 -0
- package/harmony/pushy/src/main/cpp/lzma/Asm/x86/XzCrc64Opt.asm +523 -0
- package/harmony/pushy/src/main/cpp/lzma/C/7z.h +204 -0
- package/harmony/pushy/src/main/cpp/lzma/C/7zAlloc.c +89 -0
- package/harmony/pushy/src/main/cpp/lzma/C/7zAlloc.h +19 -0
- package/harmony/pushy/src/main/cpp/lzma/C/7zArcIn.c +1786 -0
- package/harmony/pushy/src/main/cpp/lzma/C/7zBuf.c +36 -0
- package/harmony/pushy/src/main/cpp/lzma/C/7zBuf.h +35 -0
- package/harmony/pushy/src/main/cpp/lzma/C/7zBuf2.c +52 -0
- package/harmony/pushy/src/main/cpp/lzma/C/7zCrc.c +464 -0
- package/harmony/pushy/src/main/cpp/lzma/C/7zCrc.h +28 -0
- package/harmony/pushy/src/main/cpp/lzma/C/7zCrcOpt.c +199 -0
- package/harmony/pushy/src/main/cpp/lzma/C/7zDec.c +673 -0
- package/harmony/pushy/src/main/cpp/lzma/C/7zFile.c +443 -0
- package/harmony/pushy/src/main/cpp/lzma/C/7zFile.h +92 -0
- package/harmony/pushy/src/main/cpp/lzma/C/7zStream.c +199 -0
- package/harmony/pushy/src/main/cpp/lzma/C/7zTypes.h +597 -0
- package/harmony/pushy/src/main/cpp/lzma/C/7zVersion.h +27 -0
- package/harmony/pushy/src/main/cpp/lzma/C/7zVersion.rc +55 -0
- package/harmony/pushy/src/main/cpp/lzma/C/7zWindows.h +101 -0
- package/harmony/pushy/src/main/cpp/lzma/C/7zip_gcc_c.mak +360 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Aes.c +429 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Aes.h +60 -0
- package/harmony/pushy/src/main/cpp/lzma/C/AesOpt.c +1002 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Alloc.c +605 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Alloc.h +76 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Asm_c.mak +12 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Bcj2.c +290 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Bcj2.h +332 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Bcj2Enc.c +506 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Bra.c +709 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Bra.h +105 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Bra86.c +187 -0
- package/harmony/pushy/src/main/cpp/lzma/C/BraIA64.c +14 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Compiler.h +246 -0
- package/harmony/pushy/src/main/cpp/lzma/C/CpuArch.c +970 -0
- package/harmony/pushy/src/main/cpp/lzma/C/CpuArch.h +686 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Delta.c +169 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Delta.h +19 -0
- package/harmony/pushy/src/main/cpp/lzma/C/DllSecur.c +99 -0
- package/harmony/pushy/src/main/cpp/lzma/C/DllSecur.h +20 -0
- package/harmony/pushy/src/main/cpp/lzma/C/LzFind.c +1746 -0
- package/harmony/pushy/src/main/cpp/lzma/C/LzFind.h +160 -0
- package/harmony/pushy/src/main/cpp/lzma/C/LzFindMt.c +1422 -0
- package/harmony/pushy/src/main/cpp/lzma/C/LzFindMt.h +114 -0
- package/harmony/pushy/src/main/cpp/lzma/C/LzFindOpt.c +578 -0
- package/harmony/pushy/src/main/cpp/lzma/C/LzHash.h +34 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Lzma2Dec.c +493 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Lzma2Dec.h +121 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Lzma2DecMt.c +1095 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Lzma2DecMt.h +81 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Lzma2Enc.c +807 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Lzma2Enc.h +58 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Lzma86.h +111 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Lzma86Dec.c +53 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Lzma86Enc.c +103 -0
- package/harmony/pushy/src/main/cpp/lzma/C/LzmaDec.c +1363 -0
- package/harmony/pushy/src/main/cpp/lzma/C/LzmaDec.h +237 -0
- package/harmony/pushy/src/main/cpp/lzma/C/LzmaEnc.c +3150 -0
- package/harmony/pushy/src/main/cpp/lzma/C/LzmaEnc.h +85 -0
- package/harmony/pushy/src/main/cpp/lzma/C/LzmaLib.c +42 -0
- package/harmony/pushy/src/main/cpp/lzma/C/LzmaLib.h +138 -0
- package/harmony/pushy/src/main/cpp/lzma/C/MtCoder.c +604 -0
- package/harmony/pushy/src/main/cpp/lzma/C/MtCoder.h +144 -0
- package/harmony/pushy/src/main/cpp/lzma/C/MtDec.c +1124 -0
- package/harmony/pushy/src/main/cpp/lzma/C/MtDec.h +202 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Ppmd.h +169 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Ppmd7.c +1131 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Ppmd7.h +181 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Ppmd7Dec.c +312 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Ppmd7Enc.c +337 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Precomp.h +127 -0
- package/harmony/pushy/src/main/cpp/lzma/C/RotateDefs.h +50 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Sha256.c +492 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Sha256.h +86 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Sha256Opt.c +451 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Sort.c +268 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Sort.h +15 -0
- package/harmony/pushy/src/main/cpp/lzma/C/SwapBytes.c +835 -0
- package/harmony/pushy/src/main/cpp/lzma/C/SwapBytes.h +17 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Threads.c +812 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Threads.h +260 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/7z/7z.dsp +249 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/7z/7z.dsw +29 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/7z/7zMain.c +889 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/7z/Precomp.c +4 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/7z/Precomp.h +13 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/7z/makefile +44 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/7z/makefile.gcc +32 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/Lzma/LzmaUtil.c +313 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/Lzma/LzmaUtil.dsp +192 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/Lzma/LzmaUtil.dsw +29 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/Lzma/Precomp.h +13 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/Lzma/makefile +30 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/Lzma/makefile.gcc +21 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/LzmaLib/LzmaLib.def +4 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/LzmaLib/LzmaLib.dsp +206 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/LzmaLib/LzmaLib.dsw +29 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/LzmaLib/LzmaLibExports.c +15 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/LzmaLib/Precomp.c +4 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/LzmaLib/Precomp.h +13 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/LzmaLib/makefile +59 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/LzmaLib/resource.rc +3 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/SfxSetup/Precomp.c +4 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/SfxSetup/Precomp.h +13 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/SfxSetup/SfxSetup.c +657 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/SfxSetup/SfxSetup.dsp +231 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/SfxSetup/SfxSetup.dsw +29 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/SfxSetup/makefile +44 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/SfxSetup/makefile_con +40 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/SfxSetup/resource.rc +5 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/SfxSetup/setup.ico +0 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Xz.c +92 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Xz.h +542 -0
- package/harmony/pushy/src/main/cpp/lzma/C/XzCrc64.c +140 -0
- package/harmony/pushy/src/main/cpp/lzma/C/XzCrc64.h +26 -0
- package/harmony/pushy/src/main/cpp/lzma/C/XzCrc64Opt.c +261 -0
- package/harmony/pushy/src/main/cpp/lzma/C/XzDec.c +2876 -0
- package/harmony/pushy/src/main/cpp/lzma/C/XzEnc.c +1384 -0
- package/harmony/pushy/src/main/cpp/lzma/C/XzEnc.h +64 -0
- package/harmony/pushy/src/main/cpp/lzma/C/XzIn.c +385 -0
- package/harmony/pushy/src/main/cpp/lzma/C/var_clang.mak +11 -0
- package/harmony/pushy/src/main/cpp/lzma/C/var_clang_arm64.mak +12 -0
- package/harmony/pushy/src/main/cpp/lzma/C/var_clang_x64.mak +11 -0
- package/harmony/pushy/src/main/cpp/lzma/C/var_clang_x86.mak +11 -0
- package/harmony/pushy/src/main/cpp/lzma/C/var_gcc.mak +12 -0
- package/harmony/pushy/src/main/cpp/lzma/C/var_gcc_arm64.mak +12 -0
- package/harmony/pushy/src/main/cpp/lzma/C/var_gcc_x64.mak +10 -0
- package/harmony/pushy/src/main/cpp/lzma/C/var_gcc_x86.mak +10 -0
- package/harmony/pushy/src/main/cpp/lzma/C/var_mac_arm64.mak +11 -0
- package/harmony/pushy/src/main/cpp/lzma/C/var_mac_x64.mak +11 -0
- package/harmony/pushy/src/main/cpp/lzma/C/warn_clang.mak +1 -0
- package/harmony/pushy/src/main/cpp/lzma/C/warn_clang_mac.mak +1 -0
- package/harmony/pushy/src/main/cpp/lzma/C/warn_gcc.mak +51 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/7zip.mak +240 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/7zip_gcc.mak +1370 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Aes.mak +10 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zCompressionMode.cpp +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zCompressionMode.h +92 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zDecode.cpp +599 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zDecode.h +73 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zEncode.cpp +721 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zEncode.h +95 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zExtract.cpp +444 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zFolderInStream.cpp +264 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zFolderInStream.h +101 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zHandler.cpp +795 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zHandler.h +178 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zHandlerOut.cpp +1162 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zHeader.cpp +19 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zHeader.h +156 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zIn.cpp +1764 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zIn.h +454 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zItem.h +207 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zOut.cpp +1026 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zOut.h +346 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zProperties.cpp +182 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zProperties.h +26 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zRegister.cpp +27 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zSpecStream.cpp +31 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zSpecStream.h +49 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zUpdate.cpp +3088 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zUpdate.h +167 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/StdAfx.cpp +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/StdAfx.h +11 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Archive.def +14 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Archive2.def +21 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/ArchiveExports.cpp +158 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/CoderMixer2.cpp +1144 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/CoderMixer2.h +447 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/DummyOutStream.cpp +17 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/DummyOutStream.h +23 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/HandlerOut.cpp +315 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/HandlerOut.h +169 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/InStreamWithCRC.cpp +57 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/InStreamWithCRC.h +64 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/ItemNameUtils.cpp +140 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/ItemNameUtils.h +33 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/MultiStream.cpp +193 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/MultiStream.h +86 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/OutStreamWithCRC.cpp +18 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/OutStreamWithCRC.h +35 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/ParseProperties.cpp +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/ParseProperties.h +6 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/StdAfx.h +11 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/DllExports2.cpp +175 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/IArchive.h +754 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Icons/7z.ico +0 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/LzmaHandler.cpp +608 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/SplitHandler.cpp +353 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/StdAfx.h +11 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/XzHandler.cpp +1452 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/XzHandler.h +11 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Asm.mak +12 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Alone7z/Alone.dsp +2090 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Alone7z/Alone.dsw +29 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Alone7z/StdAfx.cpp +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Alone7z/StdAfx.h +11 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Alone7z/makefile +168 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Alone7z/makefile.gcc +279 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Alone7z/resource.rc +7 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Format7zExtractR/StdAfx.cpp +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Format7zExtractR/StdAfx.h +11 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Format7zExtractR/makefile +98 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Format7zExtractR/resource.rc +5 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Format7zR/StdAfx.cpp +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Format7zR/StdAfx.h +11 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Format7zR/makefile +121 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Format7zR/resource.rc +5 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaCon/LzmaAlone.cpp +817 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaCon/LzmaCon.dsp +540 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaCon/LzmaCon.dsw +29 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaCon/StdAfx.cpp +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaCon/StdAfx.h +11 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaCon/makefile +68 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaCon/makefile.gcc +131 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaCon/resource.rc +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaSpec/LzmaSpec.cpp +715 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/7z.ico +0 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/SFXCon.dsp +1017 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/SFXCon.dsw +29 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/SfxCon.cpp +521 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/StdAfx.cpp +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/StdAfx.h +11 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/makefile +137 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/makefile.gcc +215 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/resource.rc +9 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/ExtractCallbackSfx.cpp +246 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/ExtractCallbackSfx.h +83 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/ExtractEngine.cpp +135 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/ExtractEngine.h +11 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/SFXSetup.dsp +872 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/SFXSetup.dsw +29 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/SfxSetup.cpp +371 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/StdAfx.cpp +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/StdAfx.h +6 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/makefile +121 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/resource.h +6 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/resource.rc +16 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/setup.ico +0 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/7z.ico +0 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/SFXWin.dsp +1074 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/SFXWin.dsw +29 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/SfxWin.cpp +268 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/StdAfx.cpp +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/StdAfx.h +6 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/makefile +159 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/resource.h +1 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/resource.rc +55 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/CWrappers.cpp +358 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/CWrappers.h +182 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/CreateCoder.cpp +548 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/CreateCoder.h +200 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/FilePathAutoRename.cpp +46 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/FilePathAutoRename.h +10 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/FileStreams.cpp +923 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/FileStreams.h +205 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/FilterCoder.cpp +577 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/FilterCoder.h +201 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/InBuffer.cpp +182 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/InBuffer.h +121 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/InOutTempBuffer.cpp +237 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/InOutTempBuffer.h +45 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/LimitedStreams.cpp +393 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/LimitedStreams.h +221 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/LockedStream.cpp +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/LockedStream.h +6 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/MethodId.cpp +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/MethodId.h +10 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/MethodProps.cpp +765 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/MethodProps.h +349 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/MultiOutStream.cpp +855 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/MultiOutStream.h +160 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/OffsetStream.cpp +37 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/OffsetStream.h +22 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/OutBuffer.cpp +111 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/OutBuffer.h +133 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/ProgressUtils.cpp +51 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/ProgressUtils.h +33 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/PropId.cpp +117 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/RegisterArc.h +80 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/RegisterCodec.h +106 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/StdAfx.h +11 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/StreamBinder.cpp +151 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/StreamBinder.h +78 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/StreamObjects.cpp +290 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/StreamObjects.h +146 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/StreamUtils.cpp +101 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/StreamUtils.h +31 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/UniqBlocks.cpp +57 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/UniqBlocks.h +41 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/VirtThread.cpp +47 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/VirtThread.h +24 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/Bcj2Coder.cpp +867 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/Bcj2Coder.h +127 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/Bcj2Register.cpp +24 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/BcjCoder.cpp +24 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/BcjCoder.h +37 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/BcjRegister.cpp +17 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/BranchMisc.cpp +106 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/BranchMisc.h +59 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/BranchRegister.cpp +58 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/ByteSwap.cpp +91 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/CodecExports.cpp +378 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/CopyCoder.cpp +153 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/CopyCoder.h +34 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/CopyRegister.cpp +15 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/DeltaFilter.cpp +126 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/Lzma2Decoder.cpp +267 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/Lzma2Decoder.h +87 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/Lzma2Encoder.cpp +134 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/Lzma2Encoder.h +30 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/Lzma2Register.cpp +22 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/LzmaDecoder.cpp +350 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/LzmaDecoder.h +113 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/LzmaEncoder.cpp +374 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/LzmaEncoder.h +45 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/LzmaRegister.cpp +22 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/PpmdDecoder.cpp +219 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/PpmdDecoder.h +87 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/PpmdEncoder.cpp +193 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/PpmdEncoder.h +49 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/PpmdRegister.cpp +22 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/StdAfx.h +11 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/XzDecoder.cpp +151 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/XzDecoder.h +86 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/XzEncoder.cpp +243 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/XzEncoder.h +35 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crc.mak +8 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crc64.mak +8 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/7zAes.cpp +315 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/7zAes.h +130 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/7zAesRegister.cpp +17 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/MyAes.cpp +277 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/MyAes.h +122 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/MyAesReg.cpp +29 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/RandGen.cpp +241 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/RandGen.h +41 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/StdAfx.h +11 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/GuiCommon.rc +119 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Guid.txt +243 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/ICoder.h +480 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/IDecl.h +76 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/IPassword.h +54 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/IProgress.h +20 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/IStream.h +210 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/LzFindOpt.mak +7 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/LzmaDec.mak +7 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/LzmaDec_gcc.mak +14 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/MyVersion.h +2 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/MyVersionInfo.rc +2 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/PropID.h +178 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Sha256.mak +13 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Sort.mak +6 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/SubBuild.mak +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Client7z/Client7z.cpp +1145 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Client7z/Client7z.dsp +331 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Client7z/Client7z.dsw +29 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Client7z/StdAfx.cpp +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Client7z/StdAfx.h +11 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Client7z/makefile +29 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Client7z/makefile.gcc +72 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Client7z/resource.rc +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveCommandLine.cpp +1799 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveCommandLine.h +170 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveExtractCallback.cpp +3077 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveExtractCallback.h +641 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveName.cpp +176 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveName.h +16 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveOpenCallback.cpp +398 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveOpenCallback.h +182 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/Bench.cpp +5026 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/Bench.h +121 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/DefaultName.cpp +37 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/DefaultName.h +11 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/DirItem.h +407 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/EnumDirItems.cpp +1637 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/EnumDirItems.h +38 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ExitCode.h +27 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/Extract.cpp +575 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/Extract.h +107 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ExtractMode.h +44 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ExtractingFilePath.cpp +296 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ExtractingFilePath.h +31 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/HashCalc.cpp +2273 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/HashCalc.h +322 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/IFileExtractCallback.h +112 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/LoadCodecs.cpp +1337 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/LoadCodecs.h +482 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/OpenArchive.cpp +3702 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/OpenArchive.h +469 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/PropIDUtils.cpp +745 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/PropIDUtils.h +18 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/Property.h +14 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/SetProperties.cpp +88 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/SetProperties.h +10 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/SortUtils.cpp +25 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/SortUtils.h +10 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/StdAfx.h +11 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/TempFiles.cpp +20 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/TempFiles.h +19 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/Update.cpp +1931 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/Update.h +221 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdateAction.cpp +64 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdateAction.h +66 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdateCallback.cpp +1069 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdateCallback.h +197 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdatePair.cpp +302 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdatePair.h +27 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdateProduce.cpp +74 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdateProduce.h +60 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/WorkDir.cpp +84 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/WorkDir.h +30 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ZipRegistry.h +212 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/BenchCon.cpp +41 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/BenchCon.h +14 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/Console.mak +46 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/Console.manifest +16 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/ConsoleClose.cpp +98 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/ConsoleClose.h +39 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/ExtractCallbackConsole.cpp +946 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/ExtractCallbackConsole.h +211 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/HashCon.cpp +426 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/HashCon.h +58 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/List.cpp +1417 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/List.h +42 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/Main.cpp +1635 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/MainAr.cpp +235 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/OpenCallbackConsole.cpp +115 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/OpenCallbackConsole.h +73 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/PercentPrinter.cpp +186 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/PercentPrinter.h +66 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/StdAfx.cpp +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/StdAfx.h +11 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/UpdateCallbackConsole.cpp +998 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/UpdateCallbackConsole.h +148 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/UserInputUtils.cpp +118 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/UserInputUtils.h +27 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/makefile +68 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/makefile.gcc +187 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/resource.rc +7 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Explorer/MyMessages.cpp +43 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Explorer/MyMessages.h +16 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/BrowseDialog.cpp +1132 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/BrowseDialog.h +32 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/BrowseDialogRes.h +9 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ComboDialog.cpp +64 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ComboDialog.h +28 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ComboDialogRes.h +4 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/DialogSize.h +16 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ExtractCallback.cpp +1272 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ExtractCallback.h +347 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/FormatUtils.cpp +28 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/FormatUtils.h +14 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/LangUtils.h +48 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/MemDialog.cpp +218 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/MemDialog.h +48 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/MemDialogRes.h +13 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/MyWindowsNew.h +119 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/OverwriteDialog.cpp +288 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/OverwriteDialog.h +89 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/OverwriteDialog.rc +93 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/OverwriteDialogRes.h +19 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/PasswordDialog.cpp +58 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/PasswordDialog.h +28 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/PasswordDialog.rc +18 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/PasswordDialogRes.h +5 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog.cpp +201 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog.h +171 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog.rc +12 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog2.cpp +1483 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog2.h +355 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog2.rc +40 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog2Res.h +49 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog2a.rc +85 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialogRes.h +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/PropertyName.cpp +23 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/PropertyName.h +10 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/PropertyNameRes.h +104 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/StdAfx.h +67 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/SysIconUtils.cpp +351 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/SysIconUtils.h +65 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/resource.h +199 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/resourceGui.h +25 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/7zG.exe.manifest +23 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/Extract.rc +59 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/ExtractDialog.cpp +421 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/ExtractDialog.h +113 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/ExtractDialog.rc +98 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/ExtractDialogRes.h +24 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/ExtractGUI.cpp +297 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/ExtractGUI.h +39 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/ExtractRes.h +51 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/HashGUI.h +27 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/resource2.h +2 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/cmpl_clang.mak +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/cmpl_clang_arm64.mak +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/cmpl_clang_x64.mak +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/cmpl_clang_x86.mak +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/cmpl_gcc.mak +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/cmpl_gcc_arm64.mak +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/cmpl_gcc_x64.mak +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/cmpl_gcc_x86.mak +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/cmpl_mac_arm64.mak +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/cmpl_mac_x64.mak +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/var_clang.mak +11 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/var_clang_arm64.mak +19 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/var_clang_x64.mak +11 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/var_clang_x86.mak +11 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/var_gcc.mak +12 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/var_gcc_arm64.mak +12 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/var_gcc_x64.mak +11 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/var_gcc_x86.mak +10 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/var_mac_arm64.mak +13 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/var_mac_x64.mak +11 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/warn_clang.mak +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/warn_clang_mac.mak +9 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/warn_gcc.mak +55 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Build.mak +252 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/AutoPtr.h +46 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/CRC.cpp +7 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/C_FileIO.cpp +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/C_FileIO.h +6 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/ComTry.h +21 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/CommandLineParser.cpp +231 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/CommandLineParser.h +63 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/Common.h +28 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/Common0.h +330 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/CrcReg.cpp +77 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/Defs.h +16 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/DynLimBuf.cpp +93 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/DynLimBuf.h +41 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/DynamicBuffer.h +76 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/IntToString.cpp +215 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/IntToString.h +54 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/Lang.h +30 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/ListFileUtils.cpp +150 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/ListFileUtils.h +18 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/LzFindPrepare.cpp +7 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyBuffer.h +297 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyBuffer2.h +185 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyCom.h +693 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyException.h +14 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyGuidDef.h +63 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyInitGuid.h +57 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyLinux.h +75 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyString.cpp +1842 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyString.h +1079 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyTypes.h +38 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyUnknown.h +8 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyVector.cpp +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyVector.h +724 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyWindows.cpp +292 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyWindows.h +325 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/NewHandler.cpp +340 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/NewHandler.h +121 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/Sha256Prepare.cpp +7 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/Sha256Reg.cpp +67 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StdAfx.h +8 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StdInStream.cpp +98 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StdInStream.h +46 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StdOutStream.cpp +248 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StdOutStream.h +87 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StringConvert.cpp +762 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StringConvert.h +110 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StringToInt.cpp +154 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StringToInt.h +38 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/TextConfig.cpp +123 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/TextConfig.h +19 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/UTFConvert.cpp +863 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/UTFConvert.h +384 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/Wildcard.cpp +789 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/Wildcard.h +231 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/XzCrc64Init.cpp +7 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/XzCrc64Reg.cpp +39 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/COM.h +86 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Clipboard.cpp +130 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Clipboard.h +28 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/CommonDialog.cpp +269 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/CommonDialog.h +43 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/ComboBox.cpp +66 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/ComboBox.h +77 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/CommandBar.h +52 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/Dialog.cpp +446 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/Dialog.h +213 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/Edit.h +19 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/ImageList.cpp +10 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/ImageList.h +87 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/ListView.cpp +162 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/ListView.h +156 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/ProgressBar.h +35 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/PropertyPage.cpp +165 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/PropertyPage.h +50 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/ReBar.h +34 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/Static.h +28 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/StatusBar.h +42 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/StdAfx.h +11 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/ToolBar.h +43 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/Trackbar.h +27 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/Window2.cpp +202 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/Window2.h +53 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/DLL.cpp +178 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/DLL.h +103 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Defs.h +17 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/ErrorMsg.cpp +133 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/ErrorMsg.h +16 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileDir.cpp +1362 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileDir.h +172 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileFind.cpp +1449 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileFind.h +347 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileIO.cpp +954 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileIO.h +467 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileLink.cpp +697 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileMapping.cpp +12 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileMapping.h +66 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileName.cpp +911 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileName.h +142 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileSystem.cpp +187 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileSystem.h +31 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Handle.h +39 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/MemoryGlobal.cpp +36 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/MemoryGlobal.h +55 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/MemoryLock.cpp +127 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/MemoryLock.h +40 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/NtCheck.h +58 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/PropVariant.cpp +393 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/PropVariant.h +173 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/PropVariantConv.cpp +274 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/PropVariantConv.h +47 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Registry.cpp +474 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Registry.h +96 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/ResourceString.cpp +103 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/ResourceString.h +17 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/SecurityUtils.cpp +186 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/SecurityUtils.h +150 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Shell.cpp +839 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Shell.h +129 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/StdAfx.h +11 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Synchronization.cpp +87 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Synchronization.h +386 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/System.cpp +421 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/System.h +189 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/SystemInfo.cpp +1251 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/SystemInfo.h +19 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Thread.h +46 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/TimeUtils.cpp +467 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/TimeUtils.h +146 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Window.cpp +179 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Window.h +363 -0
- package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Common/CRC.cs +55 -0
- package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Common/CommandLineParser.cs +274 -0
- package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Common/InBuffer.cs +72 -0
- package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Common/OutBuffer.cs +47 -0
- package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/LZ/IMatchFinder.cs +24 -0
- package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/LZ/LzBinTree.cs +367 -0
- package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/LZ/LzInWindow.cs +132 -0
- package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/LZ/LzOutWindow.cs +110 -0
- package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/LZMA/LzmaBase.cs +76 -0
- package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/LZMA/LzmaDecoder.cs +398 -0
- package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/LZMA/LzmaEncoder.cs +1480 -0
- package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/LzmaAlone/LzmaAlone.cs +364 -0
- package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/LzmaAlone/LzmaAlone.sln +20 -0
- package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/LzmaAlone/LzmaBench.cs +340 -0
- package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/LzmaAlone/Properties/AssemblyInfo.cs +29 -0
- package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/LzmaAlone/Properties/Resources.cs +70 -0
- package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/LzmaAlone/Properties/Settings.cs +42 -0
- package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/RangeCoder/RangeCoder.cs +234 -0
- package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/RangeCoder/RangeCoderBit.cs +117 -0
- package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/RangeCoder/RangeCoderBitTree.cs +157 -0
- package/harmony/pushy/src/main/cpp/lzma/CS/7zip/ICoder.cs +157 -0
- package/harmony/pushy/src/main/cpp/lzma/DOC/7zC.txt +187 -0
- package/harmony/pushy/src/main/cpp/lzma/DOC/7zFormat.txt +469 -0
- package/harmony/pushy/src/main/cpp/lzma/DOC/Methods.txt +177 -0
- package/harmony/pushy/src/main/cpp/lzma/DOC/installer.txt +166 -0
- package/harmony/pushy/src/main/cpp/lzma/DOC/lzma-history.txt +651 -0
- package/harmony/pushy/src/main/cpp/lzma/DOC/lzma-sdk.txt +437 -0
- package/harmony/pushy/src/main/cpp/lzma/DOC/lzma-specification.txt +1176 -0
- package/harmony/pushy/src/main/cpp/lzma/DOC/lzma.txt +345 -0
- package/harmony/pushy/src/main/cpp/lzma/Java/SevenZip/CRC.java +52 -0
- package/harmony/pushy/src/main/cpp/lzma/Java/SevenZip/Compression/LZ/BinTree.java +382 -0
- package/harmony/pushy/src/main/cpp/lzma/Java/SevenZip/Compression/LZ/InWindow.java +131 -0
- package/harmony/pushy/src/main/cpp/lzma/Java/SevenZip/Compression/LZ/OutWindow.java +85 -0
- package/harmony/pushy/src/main/cpp/lzma/Java/SevenZip/Compression/LZMA/Base.java +88 -0
- package/harmony/pushy/src/main/cpp/lzma/Java/SevenZip/Compression/LZMA/Decoder.java +329 -0
- package/harmony/pushy/src/main/cpp/lzma/Java/SevenZip/Compression/LZMA/Encoder.java +1416 -0
- package/harmony/pushy/src/main/cpp/lzma/Java/SevenZip/Compression/RangeCoder/BitTreeDecoder.java +55 -0
- package/harmony/pushy/src/main/cpp/lzma/Java/SevenZip/Compression/RangeCoder/BitTreeEncoder.java +99 -0
- package/harmony/pushy/src/main/cpp/lzma/Java/SevenZip/Compression/RangeCoder/Decoder.java +88 -0
- package/harmony/pushy/src/main/cpp/lzma/Java/SevenZip/Compression/RangeCoder/Encoder.java +151 -0
- package/harmony/pushy/src/main/cpp/lzma/Java/SevenZip/ICodeProgress.java +6 -0
- package/harmony/pushy/src/main/cpp/lzma/Java/SevenZip/LzmaAlone.java +253 -0
- package/harmony/pushy/src/main/cpp/lzma/Java/SevenZip/LzmaBench.java +392 -0
- package/harmony/pushy/src/main/cpp/lzma/bin/7zS2.sfx +0 -0
- package/harmony/pushy/src/main/cpp/lzma/bin/7zS2con.sfx +0 -0
- package/harmony/pushy/src/main/cpp/lzma/bin/7zSD.sfx +0 -0
- package/harmony/pushy/src/main/cpp/lzma/bin/7zdec.exe +0 -0
- package/harmony/pushy/src/main/cpp/lzma/bin/7zr.exe +0 -0
- package/harmony/pushy/src/main/cpp/lzma/bin/installer/config.txt +5 -0
- package/harmony/pushy/src/main/cpp/lzma/bin/installer/cr.bat +5 -0
- package/harmony/pushy/src/main/cpp/lzma/bin/lzma.exe +0 -0
- package/harmony/pushy/src/main/cpp/lzma/bin/x64/7zr.exe +0 -0
- package/package.json +1 -1
|
@@ -0,0 +1,1483 @@
|
|
|
1
|
+
// ProgressDialog2.cpp
|
|
2
|
+
|
|
3
|
+
#include "StdAfx.h"
|
|
4
|
+
|
|
5
|
+
#ifdef Z7_OLD_WIN_SDK
|
|
6
|
+
#include <ShlGuid.h>
|
|
7
|
+
#endif
|
|
8
|
+
|
|
9
|
+
#include "../../../Common/IntToString.h"
|
|
10
|
+
#include "../../../Common/StringConvert.h"
|
|
11
|
+
|
|
12
|
+
#include "../../../Windows/Clipboard.h"
|
|
13
|
+
#include "../../../Windows/ErrorMsg.h"
|
|
14
|
+
|
|
15
|
+
#include "../GUI/ExtractRes.h"
|
|
16
|
+
|
|
17
|
+
#include "LangUtils.h"
|
|
18
|
+
|
|
19
|
+
#include "DialogSize.h"
|
|
20
|
+
#include "ProgressDialog2.h"
|
|
21
|
+
#include "ProgressDialog2Res.h"
|
|
22
|
+
|
|
23
|
+
using namespace NWindows;
|
|
24
|
+
|
|
25
|
+
extern HINSTANCE g_hInstance;
|
|
26
|
+
extern bool g_DisableUserQuestions;
|
|
27
|
+
|
|
28
|
+
static const UINT_PTR kTimerID = 3;
|
|
29
|
+
|
|
30
|
+
static const UINT kCloseMessage = WM_APP + 1;
|
|
31
|
+
// we can't use WM_USER, since WM_USER can be used by standard Windows procedure for Dialog
|
|
32
|
+
|
|
33
|
+
static const UINT kTimerElapse =
|
|
34
|
+
#ifdef UNDER_CE
|
|
35
|
+
500
|
|
36
|
+
#else
|
|
37
|
+
200
|
|
38
|
+
#endif
|
|
39
|
+
;
|
|
40
|
+
|
|
41
|
+
static const UINT kCreateDelay =
|
|
42
|
+
#ifdef UNDER_CE
|
|
43
|
+
2500
|
|
44
|
+
#else
|
|
45
|
+
500
|
|
46
|
+
#endif
|
|
47
|
+
;
|
|
48
|
+
|
|
49
|
+
static const DWORD kPauseSleepTime = 100;
|
|
50
|
+
|
|
51
|
+
#ifdef Z7_LANG
|
|
52
|
+
|
|
53
|
+
static const UInt32 kLangIDs[] =
|
|
54
|
+
{
|
|
55
|
+
IDT_PROGRESS_ELAPSED,
|
|
56
|
+
IDT_PROGRESS_REMAINING,
|
|
57
|
+
IDT_PROGRESS_TOTAL,
|
|
58
|
+
IDT_PROGRESS_SPEED,
|
|
59
|
+
IDT_PROGRESS_PROCESSED,
|
|
60
|
+
IDT_PROGRESS_RATIO,
|
|
61
|
+
IDT_PROGRESS_ERRORS,
|
|
62
|
+
IDB_PROGRESS_BACKGROUND,
|
|
63
|
+
IDB_PAUSE
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
static const UInt32 kLangIDs_Colon[] =
|
|
67
|
+
{
|
|
68
|
+
IDT_PROGRESS_PACKED,
|
|
69
|
+
IDT_PROGRESS_FILES
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
#endif
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
#define UNDEFINED_VAL ((UInt64)(Int64)-1)
|
|
76
|
+
#define INIT_AS_UNDEFINED(v) v = UNDEFINED_VAL;
|
|
77
|
+
#define IS_UNDEFINED_VAL(v) ((v) == UNDEFINED_VAL)
|
|
78
|
+
#define IS_DEFINED_VAL(v) ((v) != UNDEFINED_VAL)
|
|
79
|
+
|
|
80
|
+
CProgressSync::CProgressSync():
|
|
81
|
+
_stopped(false),
|
|
82
|
+
_paused(false),
|
|
83
|
+
_filesProgressMode(false),
|
|
84
|
+
_isDir(false),
|
|
85
|
+
_totalBytes(UNDEFINED_VAL), _completedBytes(0),
|
|
86
|
+
_totalFiles(UNDEFINED_VAL), _curFiles(0),
|
|
87
|
+
_inSize(UNDEFINED_VAL),
|
|
88
|
+
_outSize(UNDEFINED_VAL)
|
|
89
|
+
{}
|
|
90
|
+
|
|
91
|
+
#define CHECK_STOP if (_stopped) return E_ABORT; if (!_paused) return S_OK;
|
|
92
|
+
#define CRITICAL_LOCK NSynchronization::CCriticalSectionLock lock(_cs);
|
|
93
|
+
|
|
94
|
+
bool CProgressSync::Get_Paused()
|
|
95
|
+
{
|
|
96
|
+
CRITICAL_LOCK
|
|
97
|
+
return _paused;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
HRESULT CProgressSync::CheckStop()
|
|
101
|
+
{
|
|
102
|
+
for (;;)
|
|
103
|
+
{
|
|
104
|
+
{
|
|
105
|
+
CRITICAL_LOCK
|
|
106
|
+
CHECK_STOP
|
|
107
|
+
}
|
|
108
|
+
::Sleep(kPauseSleepTime);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
void CProgressSync::Clear_Stop_Status()
|
|
113
|
+
{
|
|
114
|
+
CRITICAL_LOCK
|
|
115
|
+
if (_stopped)
|
|
116
|
+
_stopped = false;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
HRESULT CProgressSync::ScanProgress(UInt64 numFiles, UInt64 totalSize, const FString &fileName, bool isDir)
|
|
120
|
+
{
|
|
121
|
+
{
|
|
122
|
+
CRITICAL_LOCK
|
|
123
|
+
_totalFiles = numFiles;
|
|
124
|
+
_totalBytes = totalSize;
|
|
125
|
+
_filePath = fs2us(fileName);
|
|
126
|
+
_isDir = isDir;
|
|
127
|
+
// _completedBytes = 0;
|
|
128
|
+
CHECK_STOP
|
|
129
|
+
}
|
|
130
|
+
return CheckStop();
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
HRESULT CProgressSync::Set_NumFilesTotal(UInt64 val)
|
|
134
|
+
{
|
|
135
|
+
{
|
|
136
|
+
CRITICAL_LOCK
|
|
137
|
+
_totalFiles = val;
|
|
138
|
+
CHECK_STOP
|
|
139
|
+
}
|
|
140
|
+
return CheckStop();
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
void CProgressSync::Set_NumBytesTotal(UInt64 val)
|
|
144
|
+
{
|
|
145
|
+
CRITICAL_LOCK
|
|
146
|
+
_totalBytes = val;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
void CProgressSync::Set_NumFilesCur(UInt64 val)
|
|
150
|
+
{
|
|
151
|
+
CRITICAL_LOCK
|
|
152
|
+
_curFiles = val;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
HRESULT CProgressSync::Set_NumBytesCur(const UInt64 *val)
|
|
156
|
+
{
|
|
157
|
+
{
|
|
158
|
+
CRITICAL_LOCK
|
|
159
|
+
if (val)
|
|
160
|
+
_completedBytes = *val;
|
|
161
|
+
CHECK_STOP
|
|
162
|
+
}
|
|
163
|
+
return CheckStop();
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
HRESULT CProgressSync::Set_NumBytesCur(UInt64 val)
|
|
167
|
+
{
|
|
168
|
+
{
|
|
169
|
+
CRITICAL_LOCK
|
|
170
|
+
_completedBytes = val;
|
|
171
|
+
CHECK_STOP
|
|
172
|
+
}
|
|
173
|
+
return CheckStop();
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
void CProgressSync::Set_Ratio(const UInt64 *inSize, const UInt64 *outSize)
|
|
177
|
+
{
|
|
178
|
+
CRITICAL_LOCK
|
|
179
|
+
if (inSize)
|
|
180
|
+
_inSize = *inSize;
|
|
181
|
+
if (outSize)
|
|
182
|
+
_outSize = *outSize;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
void CProgressSync::Set_TitleFileName(const UString &fileName)
|
|
186
|
+
{
|
|
187
|
+
CRITICAL_LOCK
|
|
188
|
+
_titleFileName = fileName;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
void CProgressSync::Set_Status(const UString &s)
|
|
192
|
+
{
|
|
193
|
+
CRITICAL_LOCK
|
|
194
|
+
_status = s;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
HRESULT CProgressSync::Set_Status2(const UString &s, const wchar_t *path, bool isDir)
|
|
198
|
+
{
|
|
199
|
+
{
|
|
200
|
+
CRITICAL_LOCK
|
|
201
|
+
_status = s;
|
|
202
|
+
if (path)
|
|
203
|
+
_filePath = path;
|
|
204
|
+
else
|
|
205
|
+
_filePath.Empty();
|
|
206
|
+
_isDir = isDir;
|
|
207
|
+
}
|
|
208
|
+
return CheckStop();
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
void CProgressSync::Set_FilePath(const wchar_t *path, bool isDir)
|
|
212
|
+
{
|
|
213
|
+
CRITICAL_LOCK
|
|
214
|
+
if (path)
|
|
215
|
+
_filePath = path;
|
|
216
|
+
else
|
|
217
|
+
_filePath.Empty();
|
|
218
|
+
_isDir = isDir;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
void CProgressSync::AddError_Message(const wchar_t *message)
|
|
223
|
+
{
|
|
224
|
+
CRITICAL_LOCK
|
|
225
|
+
Messages.Add(message);
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
void CProgressSync::AddError_Message_Name(const wchar_t *message, const wchar_t *name)
|
|
229
|
+
{
|
|
230
|
+
UString s;
|
|
231
|
+
if (name && *name != 0)
|
|
232
|
+
s += name;
|
|
233
|
+
if (message && *message != 0)
|
|
234
|
+
{
|
|
235
|
+
if (!s.IsEmpty())
|
|
236
|
+
s.Add_LF();
|
|
237
|
+
s += message;
|
|
238
|
+
if (!s.IsEmpty() && s.Back() == L'\n')
|
|
239
|
+
s.DeleteBack();
|
|
240
|
+
}
|
|
241
|
+
AddError_Message(s);
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
void CProgressSync::AddError_Code_Name(HRESULT systemError, const wchar_t *name)
|
|
245
|
+
{
|
|
246
|
+
UString s = NError::MyFormatMessage(systemError);
|
|
247
|
+
if (systemError == 0)
|
|
248
|
+
s = "Error";
|
|
249
|
+
AddError_Message_Name(s, name);
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
CProgressDialog::CProgressDialog():
|
|
253
|
+
_isDir(false),
|
|
254
|
+
_wasCreated(false),
|
|
255
|
+
_needClose(false),
|
|
256
|
+
_errorsWereDisplayed(false),
|
|
257
|
+
_waitCloseByCancelButton(false),
|
|
258
|
+
_cancelWasPressed(false),
|
|
259
|
+
_inCancelMessageBox(false),
|
|
260
|
+
_externalCloseMessageWasReceived(false),
|
|
261
|
+
_background(false),
|
|
262
|
+
WaitMode(false),
|
|
263
|
+
MessagesDisplayed(false),
|
|
264
|
+
CompressingMode(true),
|
|
265
|
+
ShowCompressionInfo(true),
|
|
266
|
+
_numPostedMessages(0),
|
|
267
|
+
_numAutoSizeMessages(0),
|
|
268
|
+
_numMessages(0),
|
|
269
|
+
_timer(0),
|
|
270
|
+
IconID(-1),
|
|
271
|
+
MainWindow(NULL)
|
|
272
|
+
{
|
|
273
|
+
|
|
274
|
+
if (_dialogCreatedEvent.Create() != S_OK)
|
|
275
|
+
throw 1334987;
|
|
276
|
+
if (_createDialogEvent.Create() != S_OK)
|
|
277
|
+
throw 1334987;
|
|
278
|
+
// #ifdef __ITaskbarList3_INTERFACE_DEFINED__
|
|
279
|
+
CoCreateInstance(CLSID_TaskbarList, NULL, CLSCTX_INPROC_SERVER, IID_ITaskbarList3, (void**)&_taskbarList);
|
|
280
|
+
if (_taskbarList)
|
|
281
|
+
_taskbarList->HrInit();
|
|
282
|
+
// #endif
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
#ifndef Z7_SFX
|
|
286
|
+
|
|
287
|
+
CProgressDialog::~CProgressDialog()
|
|
288
|
+
{
|
|
289
|
+
// #ifdef __ITaskbarList3_INTERFACE_DEFINED__
|
|
290
|
+
SetTaskbarProgressState(TBPF_NOPROGRESS);
|
|
291
|
+
// #endif
|
|
292
|
+
AddToTitle(L"");
|
|
293
|
+
}
|
|
294
|
+
void CProgressDialog::AddToTitle(LPCWSTR s)
|
|
295
|
+
{
|
|
296
|
+
if (MainWindow)
|
|
297
|
+
{
|
|
298
|
+
CWindow window(MainWindow);
|
|
299
|
+
window.SetText((UString)s + MainTitle);
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
#endif
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
void CProgressDialog::SetTaskbarProgressState()
|
|
307
|
+
{
|
|
308
|
+
// #ifdef __ITaskbarList3_INTERFACE_DEFINED__
|
|
309
|
+
if (_taskbarList && _hwndForTaskbar)
|
|
310
|
+
{
|
|
311
|
+
TBPFLAG tbpFlags;
|
|
312
|
+
if (Sync.Get_Paused())
|
|
313
|
+
tbpFlags = TBPF_PAUSED;
|
|
314
|
+
else
|
|
315
|
+
tbpFlags = _errorsWereDisplayed ? TBPF_ERROR: TBPF_NORMAL;
|
|
316
|
+
SetTaskbarProgressState(tbpFlags);
|
|
317
|
+
}
|
|
318
|
+
// #endif
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
static const unsigned kTitleFileNameSizeLimit = 36;
|
|
322
|
+
static const unsigned kCurrentFileNameSizeLimit = 82;
|
|
323
|
+
|
|
324
|
+
static void ReduceString(UString &s, unsigned size)
|
|
325
|
+
{
|
|
326
|
+
if (s.Len() <= size)
|
|
327
|
+
return;
|
|
328
|
+
s.Delete(size / 2, s.Len() - size);
|
|
329
|
+
s.Insert(size / 2, L" ... ");
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
void CProgressDialog::EnableErrorsControls(bool enable)
|
|
333
|
+
{
|
|
334
|
+
ShowItem_Bool(IDT_PROGRESS_ERRORS, enable);
|
|
335
|
+
ShowItem_Bool(IDT_PROGRESS_ERRORS_VAL, enable);
|
|
336
|
+
ShowItem_Bool(IDL_PROGRESS_MESSAGES, enable);
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
bool CProgressDialog::OnInit()
|
|
340
|
+
{
|
|
341
|
+
_hwndForTaskbar = MainWindow;
|
|
342
|
+
if (!_hwndForTaskbar)
|
|
343
|
+
_hwndForTaskbar = GetParent();
|
|
344
|
+
if (!_hwndForTaskbar)
|
|
345
|
+
_hwndForTaskbar = *this;
|
|
346
|
+
|
|
347
|
+
INIT_AS_UNDEFINED(_progressBar_Range)
|
|
348
|
+
INIT_AS_UNDEFINED(_progressBar_Pos)
|
|
349
|
+
|
|
350
|
+
INIT_AS_UNDEFINED(_prevPercentValue)
|
|
351
|
+
INIT_AS_UNDEFINED(_prevElapsedSec)
|
|
352
|
+
INIT_AS_UNDEFINED(_prevRemainingSec)
|
|
353
|
+
|
|
354
|
+
INIT_AS_UNDEFINED(_prevSpeed)
|
|
355
|
+
_prevSpeed_MoveBits = 0;
|
|
356
|
+
|
|
357
|
+
_prevTime = ::GetTickCount();
|
|
358
|
+
_elapsedTime = 0;
|
|
359
|
+
|
|
360
|
+
INIT_AS_UNDEFINED(_totalBytes_Prev)
|
|
361
|
+
INIT_AS_UNDEFINED(_processed_Prev)
|
|
362
|
+
INIT_AS_UNDEFINED(_packed_Prev)
|
|
363
|
+
INIT_AS_UNDEFINED(_ratio_Prev)
|
|
364
|
+
|
|
365
|
+
_filesStr_Prev.Empty();
|
|
366
|
+
_filesTotStr_Prev.Empty();
|
|
367
|
+
|
|
368
|
+
m_ProgressBar.Attach(GetItem(IDC_PROGRESS1));
|
|
369
|
+
_messageList.Attach(GetItem(IDL_PROGRESS_MESSAGES));
|
|
370
|
+
_messageList.SetUnicodeFormat();
|
|
371
|
+
_messageList.SetExtendedListViewStyle(LVS_EX_FULLROWSELECT);
|
|
372
|
+
|
|
373
|
+
_wasCreated = true;
|
|
374
|
+
_dialogCreatedEvent.Set();
|
|
375
|
+
|
|
376
|
+
#ifdef Z7_LANG
|
|
377
|
+
LangSetDlgItems(*this, kLangIDs, Z7_ARRAY_SIZE(kLangIDs));
|
|
378
|
+
LangSetDlgItems_Colon(*this, kLangIDs_Colon, Z7_ARRAY_SIZE(kLangIDs_Colon));
|
|
379
|
+
#endif
|
|
380
|
+
|
|
381
|
+
CWindow window(GetItem(IDB_PROGRESS_BACKGROUND));
|
|
382
|
+
window.GetText(_background_String);
|
|
383
|
+
_backgrounded_String = _background_String;
|
|
384
|
+
_backgrounded_String.RemoveChar(L'&');
|
|
385
|
+
|
|
386
|
+
window = GetItem(IDB_PAUSE);
|
|
387
|
+
window.GetText(_pause_String);
|
|
388
|
+
|
|
389
|
+
LangString(IDS_PROGRESS_FOREGROUND, _foreground_String);
|
|
390
|
+
LangString(IDS_CONTINUE, _continue_String);
|
|
391
|
+
LangString(IDS_PROGRESS_PAUSED, _paused_String);
|
|
392
|
+
|
|
393
|
+
SetText(_title);
|
|
394
|
+
SetPauseText();
|
|
395
|
+
SetPriorityText();
|
|
396
|
+
|
|
397
|
+
_messageList.InsertColumn(0, L"", 40);
|
|
398
|
+
_messageList.InsertColumn(1, L"", 460);
|
|
399
|
+
_messageList.SetColumnWidthAuto(0);
|
|
400
|
+
_messageList.SetColumnWidthAuto(1);
|
|
401
|
+
|
|
402
|
+
EnableErrorsControls(false);
|
|
403
|
+
|
|
404
|
+
GetItemSizes(IDCANCEL, _buttonSizeX, _buttonSizeY);
|
|
405
|
+
_numReduceSymbols = kCurrentFileNameSizeLimit;
|
|
406
|
+
NormalizeSize(true);
|
|
407
|
+
|
|
408
|
+
if (!ShowCompressionInfo)
|
|
409
|
+
{
|
|
410
|
+
HideItem(IDT_PROGRESS_PACKED);
|
|
411
|
+
HideItem(IDT_PROGRESS_PACKED_VAL);
|
|
412
|
+
HideItem(IDT_PROGRESS_RATIO);
|
|
413
|
+
HideItem(IDT_PROGRESS_RATIO_VAL);
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
if (IconID >= 0)
|
|
417
|
+
{
|
|
418
|
+
HICON icon = LoadIcon(g_hInstance, MAKEINTRESOURCE(IconID));
|
|
419
|
+
// SetIcon(ICON_SMALL, icon);
|
|
420
|
+
SetIcon(ICON_BIG, icon);
|
|
421
|
+
}
|
|
422
|
+
_timer = SetTimer(kTimerID, kTimerElapse);
|
|
423
|
+
#ifdef UNDER_CE
|
|
424
|
+
Foreground();
|
|
425
|
+
#endif
|
|
426
|
+
|
|
427
|
+
CheckNeedClose();
|
|
428
|
+
|
|
429
|
+
SetTaskbarProgressState();
|
|
430
|
+
|
|
431
|
+
return CModalDialog::OnInit();
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
static const UINT kIDs[] =
|
|
435
|
+
{
|
|
436
|
+
IDT_PROGRESS_ELAPSED, IDT_PROGRESS_ELAPSED_VAL,
|
|
437
|
+
IDT_PROGRESS_REMAINING, IDT_PROGRESS_REMAINING_VAL,
|
|
438
|
+
IDT_PROGRESS_FILES, IDT_PROGRESS_FILES_VAL,
|
|
439
|
+
0, IDT_PROGRESS_FILES_TOTAL,
|
|
440
|
+
IDT_PROGRESS_ERRORS, IDT_PROGRESS_ERRORS_VAL,
|
|
441
|
+
|
|
442
|
+
IDT_PROGRESS_TOTAL, IDT_PROGRESS_TOTAL_VAL,
|
|
443
|
+
IDT_PROGRESS_SPEED, IDT_PROGRESS_SPEED_VAL,
|
|
444
|
+
IDT_PROGRESS_PROCESSED, IDT_PROGRESS_PROCESSED_VAL,
|
|
445
|
+
IDT_PROGRESS_PACKED, IDT_PROGRESS_PACKED_VAL,
|
|
446
|
+
IDT_PROGRESS_RATIO, IDT_PROGRESS_RATIO_VAL
|
|
447
|
+
};
|
|
448
|
+
|
|
449
|
+
bool CProgressDialog::OnSize(WPARAM /* wParam */, int xSize, int ySize)
|
|
450
|
+
{
|
|
451
|
+
int sY;
|
|
452
|
+
int sStep;
|
|
453
|
+
int mx, my;
|
|
454
|
+
{
|
|
455
|
+
RECT r;
|
|
456
|
+
GetClientRectOfItem(IDT_PROGRESS_ELAPSED, r);
|
|
457
|
+
mx = r.left;
|
|
458
|
+
my = r.top;
|
|
459
|
+
sY = RECT_SIZE_Y(r);
|
|
460
|
+
GetClientRectOfItem(IDT_PROGRESS_REMAINING, r);
|
|
461
|
+
sStep = r.top - my;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
InvalidateRect(NULL);
|
|
465
|
+
|
|
466
|
+
const int xSizeClient = xSize - mx * 2;
|
|
467
|
+
|
|
468
|
+
{
|
|
469
|
+
unsigned i;
|
|
470
|
+
for (i = 800; i > 40; i = i * 9 / 10)
|
|
471
|
+
if (Units_To_Pixels_X((int)i) <= xSizeClient)
|
|
472
|
+
break;
|
|
473
|
+
_numReduceSymbols = i / 4;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
int yPos = ySize - my - _buttonSizeY;
|
|
477
|
+
|
|
478
|
+
ChangeSubWindowSizeX(GetItem(IDT_PROGRESS_STATUS), xSize - mx * 2);
|
|
479
|
+
ChangeSubWindowSizeX(GetItem(IDT_PROGRESS_FILE_NAME), xSize - mx * 2);
|
|
480
|
+
ChangeSubWindowSizeX(GetItem(IDC_PROGRESS1), xSize - mx * 2);
|
|
481
|
+
|
|
482
|
+
int bSizeX = _buttonSizeX;
|
|
483
|
+
int mx2 = mx;
|
|
484
|
+
for (;; mx2--)
|
|
485
|
+
{
|
|
486
|
+
const int bSize2 = bSizeX * 3 + mx2 * 2;
|
|
487
|
+
if (bSize2 <= xSizeClient)
|
|
488
|
+
break;
|
|
489
|
+
if (mx2 < 5)
|
|
490
|
+
{
|
|
491
|
+
bSizeX = (xSizeClient - mx2 * 2) / 3;
|
|
492
|
+
break;
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
if (bSizeX < 2)
|
|
496
|
+
bSizeX = 2;
|
|
497
|
+
|
|
498
|
+
{
|
|
499
|
+
RECT r;
|
|
500
|
+
GetClientRectOfItem(IDL_PROGRESS_MESSAGES, r);
|
|
501
|
+
const int y = r.top;
|
|
502
|
+
int ySize2 = yPos - my - y;
|
|
503
|
+
const int kMinYSize = _buttonSizeY + _buttonSizeY * 3 / 4;
|
|
504
|
+
int xx = xSize - mx * 2;
|
|
505
|
+
if (ySize2 < kMinYSize)
|
|
506
|
+
{
|
|
507
|
+
ySize2 = kMinYSize;
|
|
508
|
+
if (xx > bSizeX * 2)
|
|
509
|
+
xx -= bSizeX;
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
_messageList.Move(mx, y, xx, ySize2);
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
{
|
|
516
|
+
int xPos = xSize - mx;
|
|
517
|
+
xPos -= bSizeX;
|
|
518
|
+
MoveItem(IDCANCEL, xPos, yPos, bSizeX, _buttonSizeY);
|
|
519
|
+
xPos -= (mx2 + bSizeX);
|
|
520
|
+
MoveItem(IDB_PAUSE, xPos, yPos, bSizeX, _buttonSizeY);
|
|
521
|
+
xPos -= (mx2 + bSizeX);
|
|
522
|
+
MoveItem(IDB_PROGRESS_BACKGROUND, xPos, yPos, bSizeX, _buttonSizeY);
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
int valueSize;
|
|
526
|
+
int labelSize;
|
|
527
|
+
int padSize;
|
|
528
|
+
|
|
529
|
+
labelSize = Units_To_Pixels_X(MY_PROGRESS_LABEL_UNITS_MIN);
|
|
530
|
+
valueSize = Units_To_Pixels_X(MY_PROGRESS_VAL_UNITS);
|
|
531
|
+
padSize = Units_To_Pixels_X(MY_PROGRESS_PAD_UNITS);
|
|
532
|
+
const int requiredSize = (labelSize + valueSize) * 2 + padSize;
|
|
533
|
+
|
|
534
|
+
int gSize;
|
|
535
|
+
{
|
|
536
|
+
if (requiredSize < xSizeClient)
|
|
537
|
+
{
|
|
538
|
+
const int incr = (xSizeClient - requiredSize) / 3;
|
|
539
|
+
labelSize += incr;
|
|
540
|
+
}
|
|
541
|
+
else
|
|
542
|
+
labelSize = (xSizeClient - valueSize * 2 - padSize) / 2;
|
|
543
|
+
if (labelSize < 0)
|
|
544
|
+
labelSize = 0;
|
|
545
|
+
|
|
546
|
+
gSize = labelSize + valueSize;
|
|
547
|
+
padSize = xSizeClient - gSize * 2;
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
labelSize = gSize - valueSize;
|
|
551
|
+
|
|
552
|
+
yPos = my;
|
|
553
|
+
for (unsigned i = 0; i < Z7_ARRAY_SIZE(kIDs); i += 2)
|
|
554
|
+
{
|
|
555
|
+
int x = mx;
|
|
556
|
+
const unsigned kNumColumn1Items = 5 * 2;
|
|
557
|
+
if (i >= kNumColumn1Items)
|
|
558
|
+
{
|
|
559
|
+
if (i == kNumColumn1Items)
|
|
560
|
+
yPos = my;
|
|
561
|
+
x = mx + gSize + padSize;
|
|
562
|
+
}
|
|
563
|
+
if (kIDs[i] != 0)
|
|
564
|
+
MoveItem(kIDs[i], x, yPos, labelSize, sY);
|
|
565
|
+
MoveItem(kIDs[i + 1], x + labelSize, yPos, valueSize, sY);
|
|
566
|
+
yPos += sStep;
|
|
567
|
+
}
|
|
568
|
+
return false;
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
void CProgressDialog::OnCancel() { Sync.Set_Stopped(true); }
|
|
572
|
+
void CProgressDialog::OnOK() { }
|
|
573
|
+
|
|
574
|
+
void CProgressDialog::SetProgressRange(UInt64 range)
|
|
575
|
+
{
|
|
576
|
+
if (range == _progressBar_Range)
|
|
577
|
+
return;
|
|
578
|
+
_progressBar_Range = range;
|
|
579
|
+
INIT_AS_UNDEFINED(_progressBar_Pos)
|
|
580
|
+
_progressConv.Init(range);
|
|
581
|
+
m_ProgressBar.SetRange32(0, _progressConv.Count(range));
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
void CProgressDialog::SetProgressPos(UInt64 pos)
|
|
585
|
+
{
|
|
586
|
+
if (pos >= _progressBar_Range ||
|
|
587
|
+
pos <= _progressBar_Pos ||
|
|
588
|
+
pos - _progressBar_Pos >= (_progressBar_Range >> 10))
|
|
589
|
+
{
|
|
590
|
+
m_ProgressBar.SetPos(_progressConv.Count(pos));
|
|
591
|
+
// #ifdef __ITaskbarList3_INTERFACE_DEFINED__
|
|
592
|
+
if (_taskbarList && _hwndForTaskbar)
|
|
593
|
+
_taskbarList->SetProgressValue(_hwndForTaskbar, pos, _progressBar_Range);
|
|
594
|
+
// #endif
|
|
595
|
+
_progressBar_Pos = pos;
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
#define UINT_TO_STR_2(val) { s[0] = (wchar_t)('0' + (val) / 10); s[1] = (wchar_t)('0' + (val) % 10); s += 2; }
|
|
600
|
+
|
|
601
|
+
void GetTimeString(UInt64 timeValue, wchar_t *s);
|
|
602
|
+
void GetTimeString(UInt64 timeValue, wchar_t *s)
|
|
603
|
+
{
|
|
604
|
+
UInt64 hours = timeValue / 3600;
|
|
605
|
+
UInt32 seconds = (UInt32)(timeValue - hours * 3600);
|
|
606
|
+
UInt32 minutes = seconds / 60;
|
|
607
|
+
seconds %= 60;
|
|
608
|
+
if (hours > 99)
|
|
609
|
+
{
|
|
610
|
+
ConvertUInt64ToString(hours, s);
|
|
611
|
+
for (; *s != 0; s++);
|
|
612
|
+
}
|
|
613
|
+
else
|
|
614
|
+
{
|
|
615
|
+
UInt32 hours32 = (UInt32)hours;
|
|
616
|
+
UINT_TO_STR_2(hours32)
|
|
617
|
+
}
|
|
618
|
+
*s++ = ':'; UINT_TO_STR_2(minutes)
|
|
619
|
+
*s++ = ':'; UINT_TO_STR_2(seconds)
|
|
620
|
+
*s = 0;
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
static void ConvertSizeToString(UInt64 v, wchar_t *s)
|
|
624
|
+
{
|
|
625
|
+
Byte c = 0;
|
|
626
|
+
if (v >= ((UInt64)100000 << 20)) { v >>= 30; c = 'G'; }
|
|
627
|
+
else if (v >= ((UInt64)100000 << 10)) { v >>= 20; c = 'M'; }
|
|
628
|
+
else if (v >= ((UInt64)100000 << 0)) { v >>= 10; c = 'K'; }
|
|
629
|
+
ConvertUInt64ToString(v, s);
|
|
630
|
+
if (c != 0)
|
|
631
|
+
{
|
|
632
|
+
s += MyStringLen(s);
|
|
633
|
+
*s++ = ' ';
|
|
634
|
+
*s++ = c;
|
|
635
|
+
*s++ = 'B';
|
|
636
|
+
*s++ = 0;
|
|
637
|
+
}
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
void CProgressDialog::ShowSize(unsigned id, UInt64 val, UInt64 &prev)
|
|
641
|
+
{
|
|
642
|
+
if (val == prev)
|
|
643
|
+
return;
|
|
644
|
+
prev = val;
|
|
645
|
+
wchar_t s[40];
|
|
646
|
+
s[0] = 0;
|
|
647
|
+
if (IS_DEFINED_VAL(val))
|
|
648
|
+
ConvertSizeToString(val, s);
|
|
649
|
+
SetItemText(id, s);
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
static void GetChangedString(const UString &newStr, UString &prevStr, bool &hasChanged)
|
|
653
|
+
{
|
|
654
|
+
hasChanged = !(prevStr == newStr);
|
|
655
|
+
if (hasChanged)
|
|
656
|
+
prevStr = newStr;
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
static unsigned GetPower32(UInt32 val)
|
|
660
|
+
{
|
|
661
|
+
const unsigned kStart = 32;
|
|
662
|
+
UInt32 mask = ((UInt32)1 << (kStart - 1));
|
|
663
|
+
for (unsigned i = kStart;; i--)
|
|
664
|
+
{
|
|
665
|
+
if (i == 0 || (val & mask) != 0)
|
|
666
|
+
return i;
|
|
667
|
+
mask >>= 1;
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
static unsigned GetPower64(UInt64 val)
|
|
672
|
+
{
|
|
673
|
+
UInt32 high = (UInt32)(val >> 32);
|
|
674
|
+
if (high == 0)
|
|
675
|
+
return GetPower32((UInt32)val);
|
|
676
|
+
return GetPower32(high) + 32;
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
static UInt64 MyMultAndDiv(UInt64 mult1, UInt64 mult2, UInt64 divider)
|
|
680
|
+
{
|
|
681
|
+
unsigned pow1 = GetPower64(mult1);
|
|
682
|
+
unsigned pow2 = GetPower64(mult2);
|
|
683
|
+
while (pow1 + pow2 > 64)
|
|
684
|
+
{
|
|
685
|
+
if (pow1 > pow2) { pow1--; mult1 >>= 1; }
|
|
686
|
+
else { pow2--; mult2 >>= 1; }
|
|
687
|
+
divider >>= 1;
|
|
688
|
+
}
|
|
689
|
+
UInt64 res = mult1 * mult2;
|
|
690
|
+
if (divider != 0)
|
|
691
|
+
res /= divider;
|
|
692
|
+
return res;
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
void CProgressDialog::UpdateStatInfo(bool showAll)
|
|
696
|
+
{
|
|
697
|
+
UInt64 total, completed, totalFiles, completedFiles, inSize, outSize;
|
|
698
|
+
bool filesProgressMode;
|
|
699
|
+
|
|
700
|
+
bool titleFileName_Changed;
|
|
701
|
+
bool curFilePath_Changed;
|
|
702
|
+
bool status_Changed;
|
|
703
|
+
unsigned numErrors;
|
|
704
|
+
{
|
|
705
|
+
NSynchronization::CCriticalSectionLock lock(Sync._cs);
|
|
706
|
+
total = Sync._totalBytes;
|
|
707
|
+
completed = Sync._completedBytes;
|
|
708
|
+
totalFiles = Sync._totalFiles;
|
|
709
|
+
completedFiles = Sync._curFiles;
|
|
710
|
+
inSize = Sync._inSize;
|
|
711
|
+
outSize = Sync._outSize;
|
|
712
|
+
filesProgressMode = Sync._filesProgressMode;
|
|
713
|
+
|
|
714
|
+
GetChangedString(Sync._titleFileName, _titleFileName, titleFileName_Changed);
|
|
715
|
+
GetChangedString(Sync._filePath, _filePath, curFilePath_Changed);
|
|
716
|
+
GetChangedString(Sync._status, _status, status_Changed);
|
|
717
|
+
if (_isDir != Sync._isDir)
|
|
718
|
+
{
|
|
719
|
+
curFilePath_Changed = true;
|
|
720
|
+
_isDir = Sync._isDir;
|
|
721
|
+
}
|
|
722
|
+
numErrors = Sync.Messages.Size();
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
UInt32 curTime = ::GetTickCount();
|
|
726
|
+
|
|
727
|
+
const UInt64 progressTotal = filesProgressMode ? totalFiles : total;
|
|
728
|
+
const UInt64 progressCompleted = filesProgressMode ? completedFiles : completed;
|
|
729
|
+
{
|
|
730
|
+
if (IS_UNDEFINED_VAL(progressTotal))
|
|
731
|
+
{
|
|
732
|
+
// SetPos(0);
|
|
733
|
+
// SetRange(progressCompleted);
|
|
734
|
+
}
|
|
735
|
+
else
|
|
736
|
+
{
|
|
737
|
+
if (_progressBar_Pos != 0 || progressCompleted != 0 ||
|
|
738
|
+
(_progressBar_Range == 0 && progressTotal != 0))
|
|
739
|
+
{
|
|
740
|
+
SetProgressRange(progressTotal);
|
|
741
|
+
SetProgressPos(progressCompleted);
|
|
742
|
+
}
|
|
743
|
+
}
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
ShowSize(IDT_PROGRESS_TOTAL_VAL, total, _totalBytes_Prev);
|
|
747
|
+
|
|
748
|
+
_elapsedTime += (curTime - _prevTime);
|
|
749
|
+
_prevTime = curTime;
|
|
750
|
+
UInt64 elapsedSec = _elapsedTime / 1000;
|
|
751
|
+
bool elapsedChanged = false;
|
|
752
|
+
if (elapsedSec != _prevElapsedSec)
|
|
753
|
+
{
|
|
754
|
+
_prevElapsedSec = elapsedSec;
|
|
755
|
+
elapsedChanged = true;
|
|
756
|
+
wchar_t s[40];
|
|
757
|
+
GetTimeString(elapsedSec, s);
|
|
758
|
+
SetItemText(IDT_PROGRESS_ELAPSED_VAL, s);
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
bool needSetTitle = false;
|
|
762
|
+
if (elapsedChanged || showAll)
|
|
763
|
+
{
|
|
764
|
+
if (numErrors > _numPostedMessages)
|
|
765
|
+
{
|
|
766
|
+
UpdateMessagesDialog();
|
|
767
|
+
wchar_t s[32];
|
|
768
|
+
ConvertUInt64ToString(numErrors, s);
|
|
769
|
+
SetItemText(IDT_PROGRESS_ERRORS_VAL, s);
|
|
770
|
+
if (!_errorsWereDisplayed)
|
|
771
|
+
{
|
|
772
|
+
_errorsWereDisplayed = true;
|
|
773
|
+
EnableErrorsControls(true);
|
|
774
|
+
SetTaskbarProgressState();
|
|
775
|
+
}
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
if (progressCompleted != 0)
|
|
779
|
+
{
|
|
780
|
+
if (IS_UNDEFINED_VAL(progressTotal))
|
|
781
|
+
{
|
|
782
|
+
if (IS_DEFINED_VAL(_prevRemainingSec))
|
|
783
|
+
{
|
|
784
|
+
INIT_AS_UNDEFINED(_prevRemainingSec)
|
|
785
|
+
SetItemText(IDT_PROGRESS_REMAINING_VAL, L"");
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
else
|
|
789
|
+
{
|
|
790
|
+
UInt64 remainingTime = 0;
|
|
791
|
+
if (progressCompleted < progressTotal)
|
|
792
|
+
remainingTime = MyMultAndDiv(_elapsedTime, progressTotal - progressCompleted, progressCompleted);
|
|
793
|
+
UInt64 remainingSec = remainingTime / 1000;
|
|
794
|
+
if (remainingSec != _prevRemainingSec)
|
|
795
|
+
{
|
|
796
|
+
_prevRemainingSec = remainingSec;
|
|
797
|
+
wchar_t s[40];
|
|
798
|
+
GetTimeString(remainingSec, s);
|
|
799
|
+
SetItemText(IDT_PROGRESS_REMAINING_VAL, s);
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
{
|
|
803
|
+
const UInt64 elapsedTime = (_elapsedTime == 0) ? 1 : _elapsedTime;
|
|
804
|
+
// 22.02: progressCompleted can be for number of files
|
|
805
|
+
UInt64 v = (completed * 1000) / elapsedTime;
|
|
806
|
+
Byte c = 0;
|
|
807
|
+
unsigned moveBits = 0;
|
|
808
|
+
if (v >= ((UInt64)10000 << 10)) { moveBits = 20; c = 'M'; }
|
|
809
|
+
else if (v >= ((UInt64)10000 << 0)) { moveBits = 10; c = 'K'; }
|
|
810
|
+
v >>= moveBits;
|
|
811
|
+
if (moveBits != _prevSpeed_MoveBits || v != _prevSpeed)
|
|
812
|
+
{
|
|
813
|
+
_prevSpeed_MoveBits = moveBits;
|
|
814
|
+
_prevSpeed = v;
|
|
815
|
+
wchar_t s[40];
|
|
816
|
+
ConvertUInt64ToString(v, s);
|
|
817
|
+
unsigned pos = MyStringLen(s);
|
|
818
|
+
s[pos++] = ' ';
|
|
819
|
+
if (moveBits != 0)
|
|
820
|
+
s[pos++] = c;
|
|
821
|
+
s[pos++] = 'B';
|
|
822
|
+
s[pos++] = '/';
|
|
823
|
+
s[pos++] = 's';
|
|
824
|
+
s[pos++] = 0;
|
|
825
|
+
SetItemText(IDT_PROGRESS_SPEED_VAL, s);
|
|
826
|
+
}
|
|
827
|
+
}
|
|
828
|
+
}
|
|
829
|
+
|
|
830
|
+
{
|
|
831
|
+
UInt64 percent = 0;
|
|
832
|
+
{
|
|
833
|
+
if (IS_DEFINED_VAL(progressTotal))
|
|
834
|
+
{
|
|
835
|
+
percent = progressCompleted * 100;
|
|
836
|
+
if (progressTotal != 0)
|
|
837
|
+
percent /= progressTotal;
|
|
838
|
+
}
|
|
839
|
+
}
|
|
840
|
+
if (percent != _prevPercentValue)
|
|
841
|
+
{
|
|
842
|
+
_prevPercentValue = percent;
|
|
843
|
+
needSetTitle = true;
|
|
844
|
+
}
|
|
845
|
+
}
|
|
846
|
+
|
|
847
|
+
{
|
|
848
|
+
wchar_t s[64];
|
|
849
|
+
|
|
850
|
+
ConvertUInt64ToString(completedFiles, s);
|
|
851
|
+
if (_filesStr_Prev != s)
|
|
852
|
+
{
|
|
853
|
+
_filesStr_Prev = s;
|
|
854
|
+
SetItemText(IDT_PROGRESS_FILES_VAL, s);
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
s[0] = 0;
|
|
858
|
+
if (IS_DEFINED_VAL(totalFiles))
|
|
859
|
+
{
|
|
860
|
+
MyStringCopy(s, L" / ");
|
|
861
|
+
ConvertUInt64ToString(totalFiles, s + MyStringLen(s));
|
|
862
|
+
}
|
|
863
|
+
if (_filesTotStr_Prev != s)
|
|
864
|
+
{
|
|
865
|
+
_filesTotStr_Prev = s;
|
|
866
|
+
SetItemText(IDT_PROGRESS_FILES_TOTAL, s);
|
|
867
|
+
}
|
|
868
|
+
}
|
|
869
|
+
|
|
870
|
+
const UInt64 packSize = CompressingMode ? outSize : inSize;
|
|
871
|
+
const UInt64 unpackSize = CompressingMode ? inSize : outSize;
|
|
872
|
+
|
|
873
|
+
if (IS_UNDEFINED_VAL(unpackSize) &&
|
|
874
|
+
IS_UNDEFINED_VAL(packSize))
|
|
875
|
+
{
|
|
876
|
+
ShowSize(IDT_PROGRESS_PROCESSED_VAL, completed, _processed_Prev);
|
|
877
|
+
ShowSize(IDT_PROGRESS_PACKED_VAL, UNDEFINED_VAL, _packed_Prev);
|
|
878
|
+
}
|
|
879
|
+
else
|
|
880
|
+
{
|
|
881
|
+
ShowSize(IDT_PROGRESS_PROCESSED_VAL, unpackSize, _processed_Prev);
|
|
882
|
+
ShowSize(IDT_PROGRESS_PACKED_VAL, packSize, _packed_Prev);
|
|
883
|
+
|
|
884
|
+
if (IS_DEFINED_VAL(packSize) &&
|
|
885
|
+
IS_DEFINED_VAL(unpackSize) &&
|
|
886
|
+
unpackSize != 0)
|
|
887
|
+
{
|
|
888
|
+
wchar_t s[32];
|
|
889
|
+
UInt64 ratio = packSize * 100 / unpackSize;
|
|
890
|
+
if (_ratio_Prev != ratio)
|
|
891
|
+
{
|
|
892
|
+
_ratio_Prev = ratio;
|
|
893
|
+
ConvertUInt64ToString(ratio, s);
|
|
894
|
+
MyStringCat(s, L"%");
|
|
895
|
+
SetItemText(IDT_PROGRESS_RATIO_VAL, s);
|
|
896
|
+
}
|
|
897
|
+
}
|
|
898
|
+
}
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
if (needSetTitle || titleFileName_Changed)
|
|
902
|
+
SetTitleText();
|
|
903
|
+
|
|
904
|
+
if (status_Changed)
|
|
905
|
+
{
|
|
906
|
+
UString s = _status;
|
|
907
|
+
ReduceString(s, _numReduceSymbols);
|
|
908
|
+
SetItemText(IDT_PROGRESS_STATUS, s);
|
|
909
|
+
}
|
|
910
|
+
|
|
911
|
+
if (curFilePath_Changed)
|
|
912
|
+
{
|
|
913
|
+
UString s1, s2;
|
|
914
|
+
if (_isDir)
|
|
915
|
+
s1 = _filePath;
|
|
916
|
+
else
|
|
917
|
+
{
|
|
918
|
+
int slashPos = _filePath.ReverseFind_PathSepar();
|
|
919
|
+
if (slashPos >= 0)
|
|
920
|
+
{
|
|
921
|
+
s1.SetFrom(_filePath, (unsigned)(slashPos + 1));
|
|
922
|
+
s2 = _filePath.Ptr((unsigned)(slashPos + 1));
|
|
923
|
+
}
|
|
924
|
+
else
|
|
925
|
+
s2 = _filePath;
|
|
926
|
+
}
|
|
927
|
+
ReduceString(s1, _numReduceSymbols);
|
|
928
|
+
ReduceString(s2, _numReduceSymbols);
|
|
929
|
+
s1.Add_LF();
|
|
930
|
+
s1 += s2;
|
|
931
|
+
SetItemText(IDT_PROGRESS_FILE_NAME, s1);
|
|
932
|
+
}
|
|
933
|
+
}
|
|
934
|
+
|
|
935
|
+
bool CProgressDialog::OnTimer(WPARAM /* timerID */, LPARAM /* callback */)
|
|
936
|
+
{
|
|
937
|
+
if (Sync.Get_Paused())
|
|
938
|
+
return true;
|
|
939
|
+
CheckNeedClose();
|
|
940
|
+
UpdateStatInfo(false);
|
|
941
|
+
return true;
|
|
942
|
+
}
|
|
943
|
+
|
|
944
|
+
struct CWaitCursor
|
|
945
|
+
{
|
|
946
|
+
HCURSOR _waitCursor;
|
|
947
|
+
HCURSOR _oldCursor;
|
|
948
|
+
CWaitCursor()
|
|
949
|
+
{
|
|
950
|
+
_waitCursor = LoadCursor(NULL, IDC_WAIT);
|
|
951
|
+
if (_waitCursor != NULL)
|
|
952
|
+
_oldCursor = SetCursor(_waitCursor);
|
|
953
|
+
}
|
|
954
|
+
~CWaitCursor()
|
|
955
|
+
{
|
|
956
|
+
if (_waitCursor != NULL)
|
|
957
|
+
SetCursor(_oldCursor);
|
|
958
|
+
}
|
|
959
|
+
};
|
|
960
|
+
|
|
961
|
+
INT_PTR CProgressDialog::Create(const UString &title, NWindows::CThread &thread, HWND wndParent)
|
|
962
|
+
{
|
|
963
|
+
INT_PTR res = 0;
|
|
964
|
+
try
|
|
965
|
+
{
|
|
966
|
+
if (WaitMode)
|
|
967
|
+
{
|
|
968
|
+
CWaitCursor waitCursor;
|
|
969
|
+
HANDLE h[] = { thread, _createDialogEvent };
|
|
970
|
+
|
|
971
|
+
const DWORD res2 = WaitForMultipleObjects(Z7_ARRAY_SIZE(h), h, FALSE, kCreateDelay);
|
|
972
|
+
if (res2 == WAIT_OBJECT_0 && !Sync.ThereIsMessage())
|
|
973
|
+
return 0;
|
|
974
|
+
}
|
|
975
|
+
_title = title;
|
|
976
|
+
BIG_DIALOG_SIZE(360, 192);
|
|
977
|
+
res = CModalDialog::Create(SIZED_DIALOG(IDD_PROGRESS), wndParent);
|
|
978
|
+
}
|
|
979
|
+
catch(...)
|
|
980
|
+
{
|
|
981
|
+
_wasCreated = true;
|
|
982
|
+
_dialogCreatedEvent.Set();
|
|
983
|
+
}
|
|
984
|
+
thread.Wait_Close();
|
|
985
|
+
if (!MessagesDisplayed)
|
|
986
|
+
if (!g_DisableUserQuestions)
|
|
987
|
+
MessageBoxW(wndParent, L"Progress Error", L"7-Zip", MB_ICONERROR);
|
|
988
|
+
return res;
|
|
989
|
+
}
|
|
990
|
+
|
|
991
|
+
bool CProgressDialog::OnExternalCloseMessage()
|
|
992
|
+
{
|
|
993
|
+
// it doesn't work if there is MessageBox.
|
|
994
|
+
// #ifdef __ITaskbarList3_INTERFACE_DEFINED__
|
|
995
|
+
SetTaskbarProgressState(TBPF_NOPROGRESS);
|
|
996
|
+
// #endif
|
|
997
|
+
// AddToTitle(L"Finished ");
|
|
998
|
+
// SetText(L"Finished2 ");
|
|
999
|
+
|
|
1000
|
+
UpdateStatInfo(true);
|
|
1001
|
+
|
|
1002
|
+
SetItemText(IDCANCEL, LangString(IDS_CLOSE));
|
|
1003
|
+
::SendMessage(GetItem(IDCANCEL), BM_SETSTYLE, BS_DEFPUSHBUTTON, MAKELPARAM(TRUE, 0));
|
|
1004
|
+
HideItem(IDB_PROGRESS_BACKGROUND);
|
|
1005
|
+
HideItem(IDB_PAUSE);
|
|
1006
|
+
|
|
1007
|
+
ProcessWasFinished_GuiVirt();
|
|
1008
|
+
|
|
1009
|
+
bool thereAreMessages;
|
|
1010
|
+
CProgressFinalMessage fm;
|
|
1011
|
+
{
|
|
1012
|
+
NSynchronization::CCriticalSectionLock lock(Sync._cs);
|
|
1013
|
+
thereAreMessages = !Sync.Messages.IsEmpty();
|
|
1014
|
+
fm = Sync.FinalMessage;
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1017
|
+
if (!fm.ErrorMessage.Message.IsEmpty())
|
|
1018
|
+
{
|
|
1019
|
+
MessagesDisplayed = true;
|
|
1020
|
+
if (fm.ErrorMessage.Title.IsEmpty())
|
|
1021
|
+
fm.ErrorMessage.Title = "7-Zip";
|
|
1022
|
+
if (!g_DisableUserQuestions)
|
|
1023
|
+
MessageBoxW(*this, fm.ErrorMessage.Message, fm.ErrorMessage.Title, MB_ICONERROR);
|
|
1024
|
+
}
|
|
1025
|
+
else if (!thereAreMessages)
|
|
1026
|
+
{
|
|
1027
|
+
MessagesDisplayed = true;
|
|
1028
|
+
|
|
1029
|
+
if (!fm.OkMessage.Message.IsEmpty())
|
|
1030
|
+
{
|
|
1031
|
+
if (fm.OkMessage.Title.IsEmpty())
|
|
1032
|
+
fm.OkMessage.Title = "7-Zip";
|
|
1033
|
+
if (!g_DisableUserQuestions)
|
|
1034
|
+
MessageBoxW(*this, fm.OkMessage.Message, fm.OkMessage.Title, MB_OK);
|
|
1035
|
+
}
|
|
1036
|
+
}
|
|
1037
|
+
|
|
1038
|
+
if (!g_DisableUserQuestions)
|
|
1039
|
+
if (thereAreMessages && !_cancelWasPressed)
|
|
1040
|
+
{
|
|
1041
|
+
_waitCloseByCancelButton = true;
|
|
1042
|
+
UpdateMessagesDialog();
|
|
1043
|
+
return true;
|
|
1044
|
+
}
|
|
1045
|
+
|
|
1046
|
+
End(0);
|
|
1047
|
+
return true;
|
|
1048
|
+
}
|
|
1049
|
+
|
|
1050
|
+
bool CProgressDialog::OnMessage(UINT message, WPARAM wParam, LPARAM lParam)
|
|
1051
|
+
{
|
|
1052
|
+
switch (message)
|
|
1053
|
+
{
|
|
1054
|
+
case kCloseMessage:
|
|
1055
|
+
{
|
|
1056
|
+
if (_timer)
|
|
1057
|
+
{
|
|
1058
|
+
/* 21.03 : KillTimer(kTimerID) instead of KillTimer(_timer).
|
|
1059
|
+
But (_timer == kTimerID) in Win10. So it worked too */
|
|
1060
|
+
KillTimer(kTimerID);
|
|
1061
|
+
_timer = 0;
|
|
1062
|
+
}
|
|
1063
|
+
if (_inCancelMessageBox)
|
|
1064
|
+
{
|
|
1065
|
+
/* if user is in MessageBox(), we will call OnExternalCloseMessage()
|
|
1066
|
+
later, when MessageBox() will be closed */
|
|
1067
|
+
_externalCloseMessageWasReceived = true;
|
|
1068
|
+
break;
|
|
1069
|
+
}
|
|
1070
|
+
return OnExternalCloseMessage();
|
|
1071
|
+
}
|
|
1072
|
+
/*
|
|
1073
|
+
case WM_SETTEXT:
|
|
1074
|
+
{
|
|
1075
|
+
if (_timer == 0)
|
|
1076
|
+
return true;
|
|
1077
|
+
break;
|
|
1078
|
+
}
|
|
1079
|
+
*/
|
|
1080
|
+
}
|
|
1081
|
+
return CModalDialog::OnMessage(message, wParam, lParam);
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1084
|
+
void CProgressDialog::SetTitleText()
|
|
1085
|
+
{
|
|
1086
|
+
UString s;
|
|
1087
|
+
if (Sync.Get_Paused())
|
|
1088
|
+
{
|
|
1089
|
+
s += _paused_String;
|
|
1090
|
+
s.Add_Space();
|
|
1091
|
+
}
|
|
1092
|
+
if (IS_DEFINED_VAL(_prevPercentValue))
|
|
1093
|
+
{
|
|
1094
|
+
s.Add_UInt64(_prevPercentValue);
|
|
1095
|
+
s.Add_Char('%');
|
|
1096
|
+
}
|
|
1097
|
+
if (_background)
|
|
1098
|
+
{
|
|
1099
|
+
s.Add_Space();
|
|
1100
|
+
s += _backgrounded_String;
|
|
1101
|
+
}
|
|
1102
|
+
|
|
1103
|
+
s.Add_Space();
|
|
1104
|
+
#ifndef Z7_SFX
|
|
1105
|
+
{
|
|
1106
|
+
unsigned len = s.Len();
|
|
1107
|
+
s += MainAddTitle;
|
|
1108
|
+
AddToTitle(s);
|
|
1109
|
+
s.DeleteFrom(len);
|
|
1110
|
+
}
|
|
1111
|
+
#endif
|
|
1112
|
+
|
|
1113
|
+
s += _title;
|
|
1114
|
+
if (!_titleFileName.IsEmpty())
|
|
1115
|
+
{
|
|
1116
|
+
UString fileName = _titleFileName;
|
|
1117
|
+
ReduceString(fileName, kTitleFileNameSizeLimit);
|
|
1118
|
+
s.Add_Space();
|
|
1119
|
+
s += fileName;
|
|
1120
|
+
}
|
|
1121
|
+
SetText(s);
|
|
1122
|
+
}
|
|
1123
|
+
|
|
1124
|
+
void CProgressDialog::SetPauseText()
|
|
1125
|
+
{
|
|
1126
|
+
SetItemText(IDB_PAUSE, Sync.Get_Paused() ? _continue_String : _pause_String);
|
|
1127
|
+
SetTitleText();
|
|
1128
|
+
}
|
|
1129
|
+
|
|
1130
|
+
void CProgressDialog::OnPauseButton()
|
|
1131
|
+
{
|
|
1132
|
+
bool paused = !Sync.Get_Paused();
|
|
1133
|
+
Sync.Set_Paused(paused);
|
|
1134
|
+
UInt32 curTime = ::GetTickCount();
|
|
1135
|
+
if (paused)
|
|
1136
|
+
_elapsedTime += (curTime - _prevTime);
|
|
1137
|
+
SetTaskbarProgressState();
|
|
1138
|
+
_prevTime = curTime;
|
|
1139
|
+
SetPauseText();
|
|
1140
|
+
}
|
|
1141
|
+
|
|
1142
|
+
void CProgressDialog::SetPriorityText()
|
|
1143
|
+
{
|
|
1144
|
+
SetItemText(IDB_PROGRESS_BACKGROUND, _background ?
|
|
1145
|
+
_foreground_String :
|
|
1146
|
+
_background_String);
|
|
1147
|
+
SetTitleText();
|
|
1148
|
+
}
|
|
1149
|
+
|
|
1150
|
+
void CProgressDialog::OnPriorityButton()
|
|
1151
|
+
{
|
|
1152
|
+
_background = !_background;
|
|
1153
|
+
#ifndef UNDER_CE
|
|
1154
|
+
SetPriorityClass(GetCurrentProcess(), _background ? IDLE_PRIORITY_CLASS : NORMAL_PRIORITY_CLASS);
|
|
1155
|
+
#endif
|
|
1156
|
+
SetPriorityText();
|
|
1157
|
+
}
|
|
1158
|
+
|
|
1159
|
+
void CProgressDialog::AddMessageDirect(LPCWSTR message, bool needNumber)
|
|
1160
|
+
{
|
|
1161
|
+
wchar_t sz[16];
|
|
1162
|
+
sz[0] = 0;
|
|
1163
|
+
if (needNumber)
|
|
1164
|
+
ConvertUInt32ToString(_numMessages + 1, sz);
|
|
1165
|
+
const unsigned itemIndex = _messageStrings.Size(); // _messageList.GetItemCount();
|
|
1166
|
+
if (_messageList.InsertItem(itemIndex, sz) == (int)itemIndex)
|
|
1167
|
+
{
|
|
1168
|
+
_messageList.SetSubItem(itemIndex, 1, message);
|
|
1169
|
+
_messageStrings.Add(message);
|
|
1170
|
+
}
|
|
1171
|
+
}
|
|
1172
|
+
|
|
1173
|
+
void CProgressDialog::AddMessage(LPCWSTR message)
|
|
1174
|
+
{
|
|
1175
|
+
UString s = message;
|
|
1176
|
+
bool needNumber = true;
|
|
1177
|
+
while (!s.IsEmpty())
|
|
1178
|
+
{
|
|
1179
|
+
const int pos = s.Find(L'\n');
|
|
1180
|
+
if (pos < 0)
|
|
1181
|
+
break;
|
|
1182
|
+
AddMessageDirect(s.Left((unsigned)pos), needNumber);
|
|
1183
|
+
needNumber = false;
|
|
1184
|
+
s.DeleteFrontal((unsigned)pos + 1);
|
|
1185
|
+
}
|
|
1186
|
+
AddMessageDirect(s, needNumber);
|
|
1187
|
+
_numMessages++;
|
|
1188
|
+
}
|
|
1189
|
+
|
|
1190
|
+
static unsigned GetNumDigits(unsigned val)
|
|
1191
|
+
{
|
|
1192
|
+
unsigned i = 0;
|
|
1193
|
+
for (;;)
|
|
1194
|
+
{
|
|
1195
|
+
i++;
|
|
1196
|
+
val /= 10;
|
|
1197
|
+
if (val == 0)
|
|
1198
|
+
return i;
|
|
1199
|
+
}
|
|
1200
|
+
}
|
|
1201
|
+
|
|
1202
|
+
void CProgressDialog::UpdateMessagesDialog()
|
|
1203
|
+
{
|
|
1204
|
+
UStringVector messages;
|
|
1205
|
+
{
|
|
1206
|
+
NSynchronization::CCriticalSectionLock lock(Sync._cs);
|
|
1207
|
+
const unsigned num = Sync.Messages.Size();
|
|
1208
|
+
if (num > _numPostedMessages)
|
|
1209
|
+
{
|
|
1210
|
+
messages.ClearAndReserve(num - _numPostedMessages);
|
|
1211
|
+
for (unsigned i = _numPostedMessages; i < num; i++)
|
|
1212
|
+
messages.AddInReserved(Sync.Messages[i]);
|
|
1213
|
+
_numPostedMessages = num;
|
|
1214
|
+
}
|
|
1215
|
+
}
|
|
1216
|
+
if (!messages.IsEmpty())
|
|
1217
|
+
{
|
|
1218
|
+
FOR_VECTOR (i, messages)
|
|
1219
|
+
AddMessage(messages[i]);
|
|
1220
|
+
// SetColumnWidthAuto() can be slow for big number of files.
|
|
1221
|
+
if (_numPostedMessages < 1000000 || _numAutoSizeMessages < 100)
|
|
1222
|
+
if (_numAutoSizeMessages < 100 ||
|
|
1223
|
+
GetNumDigits(_numPostedMessages) >
|
|
1224
|
+
GetNumDigits(_numAutoSizeMessages))
|
|
1225
|
+
{
|
|
1226
|
+
_messageList.SetColumnWidthAuto(0);
|
|
1227
|
+
_messageList.SetColumnWidthAuto(1);
|
|
1228
|
+
_numAutoSizeMessages = _numPostedMessages;
|
|
1229
|
+
}
|
|
1230
|
+
}
|
|
1231
|
+
}
|
|
1232
|
+
|
|
1233
|
+
|
|
1234
|
+
bool CProgressDialog::OnButtonClicked(unsigned buttonID, HWND buttonHWND)
|
|
1235
|
+
{
|
|
1236
|
+
switch (buttonID)
|
|
1237
|
+
{
|
|
1238
|
+
// case IDOK: // if IDCANCEL is not DEFPUSHBUTTON
|
|
1239
|
+
case IDCANCEL:
|
|
1240
|
+
{
|
|
1241
|
+
if (_waitCloseByCancelButton)
|
|
1242
|
+
{
|
|
1243
|
+
MessagesDisplayed = true;
|
|
1244
|
+
End(IDCLOSE);
|
|
1245
|
+
break;
|
|
1246
|
+
}
|
|
1247
|
+
|
|
1248
|
+
if (_cancelWasPressed)
|
|
1249
|
+
return true;
|
|
1250
|
+
|
|
1251
|
+
const bool paused = Sync.Get_Paused();
|
|
1252
|
+
|
|
1253
|
+
if (!paused)
|
|
1254
|
+
{
|
|
1255
|
+
OnPauseButton();
|
|
1256
|
+
}
|
|
1257
|
+
|
|
1258
|
+
_inCancelMessageBox = true;
|
|
1259
|
+
const int res = ::MessageBoxW(*this, LangString(IDS_PROGRESS_ASK_CANCEL), _title, MB_YESNOCANCEL);
|
|
1260
|
+
_inCancelMessageBox = false;
|
|
1261
|
+
if (res == IDYES)
|
|
1262
|
+
_cancelWasPressed = true;
|
|
1263
|
+
|
|
1264
|
+
if (!paused)
|
|
1265
|
+
{
|
|
1266
|
+
OnPauseButton();
|
|
1267
|
+
}
|
|
1268
|
+
|
|
1269
|
+
if (_externalCloseMessageWasReceived)
|
|
1270
|
+
{
|
|
1271
|
+
/* we have received kCloseMessage while we were in MessageBoxW().
|
|
1272
|
+
so we call OnExternalCloseMessage() here.
|
|
1273
|
+
it can show MessageBox and it can close dialog */
|
|
1274
|
+
OnExternalCloseMessage();
|
|
1275
|
+
return true;
|
|
1276
|
+
}
|
|
1277
|
+
|
|
1278
|
+
if (!_cancelWasPressed)
|
|
1279
|
+
return true;
|
|
1280
|
+
|
|
1281
|
+
MessagesDisplayed = true;
|
|
1282
|
+
// we will call Sync.Set_Stopped(true) in OnButtonClicked() : OnCancel()
|
|
1283
|
+
break;
|
|
1284
|
+
}
|
|
1285
|
+
|
|
1286
|
+
case IDB_PAUSE:
|
|
1287
|
+
OnPauseButton();
|
|
1288
|
+
return true;
|
|
1289
|
+
case IDB_PROGRESS_BACKGROUND:
|
|
1290
|
+
OnPriorityButton();
|
|
1291
|
+
return true;
|
|
1292
|
+
}
|
|
1293
|
+
return CModalDialog::OnButtonClicked(buttonID, buttonHWND);
|
|
1294
|
+
}
|
|
1295
|
+
|
|
1296
|
+
void CProgressDialog::CheckNeedClose()
|
|
1297
|
+
{
|
|
1298
|
+
if (_needClose)
|
|
1299
|
+
{
|
|
1300
|
+
PostMsg(kCloseMessage);
|
|
1301
|
+
_needClose = false;
|
|
1302
|
+
}
|
|
1303
|
+
}
|
|
1304
|
+
|
|
1305
|
+
void CProgressDialog::ProcessWasFinished()
|
|
1306
|
+
{
|
|
1307
|
+
// Set Window title here.
|
|
1308
|
+
if (!WaitMode)
|
|
1309
|
+
WaitCreating();
|
|
1310
|
+
|
|
1311
|
+
if (_wasCreated)
|
|
1312
|
+
PostMsg(kCloseMessage);
|
|
1313
|
+
else
|
|
1314
|
+
_needClose = true;
|
|
1315
|
+
}
|
|
1316
|
+
|
|
1317
|
+
|
|
1318
|
+
bool CProgressDialog::OnNotify(UINT /* controlID */, LPNMHDR header)
|
|
1319
|
+
{
|
|
1320
|
+
if (header->hwndFrom != _messageList)
|
|
1321
|
+
return false;
|
|
1322
|
+
switch (header->code)
|
|
1323
|
+
{
|
|
1324
|
+
case LVN_KEYDOWN:
|
|
1325
|
+
{
|
|
1326
|
+
LPNMLVKEYDOWN keyDownInfo = LPNMLVKEYDOWN(header);
|
|
1327
|
+
switch (keyDownInfo->wVKey)
|
|
1328
|
+
{
|
|
1329
|
+
case 'A':
|
|
1330
|
+
{
|
|
1331
|
+
if (IsKeyDown(VK_CONTROL))
|
|
1332
|
+
{
|
|
1333
|
+
_messageList.SelectAll();
|
|
1334
|
+
return true;
|
|
1335
|
+
}
|
|
1336
|
+
break;
|
|
1337
|
+
}
|
|
1338
|
+
case VK_INSERT:
|
|
1339
|
+
case 'C':
|
|
1340
|
+
{
|
|
1341
|
+
if (IsKeyDown(VK_CONTROL))
|
|
1342
|
+
{
|
|
1343
|
+
CopyToClipboard();
|
|
1344
|
+
return true;
|
|
1345
|
+
}
|
|
1346
|
+
break;
|
|
1347
|
+
}
|
|
1348
|
+
}
|
|
1349
|
+
}
|
|
1350
|
+
}
|
|
1351
|
+
return false;
|
|
1352
|
+
}
|
|
1353
|
+
|
|
1354
|
+
|
|
1355
|
+
static void ListView_GetSelected(NControl::CListView &listView, CUIntVector &vector)
|
|
1356
|
+
{
|
|
1357
|
+
vector.Clear();
|
|
1358
|
+
int index = -1;
|
|
1359
|
+
for (;;)
|
|
1360
|
+
{
|
|
1361
|
+
index = listView.GetNextSelectedItem(index);
|
|
1362
|
+
if (index < 0)
|
|
1363
|
+
break;
|
|
1364
|
+
vector.Add((unsigned)index);
|
|
1365
|
+
}
|
|
1366
|
+
}
|
|
1367
|
+
|
|
1368
|
+
|
|
1369
|
+
void CProgressDialog::CopyToClipboard()
|
|
1370
|
+
{
|
|
1371
|
+
CUIntVector indexes;
|
|
1372
|
+
ListView_GetSelected(_messageList, indexes);
|
|
1373
|
+
UString s;
|
|
1374
|
+
unsigned numIndexes = indexes.Size();
|
|
1375
|
+
if (numIndexes == 0)
|
|
1376
|
+
numIndexes = (unsigned)_messageList.GetItemCount();
|
|
1377
|
+
|
|
1378
|
+
for (unsigned i = 0; i < numIndexes; i++)
|
|
1379
|
+
{
|
|
1380
|
+
const unsigned index = (i < indexes.Size() ? indexes[i] : i);
|
|
1381
|
+
// s.Add_UInt32(index);
|
|
1382
|
+
// s += ": ";
|
|
1383
|
+
s += _messageStrings[index];
|
|
1384
|
+
{
|
|
1385
|
+
s +=
|
|
1386
|
+
#ifdef _WIN32
|
|
1387
|
+
"\r\n"
|
|
1388
|
+
#else
|
|
1389
|
+
"\n"
|
|
1390
|
+
#endif
|
|
1391
|
+
;
|
|
1392
|
+
}
|
|
1393
|
+
}
|
|
1394
|
+
|
|
1395
|
+
ClipboardSetText(*this, s);
|
|
1396
|
+
}
|
|
1397
|
+
|
|
1398
|
+
|
|
1399
|
+
static THREAD_FUNC_DECL MyThreadFunction(void *param)
|
|
1400
|
+
{
|
|
1401
|
+
CProgressThreadVirt *p = (CProgressThreadVirt *)param;
|
|
1402
|
+
try
|
|
1403
|
+
{
|
|
1404
|
+
p->Process();
|
|
1405
|
+
p->ThreadFinishedOK = true;
|
|
1406
|
+
}
|
|
1407
|
+
catch (...) { p->Result = E_FAIL; }
|
|
1408
|
+
return 0;
|
|
1409
|
+
}
|
|
1410
|
+
|
|
1411
|
+
|
|
1412
|
+
HRESULT CProgressThreadVirt::Create(const UString &title, HWND parentWindow)
|
|
1413
|
+
{
|
|
1414
|
+
NWindows::CThread thread;
|
|
1415
|
+
const WRes wres = thread.Create(MyThreadFunction, this);
|
|
1416
|
+
if (wres != 0)
|
|
1417
|
+
return HRESULT_FROM_WIN32(wres);
|
|
1418
|
+
CProgressDialog::Create(title, thread, parentWindow);
|
|
1419
|
+
return S_OK;
|
|
1420
|
+
}
|
|
1421
|
+
|
|
1422
|
+
static void AddMessageToString(UString &dest, const UString &src)
|
|
1423
|
+
{
|
|
1424
|
+
if (!src.IsEmpty())
|
|
1425
|
+
{
|
|
1426
|
+
if (!dest.IsEmpty())
|
|
1427
|
+
dest.Add_LF();
|
|
1428
|
+
dest += src;
|
|
1429
|
+
}
|
|
1430
|
+
}
|
|
1431
|
+
|
|
1432
|
+
void CProgressThreadVirt::Process()
|
|
1433
|
+
{
|
|
1434
|
+
CProgressCloser closer(*this);
|
|
1435
|
+
UString m;
|
|
1436
|
+
try { Result = ProcessVirt(); }
|
|
1437
|
+
catch(const wchar_t *s) { m = s; }
|
|
1438
|
+
catch(const UString &s) { m = s; }
|
|
1439
|
+
catch(const char *s) { m = GetUnicodeString(s); }
|
|
1440
|
+
catch(int v)
|
|
1441
|
+
{
|
|
1442
|
+
m = "Error #";
|
|
1443
|
+
m.Add_UInt32((unsigned)v);
|
|
1444
|
+
}
|
|
1445
|
+
catch(...) { m = "Error"; }
|
|
1446
|
+
if (Result != E_ABORT)
|
|
1447
|
+
{
|
|
1448
|
+
if (m.IsEmpty() && Result != S_OK)
|
|
1449
|
+
m = HResultToMessage(Result);
|
|
1450
|
+
}
|
|
1451
|
+
AddMessageToString(m, FinalMessage.ErrorMessage.Message);
|
|
1452
|
+
|
|
1453
|
+
{
|
|
1454
|
+
FOR_VECTOR(i, ErrorPaths)
|
|
1455
|
+
{
|
|
1456
|
+
if (i >= 32)
|
|
1457
|
+
break;
|
|
1458
|
+
AddMessageToString(m, fs2us(ErrorPaths[i]));
|
|
1459
|
+
}
|
|
1460
|
+
}
|
|
1461
|
+
|
|
1462
|
+
CProgressSync &sync = Sync;
|
|
1463
|
+
NSynchronization::CCriticalSectionLock lock(sync._cs);
|
|
1464
|
+
if (m.IsEmpty())
|
|
1465
|
+
{
|
|
1466
|
+
if (!FinalMessage.OkMessage.Message.IsEmpty())
|
|
1467
|
+
sync.FinalMessage.OkMessage = FinalMessage.OkMessage;
|
|
1468
|
+
}
|
|
1469
|
+
else
|
|
1470
|
+
{
|
|
1471
|
+
sync.FinalMessage.ErrorMessage.Message = m;
|
|
1472
|
+
if (Result == S_OK)
|
|
1473
|
+
Result = E_FAIL;
|
|
1474
|
+
}
|
|
1475
|
+
}
|
|
1476
|
+
|
|
1477
|
+
UString HResultToMessage(HRESULT errorCode)
|
|
1478
|
+
{
|
|
1479
|
+
if (errorCode == E_OUTOFMEMORY)
|
|
1480
|
+
return LangString(IDS_MEM_ERROR);
|
|
1481
|
+
else
|
|
1482
|
+
return NError::MyFormatMessage(errorCode);
|
|
1483
|
+
}
|