mirror of
https://github.com/YACReader/yacreader
synced 2025-07-23 07:24:58 -04:00
new class for controlling navigation in LibraryWindow (NavigationController), code refactoring
This commit is contained in:
@ -4,6 +4,7 @@
|
||||
#include <QObject>
|
||||
#include <QList>
|
||||
#include <QPair>
|
||||
#include <QModelIndex>
|
||||
|
||||
|
||||
//this class is intended to work in background, just use moveToThread and process to start working
|
||||
@ -12,14 +13,14 @@ class ComicFilesManager : public QObject
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit ComicFilesManager(QObject *parent = 0);
|
||||
void copyComicsTo(const QList<QPair<QString,QString> > & sourceComics, const QString & folderDest);
|
||||
void moveComicsTo(const QList<QPair<QString,QString> > & comics, const QString & folderDest);
|
||||
void copyComicsTo(const QList<QPair<QString,QString> > & sourceComics, const QString & folderDest, const QModelIndex &dest);
|
||||
void moveComicsTo(const QList<QPair<QString,QString> > & comics, const QString & folderDest, const QModelIndex &dest);
|
||||
static QList<QPair<QString, QString> > getDroppedFiles(const QList<QUrl> & urls);
|
||||
signals:
|
||||
void currentComic(QString);
|
||||
void progress(int);
|
||||
void finished();
|
||||
void success(); //at least one comics has been copied or moved
|
||||
void success(QModelIndex); //at least one comics has been copied or moved
|
||||
public slots:
|
||||
void process();
|
||||
void cancel();
|
||||
@ -29,6 +30,7 @@ protected:
|
||||
bool canceled;
|
||||
QList<QPair<QString,QString> > comics;
|
||||
QString folder;
|
||||
QModelIndex folderDestinationModelIndex;
|
||||
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user