6 #include <QNetworkAccessManager>
9 QString normalizedName
;
11 QString rssDescription
;
22 class Show
: public QObject
25 Q_PROPERTY(QString title READ title CONSTANT
)
26 Q_PROPERTY(QString description READ description CONSTANT
)
27 Q_PROPERTY(QString language READ language CONSTANT
)
28 Q_PROPERTY(QString author READ author CONSTANT
)
29 Q_PROPERTY(int episodeCount READ episodeCount CONSTANT
)
32 Show(QObject
*parent
) :
33 Show("INAVLID", "INVALID", "INVALID", "INVALID", -1, parent
)
38 QString p_description
,
45 m_language(p_language
),
47 m_episodeCount(p_episodeCount
)
49 // wrap description with <p></p> if it doesn't have it
51 if(p_description
.contains("<p>")){
52 m_description
= p_description
;
54 m_description
= "<p>" + p_description
+ "</p>";
57 Show(struct showMetaData p_meta
, QObject
*parent
) :
59 p_meta
.rssDescription
,
66 QString
title() const {return m_title
;}
67 QString
description() const {return m_description
;}
68 QString
language() const {return m_language
;}
69 QString
author() const {return m_author
;}
70 int episodeCount() const {return m_episodeCount
;}
74 QString m_description
;