1 #ifndef MUSICBACKGROUNDMANAGER_H
2 #define MUSICBACKGROUNDMANAGER_H
37 void setArtistName(
const QString &
name);
41 QString artistName()
const noexcept;
54 inline int count()
const noexcept {
return m_images.count(); }
58 inline bool isEmpty()
const noexcept {
return m_images.isEmpty(); }
63 void imageNext() noexcept;
67 void imagePrevious() noexcept;
72 QString artistImagePath() noexcept;
76 QString artistImageDefaultPath()
const noexcept;
81 void updateArtistImageList();
85 QStringList artistImageList()
const noexcept;
89 void setArtistImageList(
const QStringList &list) noexcept;
93 void setSelectArtistIndex(
int index) noexcept;
98 void addObserver(QObject *
object);
102 void removeObserver(QObject *
object);
107 void setBackgroundUrl(
const QString &path) noexcept;
111 QString backgroundUrl()
const noexcept;
117 void artistChanged();
121 void backgroundChanged();
125 void selectIndexChanged();
134 QStringList m_images;
135 QObjectList m_observer;
136 QString m_currentArtistName, m_background;
140 #define G_BACKGROUND_PTR makeMusicBackgroundManager()
143 #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()
#define TTK_DECLARE_MODULE(Class)