mirror of
https://github.com/YACReader/yacreader
synced 2025-07-19 05:24:57 -04:00
added new class for creating and updating libraries using command line, the opearion progress is shown in the console. TODO add the library to the settings files
This commit is contained in:
26
YACReaderLibrary/headless/console_ui_library_creator.h
Normal file
26
YACReaderLibrary/headless/console_ui_library_creator.h
Normal file
@ -0,0 +1,26 @@
|
||||
#ifndef CONSOLE_UI_LIBRARY_CREATOR_H
|
||||
#define CONSOLE_UI_LIBRARY_CREATOR_H
|
||||
|
||||
#include <QtCore>
|
||||
|
||||
class ConsoleUILibraryCreator : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit ConsoleUILibraryCreator(QObject *parent = 0);
|
||||
void createLibrary(const QString & name, const QString & path);
|
||||
void updateLibrary(const QString & path);
|
||||
|
||||
private:
|
||||
uint numComicsProcessed;
|
||||
signals:
|
||||
|
||||
public slots:
|
||||
|
||||
protected slots:
|
||||
void newComic(const QString & relativeComicPath, const QString & coverPath);
|
||||
void manageCreatingError(const QString & error);
|
||||
void done();
|
||||
};
|
||||
|
||||
#endif // CONSOLE_UI_LIBRARY_CREATOR_H
|
Reference in New Issue
Block a user