mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -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();
|
//emit errorOpening();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool FileComic::isCancelled()
|
||||||
|
{
|
||||||
|
return _invalidated;
|
||||||
|
}
|
||||||
|
|
||||||
//--------------------------------------
|
//--------------------------------------
|
||||||
|
|
||||||
QList<QVector<quint32> > FileComic::getSections(int & sectionIndex)
|
QList<QVector<quint32> > FileComic::getSections(int & sectionIndex)
|
||||||
|
@ -121,13 +121,16 @@ class FileComic : public Comic, public ExtractDelegate
|
|||||||
FileComic();
|
FileComic();
|
||||||
FileComic(const QString & path, int atPage = -1);
|
FileComic(const QString & path, int atPage = -1);
|
||||||
~FileComic();
|
~FileComic();
|
||||||
void fileExtracted(int index, const QByteArray & rawData);
|
|
||||||
virtual bool load(const QString & path, int atPage = -1);
|
virtual bool load(const QString & path, int atPage = -1);
|
||||||
virtual bool load(const QString & path, const ComicDB & comic);
|
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 crcError(int index);
|
||||||
void unknownError(int index);
|
void unknownError(int index);
|
||||||
static QList<QString> filter(const QList<QString> & src);
|
bool isCancelled();
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
|
|
||||||
void process();
|
void process();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user