Commit graph

7 commits

Author SHA1 Message Date
Ivailo Monev
3f692a32f9 kutils: implement progress signal for KArchive
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-27 03:47:53 +03:00
Ivailo Monev
78f4dd9aee kutils: do not include the libarchive function name in error strings
for consistency since some errors strings are not based on libarchive
error codes

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-15 20:06:36 +03:00
Ivailo Monev
b3a991b9d6 kutils: test listing and extraction of password-protected archive
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-09 18:04:16 +03:00
Ivailo Monev
e82f83a22a kutils: implement methods for checking if archive requires passphrase and set one for reading and writing
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-09 15:36:08 +03:00
Ivailo Monev
8009f7d734 kutils: remove extra dot in tmpName() function
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-09 06:02:01 +03:00
Ivailo Monev
0e3275dc35 kutils: make use of the new KTemporaryFile::filePath() method
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-07 05:22:41 +03:00
Ivailo Monev
3ab3f3b47f kutils: new karchive library to replace KZip and KTar
it has to solve a few problems like:
1. blocking the current thread while listing, extracting or adding to
   archive
2. lack of support for some archive formats such as 7-zip in the
   previously available classes for dealing with archive
3. progress and error reporting

a KArchiveJob class may have to be implemented to solve the above
issues. the API is just as frustrating to use as KTar and KZip right now
tho and I am not happy with that but the class itself is a 3-rd rewrite
of what was once Python module, plugin for another project and now used
as base in library.

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-06 16:53:55 +03:00