mirror of
https://github.com/YACReader/yacreader
synced 2025-05-25 18:00:46 -04:00
32 lines
872 B
C++
32 lines
872 B
C++
#ifndef CONSOLE_UI_LIBRARY_CREATOR_H
|
|
#define CONSOLE_UI_LIBRARY_CREATOR_H
|
|
|
|
#include <QtCore>
|
|
|
|
class ConsoleUILibraryCreator : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit ConsoleUILibraryCreator(QSettings *settings, QObject *parent = 0);
|
|
void createLibrary(const QString &name, const QString &path);
|
|
void updateLibrary(const QString &path);
|
|
void addExistingLibrary(const QString &name, const QString &path);
|
|
void removeLibrary(const QString &name);
|
|
void rescanXMLInfoLibrary(const QString &path);
|
|
|
|
private:
|
|
uint numComicsProcessed;
|
|
QSettings *settings;
|
|
signals:
|
|
|
|
public slots:
|
|
|
|
protected slots:
|
|
void newComic(const QString &relativeComicPath, const QString &coverPath);
|
|
void manageCreatingError(const QString &error);
|
|
void manageUpdatingError(const QString &error);
|
|
void done();
|
|
};
|
|
|
|
#endif // CONSOLE_UI_LIBRARY_CREATOR_H
|