mirror of
https://github.com/YACReader/yacreader
synced 2025-07-22 15:04:40 -04:00
Fixed data base info retrieving through DBHelper, value(QString)
should never be used because it is really slow. All items sorting should be done at db level or using std::sort.
This commit is contained in:
31
YACReaderLibrary/yacreader_comic_info_helper.h
Normal file
31
YACReaderLibrary/yacreader_comic_info_helper.h
Normal file
@ -0,0 +1,31 @@
|
||||
#ifndef YACREADERCOMICINFOHELPER_H
|
||||
#define YACREADERCOMICINFOHELPER_H
|
||||
|
||||
#include <QObject>
|
||||
|
||||
|
||||
class ComicModel;
|
||||
|
||||
|
||||
class YACReaderComicInfoHelper : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit YACReaderComicInfoHelper(QObject *parent = 0);
|
||||
|
||||
void setModel(ComicModel *model);
|
||||
|
||||
Q_INVOKABLE void rate(int index, int rating);
|
||||
Q_INVOKABLE void setRead(int index, bool read);
|
||||
Q_INVOKABLE void addToFavorites(int index);
|
||||
Q_INVOKABLE void removeFromFavorites(int index);
|
||||
|
||||
signals:
|
||||
|
||||
public slots:
|
||||
|
||||
protected:
|
||||
ComicModel *model;
|
||||
};
|
||||
|
||||
#endif // YACREADERCOMICINFOHELPER_H
|
Reference in New Issue
Block a user