MythTV  master
metadataimagehelper.h
Go to the documentation of this file.
1 #ifndef METADATAIMAGEHELPER_H
2 #define METADATAIMAGEHELPER_H
3 
4 #include <QObject>
5 #include <QMultiMap>
6 #include <QMetaType>
7 
8 #include "mythtvexp.h"
9 
10 enum VideoArtworkType : std::uint8_t {
19 };
20 
22 {
23  QString label;
24  QString thumbnail;
25  QString url;
26  uint width {0};
27  uint height {0};
28 };
29 
30 using ArtworkList = QList< ArtworkInfo >;
31 using ArtworkMap = QMultiMap< VideoArtworkType, ArtworkInfo >;
32 
33 MTV_PUBLIC ArtworkMap GetArtwork(const QString& inetref,
34  uint season,
35  bool strict = false);
36 MTV_PUBLIC bool SetArtwork(const QString &inetref,
37  uint season,
38  const QString &host,
39  const QString &coverart,
40  const QString &fanart,
41  const QString &banner);
42 MTV_PUBLIC bool SetArtwork(const QString &inetref,
43  uint season,
44  const QString &host,
45  const ArtworkMap& map);
46 
49 
50 #endif // METADATAIMAGEHELPER_H
GetArtwork
MTV_PUBLIC ArtworkMap GetArtwork(const QString &inetref, uint season, bool strict=false)
Definition: metadataimagehelper.cpp:23
ArtworkList
QList< ArtworkInfo > ArtworkList
Definition: metadataimagehelper.h:30
mythtvexp.h
ArtworkInfo::label
QString label
Definition: metadataimagehelper.h:23
ArtworkInfo::width
uint width
Definition: metadataimagehelper.h:26
VideoArtworkType
VideoArtworkType
Definition: metadataimagehelper.h:10
Q_DECLARE_METATYPE
Q_DECLARE_METATYPE(StandardSetting *)
kArtworkScreenshot
@ kArtworkScreenshot
Definition: metadataimagehelper.h:14
kArtworkCDImage
@ kArtworkCDImage
Definition: metadataimagehelper.h:18
kArtworkCoverart
@ kArtworkCoverart
Definition: metadataimagehelper.h:11
kArtworkFanart
@ kArtworkFanart
Definition: metadataimagehelper.h:12
ArtworkInfo
Definition: metadataimagehelper.h:21
kArtworkBanner
@ kArtworkBanner
Definition: metadataimagehelper.h:13
kArtworkPoster
@ kArtworkPoster
Definition: metadataimagehelper.h:15
uint
unsigned int uint
Definition: compat.h:81
kArtworkInsideCover
@ kArtworkInsideCover
Definition: metadataimagehelper.h:17
MTV_PUBLIC
#define MTV_PUBLIC
Definition: mythtvexp.h:15
ArtworkInfo::height
uint height
Definition: metadataimagehelper.h:27
ArtworkMap
QMultiMap< VideoArtworkType, ArtworkInfo > ArtworkMap
Definition: metadataimagehelper.h:31
kArtworkBackCover
@ kArtworkBackCover
Definition: metadataimagehelper.h:16
ArtworkInfo::thumbnail
QString thumbnail
Definition: metadataimagehelper.h:24
SetArtwork
MTV_PUBLIC bool SetArtwork(const QString &inetref, uint season, const QString &host, const QString &coverart, const QString &fanart, const QString &banner)
Definition: metadataimagehelper.cpp:95
ArtworkInfo::url
QString url
Definition: metadataimagehelper.h:25