|
TTKMusicPlayer
4.2.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
|
The class of the manager of dealing with artist pictures. More...
#include <musicbackgroundmanager.h>
Inheritance diagram for MusicBackgroundManager:Signals | |
| void | artistChanged () |
| void | backgroundChanged () |
| void | selectIndexChanged () |
Public Member Functions | |
| void | setArtistName (const QString &name) |
| QString | artistName () const noexcept |
| int | currentIndex () const noexcept |
| void | setCurrentIndex (int index) noexcept |
| int | count () const noexcept |
| bool | isEmpty () const noexcept |
| void | imageNext () noexcept |
| void | imagePrevious () noexcept |
| QString | artistImagePath () noexcept |
| QString | artistImageDefaultPath () const noexcept |
| void | updateArtistImageList () |
| QStringList | artistImageList () const noexcept |
| void | setArtistImageList (const QStringList &list) noexcept |
| void | setSelectArtistIndex (int index) noexcept |
| void | addObserver (QObject *object) |
| void | removeObserver (QObject *object) |
| void | setBackgroundUrl (const QString &path) noexcept |
| QString | backgroundUrl () const noexcept |
Private Member Functions | |
| MusicBackgroundManager () noexcept | |
Private Attributes | |
| int | m_currentIndex |
| QStringList | m_images |
| QObjectList | m_observer |
| QString | m_currentArtistName |
| QString | m_background |
The class of the manager of dealing with artist pictures.
Definition at line 28 of file musicbackgroundmanager.h.
|
privatenoexcept |
Object constructor.
Definition at line 4 of file musicbackgroundmanager.cpp.
| void MusicBackgroundManager::addObserver | ( | QObject * | object | ) |
Add observer.
Definition at line 90 of file musicbackgroundmanager.cpp.
References backgroundChanged(), and m_observer.
|
signal |
New artist has been set.
Referenced by updateArtistImageList().
|
noexcept |
Get artist image path by default.
Definition at line 41 of file musicbackgroundmanager.cpp.
References m_currentIndex, and m_images.
|
noexcept |
Get artist image path list.
Definition at line 74 of file musicbackgroundmanager.cpp.
References m_images.
|
noexcept |
Get artist image path.
Definition at line 31 of file musicbackgroundmanager.cpp.
References m_currentIndex, and m_images.
|
noexcept |
Get current artist name.
Definition at line 16 of file musicbackgroundmanager.cpp.
References m_currentArtistName.
|
signal |
Background image changed.
Referenced by addObserver(), and removeObserver().
|
noexcept |
Get artist background picture path.
Definition at line 108 of file musicbackgroundmanager.cpp.
References m_background.
|
inlinenoexcept |
Get artist image count.
Definition at line 54 of file musicbackgroundmanager.h.
|
inlinenoexcept |
Get artist image current index.
Definition at line 46 of file musicbackgroundmanager.h.
|
noexcept |
Set artist image current index + 1.
Definition at line 21 of file musicbackgroundmanager.cpp.
References m_currentIndex.
|
noexcept |
Set artist image current index - 1.
Definition at line 26 of file musicbackgroundmanager.cpp.
References m_currentIndex.
|
inlinenoexcept |
Get artist image count is 0.
Definition at line 58 of file musicbackgroundmanager.h.
| void MusicBackgroundManager::removeObserver | ( | QObject * | object | ) |
Remove observer.
Definition at line 96 of file musicbackgroundmanager.cpp.
References backgroundChanged(), and m_observer.
|
signal |
User selected index changed.
|
noexcept |
Set artist image path by given path list.
Definition at line 79 of file musicbackgroundmanager.cpp.
| void MusicBackgroundManager::setArtistName | ( | const QString & | name | ) |
Set current artist name.
Definition at line 10 of file musicbackgroundmanager.cpp.
References TTK::generateSongArtist(), m_currentArtistName, and updateArtistImageList().
|
noexcept |
Set artist background picture by path.
Definition at line 102 of file musicbackgroundmanager.cpp.
|
inlinenoexcept |
Set artist image current index.
Definition at line 50 of file musicbackgroundmanager.h.
|
noexcept |
Set user select current index.
Definition at line 84 of file musicbackgroundmanager.cpp.
| void MusicBackgroundManager::updateArtistImageList | ( | ) |
Update artist image list.
Definition at line 52 of file musicbackgroundmanager.cpp.
References artistChanged(), BACKGROUND_DIR_FULL, m_currentArtistName, m_currentIndex, m_images, MAX_IMAGE_COUNT, and SKN_FILE.
Referenced by setArtistName().
|
private |
Definition at line 136 of file musicbackgroundmanager.h.
Referenced by backgroundUrl().
|
private |
Definition at line 136 of file musicbackgroundmanager.h.
Referenced by artistName(), setArtistName(), and updateArtistImageList().
|
private |
Definition at line 133 of file musicbackgroundmanager.h.
Referenced by artistImageDefaultPath(), artistImagePath(), imageNext(), imagePrevious(), and updateArtistImageList().
|
private |
Definition at line 134 of file musicbackgroundmanager.h.
Referenced by artistImageDefaultPath(), artistImageList(), artistImagePath(), and updateArtistImageList().
|
private |
Definition at line 135 of file musicbackgroundmanager.h.
Referenced by addObserver(), and removeObserver().
1.8.8