MythTV
master
mythplugins
mythnews
mythnews
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
7
// QT headers
8
#include <QString>
9
10
class
NewsArticle
11
{
12
public
:
13
using
List
= std::vector<NewsArticle>;
14
15
NewsArticle
(QString
title
, QString desc, QString
articleURL
,
16
QString
thumbnail
, QString
mediaURL
, QString
enclosure
);
17
NewsArticle
(QString
title
, QString desc, QString
articleURL
);
18
explicit
NewsArticle
(QString
title
);
19
20
NewsArticle
() =
default
;
21
22
QString
title
(
void
)
const
{
return
m_title
; }
23
QString
description
(
void
)
const
{
return
m_desc
; }
24
QString
articleURL
(
void
)
const
{
return
m_articleURL
; }
25
QString
thumbnail
(
void
)
const
{
return
m_thumbnail
; }
26
QString
mediaURL
(
void
)
const
{
return
m_mediaURL
; }
27
QString
enclosure
(
void
)
const
{
return
m_enclosure
; }
28
29
private
:
30
QString
m_title
;
31
QString
m_desc
;
32
QString
m_articleURL
;
33
QString
m_thumbnail
;
34
QString
m_mediaURL
;
35
QString
m_enclosure
;
36
QString
m_enclosureType
;
37
};
38
39
#endif // NEWSARTICLE_H
NewsArticle::articleURL
QString articleURL(void) const
Definition:
newsarticle.h:24
NewsArticle::m_articleURL
QString m_articleURL
Definition:
newsarticle.h:32
NewsArticle::title
QString title(void) const
Definition:
newsarticle.h:22
NewsArticle::thumbnail
QString thumbnail(void) const
Definition:
newsarticle.h:25
NewsArticle::m_title
QString m_title
Definition:
newsarticle.h:30
NewsArticle
Definition:
newsarticle.h:10
NewsArticle::m_desc
QString m_desc
Definition:
newsarticle.h:31
NewsArticle::description
QString description(void) const
Definition:
newsarticle.h:23
NewsArticle::List
std::vector< NewsArticle > List
Definition:
newsarticle.h:13
NewsArticle::m_thumbnail
QString m_thumbnail
Definition:
newsarticle.h:33
NewsArticle::m_enclosureType
QString m_enclosureType
Definition:
newsarticle.h:36
NewsArticle::m_mediaURL
QString m_mediaURL
Definition:
newsarticle.h:34
NewsArticle::enclosure
QString enclosure(void) const
Definition:
newsarticle.h:27
NewsArticle::NewsArticle
NewsArticle()=default
NewsArticle::m_enclosure
QString m_enclosure
Definition:
newsarticle.h:35
NewsArticle::mediaURL
QString mediaURL(void) const
Definition:
newsarticle.h:26
Generated on Mon Nov 25 2024 03:16:01 for MythTV by
1.8.17