mirror of
https://github.com/YACReader/yacreader
synced 2025-07-18 21:14:33 -04:00
Extract and rename ThumbnailCreator to its own files
It adds support for getting XML info files and for skipping cover extraction.
This commit is contained in:
36
YACReaderLibrary/initial_comic_info_extractor.h
Normal file
36
YACReaderLibrary/initial_comic_info_extractor.h
Normal file
@ -0,0 +1,36 @@
|
||||
#ifndef INITIALCOMICINFOEXTRACTOR_H
|
||||
#define INITIALCOMICINFOEXTRACTOR_H
|
||||
|
||||
#include <QtGui>
|
||||
|
||||
namespace YACReader {
|
||||
class InitialComicInfoExtractor : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
InitialComicInfoExtractor(QString fileSource, QString target = "", int coverPage = 1);
|
||||
|
||||
private:
|
||||
QString _fileSource;
|
||||
QString _target;
|
||||
QString _currentName;
|
||||
int _numPages;
|
||||
QPair<int, int> _coverSize;
|
||||
QImage _cover;
|
||||
int _coverPage;
|
||||
static bool crash;
|
||||
QByteArray _xmlInfoData;
|
||||
|
||||
public slots:
|
||||
void extract();
|
||||
int getNumPages() { return _numPages; }
|
||||
QPixmap getCover() { return QPixmap::fromImage(_cover); }
|
||||
QPair<int, int> getOriginalCoverSize() { return _coverSize; }
|
||||
QByteArray getXMLInfoRawData();
|
||||
signals:
|
||||
void openingError(QProcess::ProcessError error);
|
||||
};
|
||||
}
|
||||
|
||||
#endif // INITIALCOMICINFOEXTRACTOR_H
|
Reference in New Issue
Block a user