mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
Implement the new ExtractDelegate method in FileComic,
If the comic has been invalidated the extraction should stop.
This commit is contained in:
parent
c766fedd45
commit
a516fb1df4
@ -419,6 +419,11 @@ void FileComic::unknownError(int index)
|
||||
//emit errorOpening();
|
||||
}
|
||||
|
||||
bool FileComic::isCancelled()
|
||||
{
|
||||
return _invalidated;
|
||||
}
|
||||
|
||||
//--------------------------------------
|
||||
|
||||
QList<QVector<quint32> > FileComic::getSections(int & sectionIndex)
|
||||
|
@ -121,13 +121,16 @@ class FileComic : public Comic, public ExtractDelegate
|
||||
FileComic();
|
||||
FileComic(const QString & path, int atPage = -1);
|
||||
~FileComic();
|
||||
void fileExtracted(int index, const QByteArray & rawData);
|
||||
virtual bool load(const QString & path, int atPage = -1);
|
||||
virtual bool load(const QString & path, const ComicDB & comic);
|
||||
static QList<QString> filter(const QList<QString> & src);
|
||||
|
||||
//ExtractDelegate
|
||||
void fileExtracted(int index, const QByteArray & rawData);
|
||||
void crcError(int index);
|
||||
void unknownError(int index);
|
||||
static QList<QString> filter(const QList<QString> & src);
|
||||
|
||||
bool isCancelled();
|
||||
|
||||
public slots:
|
||||
|
||||
void process();
|
||||
|
Loading…
Reference in New Issue
Block a user