-
Notifications
You must be signed in to change notification settings - Fork 0
/
entry.h
42 lines (35 loc) · 1.11 KB
/
entry.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef ENTRY_H
#define ENTRY_H
#include <QObject>
#include <QDate>
class Entry : public QObject
{
public:
Entry();
Entry(QString, QString, QString, QString, QString, bool);
Entry(QString, QString, QString, QString, QString, QString, bool);
//navrati titulek polozky
QString getTitle() { return _title; }
//navrati adresu polozky
QString getLink() { return _link; }
//navrati autora polozky
QString getAuthor() { return _author; }
//navrati ID polozky
QString getId() { return _id; }
//navrati datum publikovani
QDateTime getPublishedDate() { return _published; }
QString getSummary() { return _summary; }
//navrati jestli je polozka oznacena jako prectena
bool isRead() { return _alreadyRead; }
//nastavi polozku jako prectenou
void setAsRead() { _alreadyRead = true; }
private:
QDateTime _published;
bool _alreadyRead;
QString _title;
QString _link;
QString _id;
QString _author;
QString _summary;
};
#endif // ENTRY_H