Add feed it to Message class.
This commit is contained in:
parent
4b6d9286c0
commit
c05ae65e66
@ -23,6 +23,7 @@
|
|||||||
|
|
||||||
|
|
||||||
class FeedsModelRootItem;
|
class FeedsModelRootItem;
|
||||||
|
class FeedsModelFeed;
|
||||||
|
|
||||||
class FeedsSelection {
|
class FeedsSelection {
|
||||||
public:
|
public:
|
||||||
|
@ -122,6 +122,7 @@ Message MessagesModel::messageAt(int row_index) const {
|
|||||||
message.m_enclosures = Enclosures::decodeEnclosuresFromString(rec.value(MSG_DB_ENCLOSURES_INDEX).toString());
|
message.m_enclosures = Enclosures::decodeEnclosuresFromString(rec.value(MSG_DB_ENCLOSURES_INDEX).toString());
|
||||||
message.m_title = rec.value(MSG_DB_TITLE_INDEX).toString();
|
message.m_title = rec.value(MSG_DB_TITLE_INDEX).toString();
|
||||||
message.m_url = rec.value(MSG_DB_URL_INDEX).toString();
|
message.m_url = rec.value(MSG_DB_URL_INDEX).toString();
|
||||||
|
message.m_feedId = rec.value(MSG_DB_FEED_INDEX).toInt();
|
||||||
message.m_created = TextFactory::parseDateTime(rec.value(MSG_DB_DCREATED_INDEX).value<qint64>()).toLocalTime();
|
message.m_created = TextFactory::parseDateTime(rec.value(MSG_DB_DCREATED_INDEX).value<qint64>()).toLocalTime();
|
||||||
|
|
||||||
return message;
|
return message;
|
||||||
|
@ -86,6 +86,7 @@ class Message {
|
|||||||
public:
|
public:
|
||||||
explicit Message() {
|
explicit Message() {
|
||||||
m_title = m_url = m_author = m_contents = "";
|
m_title = m_url = m_author = m_contents = "";
|
||||||
|
m_feedId = 0;
|
||||||
m_enclosures = QList<Enclosure>();
|
m_enclosures = QList<Enclosure>();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -94,6 +95,7 @@ class Message {
|
|||||||
QString m_author;
|
QString m_author;
|
||||||
QString m_contents;
|
QString m_contents;
|
||||||
QDateTime m_created;
|
QDateTime m_created;
|
||||||
|
int m_feedId;
|
||||||
|
|
||||||
QList<Enclosure> m_enclosures;
|
QList<Enclosure> m_enclosures;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user