| 154 | } |
| 155 | |
| 156 | bool Document::processArchive() |
| 157 | { |
| 158 | if (!mArchive->open(QIODevice::ReadOnly)) { |
| 159 | delete mArchive; |
| 160 | mArchive = nullptr; |
| 161 | |
| 162 | return false; |
| 163 | } |
| 164 | |
| 165 | const KArchiveDirectory *directory = mArchive->directory(); |
| 166 | if (!directory) { |
| 167 | delete mArchive; |
| 168 | mArchive = nullptr; |
| 169 | |
| 170 | return false; |
| 171 | } |
| 172 | |
| 173 | mArchiveDir = directory; |
| 174 | |
| 175 | imagesInArchive(QString(), mArchiveDir, &mEntries); |
| 176 | |
| 177 | return true; |
| 178 | } |
| 179 | |
| 180 | void Document::pages(QList<Okular::Page *> *pagesVector) |
| 181 | { |
nothing calls this directly
no test coverage detected