1 #ifndef MUSICBACKGROUNDMANAGER_H
2 #define MUSICBACKGROUNDMANAGER_H
36 void setArtistName(
const QString &
name);
40 QString artistName()
const noexcept;
53 inline int count()
const noexcept {
return m_images.count(); }
57 inline bool isEmpty()
const noexcept {
return m_images.isEmpty(); }
62 void imageNext() noexcept;
66 void imagePrevious() noexcept;
71 QString artistImagePath() noexcept;
75 QString artistImageDefaultPath()
const noexcept;
80 void updateArtistImageList();
84 QStringList artistImageList()
const noexcept;
88 void setArtistImageList(
const QStringList &list) noexcept;
92 void setSelectArtistIndex(
int index) noexcept;
97 void addObserver(QObject *
object);
101 void removeObserver(QObject *
object);
106 void setBackgroundUrl(
const QString &path) noexcept;
110 QString backgroundUrl()
const noexcept;
116 void artistChanged();
120 void backgroundChanged();
124 void selectIndexChanged();
133 QStringList m_images;
134 QObjectList m_observer;
135 QString m_currentArtistName, m_background;
139 #define G_BACKGROUND_PTR makeMusicBackgroundManager()
142 #endif // MUSICBACKGROUNDMANAGER_H
#define TTK_MODULE_EXPORT
int count() const noexcept
int currentIndex() const noexcept
void setCurrentIndex(int index) noexcept
bool isEmpty() const noexcept
#define TTK_DECLARE_SINGLETON_CLASS(Class)
// Singleton Macro // //
The class of the manager of dealing with artist pictures.
TTK_MODULE_EXPORT MusicBackgroundManager * makeMusicBackgroundManager()