-
Notifications
You must be signed in to change notification settings - Fork 0
/
entry.cpp
47 lines (40 loc) · 1008 Bytes
/
entry.cpp
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
43
44
45
46
47
#include "entry.h"
/*!
\brief Vychozi konstuktor
*/
Entry::Entry() {
_title = "";
_link = "";
_published.setDate(QDate(0,0,0));
_id = "";
_author = "";
_summary = "";
_alreadyRead = true;
}
/*!
\brief Konstruktor s naplnenim dat
*/
Entry::Entry(QString title, QString published, QString link, QString id,
QString author, bool alreadyRead) {
QString format = "yyyy-MM-dd'T'HH:mm:ss'Z'";
_title = title;
_published = QDateTime::fromString(published, format);
_link = link;
_id = id;
_alreadyRead = alreadyRead;
_author = author;
}
/*!
\brief Konstruktor s naplnenim dat
*/
Entry::Entry(QString title, QString published, QString link, QString id,
QString author, QString summary, bool alreadyRead) {
QString format = "yyyy-MM-dd'T'HH:mm:ss'Z'";
_title = title;
_published = QDateTime::fromString(published, format);
_link = link;
_id = id;
_alreadyRead = alreadyRead;
_author = author;
_summary = summary;
}