Changeset View
Changeset View
Standalone View
Standalone View
generators/comicbook/document.cpp
Context not available. | |||||
18 | #include <QMimeDatabase> | 18 | #include <QMimeDatabase> | ||
---|---|---|---|---|---|
19 | #include <kzip.h> | 19 | #include <kzip.h> | ||
20 | #include <ktar.h> | 20 | #include <ktar.h> | ||
21 | #include <k7zip.h> | ||||
21 | 22 | | |||
22 | #include <memory> | 23 | #include <memory> | ||
23 | 24 | | |||
Context not available. | |||||
75 | mime.inherits( QStringLiteral("application/x-tar") ) || mime.inherits( QStringLiteral("application/x-bzip") ) ) { | 76 | mime.inherits( QStringLiteral("application/x-tar") ) || mime.inherits( QStringLiteral("application/x-bzip") ) ) { | ||
76 | mArchive = new KTar( fileName ); | 77 | mArchive = new KTar( fileName ); | ||
77 | 78 | | |||
79 | if ( !processArchive() ) { | ||||
80 | return false; | ||||
81 | } | ||||
82 | /** | ||||
83 | * We have a 7z archive | ||||
84 | */ | ||||
85 | } else if ( mime.inherits( QStringLiteral("application/x-cb7") ) || mime.inherits( QStringLiteral("application/x-7z-compressed") ) ) { | ||||
86 | mArchive = new K7Zip( fileName ); | ||||
87 | | ||||
78 | if ( !processArchive() ) { | 88 | if ( !processArchive() ) { | ||
79 | return false; | 89 | return false; | ||
80 | } | 90 | } | ||
Context not available. |