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 
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
MTV_PUBLIC ArtworkMap GetArtwork(const QString &inetref, uint season, bool strict=false)
VideoArtworkType
Q_DECLARE_METATYPE(GrabberScript *)
QList< ArtworkInfo > ArtworkList
#define MTV_PUBLIC
Definition: mythtvexp.h:15
unsigned int uint
Definition: compat.h:140
QMultiMap< VideoArtworkType, ArtworkInfo > ArtworkMap
MTV_PUBLIC bool SetArtwork(const QString &inetref, uint season, const QString &host, const QString &coverart, const QString &fanart, const QString &banner)