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 
18  kArtworkCDImage = 7
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
Q_DECLARE_METATYPE
Q_DECLARE_METATYPE(GrabberScript *)
VideoArtworkType
VideoArtworkType
Definition: metadataimagehelper.h:10
GetArtwork
MTV_PUBLIC ArtworkMap GetArtwork(const QString &inetref, uint season, bool strict=false)
Definition: metadataimagehelper.cpp:23
kArtworkInsideCover
@ kArtworkInsideCover
Definition: metadataimagehelper.h:17
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
kArtworkBackCover
@ kArtworkBackCover
Definition: metadataimagehelper.h:16
kArtworkCDImage
@ kArtworkCDImage
Definition: metadataimagehelper.h:18
ArtworkInfo
Definition: metadataimagehelper.h:22
kArtworkPoster
@ kArtworkPoster
Definition: metadataimagehelper.h:15
kArtworkFanart
@ kArtworkFanart
Definition: metadataimagehelper.h:12
uint
unsigned int uint
Definition: compat.h:140
MTV_PUBLIC
#define MTV_PUBLIC
Definition: mythtvexp.h:15
ArtworkInfo::height
uint height
Definition: metadataimagehelper.h:27
kArtworkBanner
@ kArtworkBanner
Definition: metadataimagehelper.h:13
ArtworkMap
QMultiMap< VideoArtworkType, ArtworkInfo > ArtworkMap
Definition: metadataimagehelper.h:31
ArtworkInfo::thumbnail
QString thumbnail
Definition: metadataimagehelper.h:24
kArtworkScreenshot
@ kArtworkScreenshot
Definition: metadataimagehelper.h:14
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:93
kArtworkCoverart
@ kArtworkCoverart
Definition: metadataimagehelper.h:11
ArtworkInfo::url
QString url
Definition: metadataimagehelper.h:25