mirror of
https://github.com/YACReader/yacreader
synced 2025-07-22 23:15:14 -04:00
Separaci?n en ficheros de las clases LibraryItem, Folder y Comic
A?adida la toolbar para la gesti?n de c?mics + im?genes para los iconos Modificado el di?logo de informaci?n/propiedades de los c?mics
This commit is contained in:
24
YACReaderLibrary/db/comic.h
Normal file
24
YACReaderLibrary/db/comic.h
Normal file
@ -0,0 +1,24 @@
|
||||
#ifndef __COMIC_H
|
||||
#define __COMIC_H
|
||||
|
||||
#include "library_item.h"
|
||||
#include <QSqlDatabase>
|
||||
#include <QList>
|
||||
|
||||
class Comic : public LibraryItem
|
||||
{
|
||||
public:
|
||||
qulonglong comicInfoId;
|
||||
QString hash;
|
||||
|
||||
Comic();
|
||||
Comic(qulonglong cparentId, qulonglong ccomicInfoId, QString cname, QString cpath, QString chash);
|
||||
//Comic(QString fn, QString fp):name(fn),path(fp),knownParent(false), knownId(false){};
|
||||
qulonglong insert(QSqlDatabase & db);
|
||||
static QList<LibraryItem *> getComicsFromParent(qulonglong parentId, QSqlDatabase & db);
|
||||
bool isDir();
|
||||
void removeFromDB(QSqlDatabase & db);
|
||||
};
|
||||
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user