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  typedef vector<NewsArticle> List;
15 
16  NewsArticle(const QString &title,
17  const QString &desc, const QString &articleURL,
18  const QString &thumbnail, const QString &mediaURL,
19  const QString &enclosure);
20  NewsArticle(const QString &title,
21  const QString &desc, const QString &articleURL);
22  explicit NewsArticle(const QString &title);
23 
24  NewsArticle() = default;
25 
26  QString title(void) const { return m_title; }
27  QString description(void) const { return m_desc; }
28  QString articleURL(void) const { return m_articleURL; }
29  QString thumbnail(void) const { return m_thumbnail; }
30  QString mediaURL(void) const { return m_mediaURL; }
31  QString enclosure(void) const { return m_enclosure; }
32 
33  private:
34  QString m_title;
35  QString m_desc;
36  QString m_articleURL;
37  QString m_thumbnail;
38  QString m_mediaURL;
39  QString m_enclosure;
40  QString m_enclosureType;
41 };
42 
43 #endif // _NEWSARTICLE_H_
QString m_enclosure
Definition: newsarticle.h:39
QString mediaURL(void) const
Definition: newsarticle.h:30
QString enclosure(void) const
Definition: newsarticle.h:31
QString articleURL(void) const
Definition: newsarticle.h:28
QString m_articleURL
Definition: newsarticle.h:36
QString m_desc
Definition: newsarticle.h:35
QString m_mediaURL
Definition: newsarticle.h:38
QString m_thumbnail
Definition: newsarticle.h:37
QString title(void) const
Definition: newsarticle.h:26
QString description(void) const
Definition: newsarticle.h:27
QString thumbnail(void) const
Definition: newsarticle.h:29
QString m_title
Definition: newsarticle.h:34
QString m_enclosureType
Definition: newsarticle.h:40
vector< NewsArticle > List
Definition: newsarticle.h:14