mirror of
https://invent.kde.org/graphics/okular
synced 2024-10-12 10:53:09 +00:00
deabbae3bf
Information about this format and testfiles can be found at http://en.wikipedia.org/wiki/CDisplay_RAR_Archived_Comic_Book_File svn path=/trunk/playground/graphics/okular/; revision=624702
47 lines
1.2 KiB
C++
47 lines
1.2 KiB
C++
/***************************************************************************
|
|
* Copyright (C) 2007 by Tobias Koenig <tokoe@kde.org> *
|
|
* *
|
|
* This program is free software; you can redistribute it and/or modify *
|
|
* it under the terms of the GNU General Public License as published by *
|
|
* the Free Software Foundation; either version 2 of the License, or *
|
|
* (at your option) any later version. *
|
|
***************************************************************************/
|
|
|
|
#ifndef COMICBOOK_DOCUMENT_H
|
|
#define COMICBOOK_DOCUMENT_H
|
|
|
|
#include <QtCore/QStringList>
|
|
|
|
class KArchiveDirectory;
|
|
class KZip;
|
|
class QImage;
|
|
class Unrar;
|
|
|
|
namespace ComicBook {
|
|
|
|
class Document
|
|
{
|
|
public:
|
|
Document();
|
|
~Document();
|
|
|
|
bool open( const QString &fileName );
|
|
|
|
int pages() const;
|
|
QStringList pageTitles() const;
|
|
|
|
QImage pageImage( int page ) const;
|
|
|
|
private:
|
|
void extractImageFiles( const QStringList& );
|
|
|
|
QStringList mPageMap;
|
|
Unrar *mUnrar;
|
|
KZip *mZip;
|
|
KArchiveDirectory *mZipDir;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|