mirror of
https://github.com/YACReader/yacreader
synced 2025-07-18 21:14:33 -04:00
Added model classes for reading lists and labels.
This commit is contained in:
36
YACReaderLibrary/db/reading_list.h
Normal file
36
YACReaderLibrary/db/reading_list.h
Normal file
@ -0,0 +1,36 @@
|
||||
#ifndef READING_LIST_H
|
||||
#define READING_LIST_H
|
||||
|
||||
#include "yacreader_global.h"
|
||||
|
||||
class ReadingList
|
||||
{
|
||||
public:
|
||||
ReadingList(const QString &name, qulonglong id, int ordering);
|
||||
|
||||
qulonglong getId() const;
|
||||
QString getName() const;
|
||||
int getOrdering() const;
|
||||
private:
|
||||
QString name;
|
||||
qulonglong id;
|
||||
int ordering;
|
||||
};
|
||||
|
||||
class Label
|
||||
{
|
||||
public:
|
||||
Label(const QString &name, qulonglong id, YACReader::LabelColors colorid);
|
||||
|
||||
YACReader::LabelColors getColorID() const;
|
||||
QString getName() const;
|
||||
qulonglong getId() const;
|
||||
|
||||
private:
|
||||
QString name;
|
||||
qulonglong id;
|
||||
YACReader::LabelColors colorid;
|
||||
|
||||
};
|
||||
|
||||
#endif // READING_LIST_H
|
Reference in New Issue
Block a user