stachenov / quazip

Qt/C++ wrapper over minizip
Other
580 stars 233 forks source link

Feature/jlcompress options #203

Closed cen1 closed 1 month ago

cen1 commented 1 month ago

This extends JlCompress with an Option class to extend functionality with fixed file timestamps and with a follow up task, compression levels and encryption.

An Option class is used instead of regular overload with QDateTime because with more extensions coming in the future we'd end up in an overload hell and too many method parameters. This seems like a saner approach.

In addition I extended two JlCompress tests to compare against a fixed timestamp and a known resulting zip hash. This should help catch any breakage of defaults as more options are added (e.g. compression level).