MythTV  master
newsarticle.h
Go to the documentation of this file.
1 #ifndef _NEWSARTICLE_H_
2 #define _NEWSARTICLE_H_
3 
4 // C++ headers
5 #include <vector>
6 using namespace std;
7 
8 // QT headers
9 #include <QString>
10 
12 {
13  public:
14  using List = vector<NewsArticle>;
15 
16  NewsArticle(QString title, QString desc, QString articleURL,
17  QString thumbnail, QString mediaURL, QString enclosure);
18  NewsArticle(QString title, QString desc, QString articleURL);
19  explicit NewsArticle(QString title);
20 
21  NewsArticle() = default;
22 
23  QString title(void) const { return m_title; }
24  QString description(void) const { return m_desc; }
25  QString articleURL(void) const { return m_articleURL; }
26  QString thumbnail(void) const { return m_thumbnail; }
27  QString mediaURL(void) const { return m_mediaURL; }
28  QString enclosure(void) const { return m_enclosure; }
29 
30  private:
31  QString m_title;
32  QString m_desc;
33  QString m_articleURL;
34  QString m_thumbnail;
35  QString m_mediaURL;
36  QString m_enclosure;
37  QString m_enclosureType;
38 };
39 
40 #endif // _NEWSARTICLE_H_
QString m_enclosure
Definition: newsarticle.h:36
QString mediaURL(void) const
Definition: newsarticle.h:27
QString enclosure(void) const
Definition: newsarticle.h:28
QString articleURL(void) const
Definition: newsarticle.h:25
QString m_articleURL
Definition: newsarticle.h:33
QString m_desc
Definition: newsarticle.h:32
QString m_mediaURL
Definition: newsarticle.h:35
QString m_thumbnail
Definition: newsarticle.h:34
vector< NewsArticle > List
Definition: newsarticle.h:14
QString title(void) const
Definition: newsarticle.h:23
QString description(void) const
Definition: newsarticle.h:24
QString thumbnail(void) const
Definition: newsarticle.h:26
QString m_title
Definition: newsarticle.h:31
QString m_enclosureType
Definition: newsarticle.h:37