|
MythTV master
|
#include <libmythmetadata/lyricsdata.h>
Public Types | |
| enum | Status : std::uint8_t { STATUS_NOTLOADED = 0 , STATUS_SEARCHING , STATUS_FOUND , STATUS_NOTFOUND } |
Signals | |
| void | statusChanged (LyricsData::Status status, const QString &message) |
Public Member Functions | |
| LyricsData ()=default | |
| LyricsData (MusicMetadata *parent) | |
| LyricsData (MusicMetadata *parent, QString grabber, QString artist, QString album, QString title, bool syncronized) | |
| ~LyricsData () override | |
| QString | grabber (void) |
| void | setGrabber (const QString &grabber) |
| QString | artist (void) |
| void | setArtist (const QString &artist) |
| QString | album (void) |
| void | setAlbum (const QString &album) |
| QString | title (void) |
| void | setTitle (const QString &title) |
| LyricsLineMap * | lyrics (void) |
| void | setLyrics (const QStringList &lyrics) |
| bool | syncronized (void) const |
| void | setSyncronized (bool syncronized) |
| bool | changed (void) const |
| void | setChanged (bool changed) |
| Status | getStatus (void) |
| void | clear (void) |
| void | clearLyrics (void) |
| void | findLyrics (const QString &grabber) |
| void | save (void) |
| void | customEvent (QEvent *event) override |
Private Member Functions | |
| void | loadLyrics (const QString &xmlData) |
| QString | createLyricsXML (void) |
Private Attributes | |
| LyricsLineMap | m_lyricsMap |
| MusicMetadata * | m_parent {nullptr} |
| Status | m_status {STATUS_NOTLOADED} |
| QString | m_grabber |
| QString | m_artist |
| QString | m_album |
| QString | m_title |
| bool | m_syncronized {false} |
| bool | m_changed {false} |
Friends | |
| class | TestLyrics |
Definition at line 47 of file lyricsdata.h.
| enum LyricsData::Status : std::uint8_t |
| Enumerator | |
|---|---|
| STATUS_NOTLOADED | |
| STATUS_SEARCHING | |
| STATUS_FOUND | |
| STATUS_NOTFOUND | |
Definition at line 85 of file lyricsdata.h.
|
default |
|
inlineexplicit |
Definition at line 55 of file lyricsdata.h.
|
inline |
Definition at line 57 of file lyricsdata.h.
|
override |
Definition at line 22 of file lyricsdata.cpp.
|
inline |
Definition at line 70 of file lyricsdata.h.
Referenced by EditLyricsDialog::Create(), createLyricsXML(), findLyrics(), and EditLyricsDialog::somethingChanged().
|
inline |
Definition at line 67 of file lyricsdata.h.
Referenced by utils.Song::__eq__(), utils.Song::__str__(), EditLyricsDialog::Create(), createLyricsXML(), findLyrics(), utils.Song::path1(), and EditLyricsDialog::somethingChanged().
|
inline |
Definition at line 82 of file lyricsdata.h.
Referenced by LyricsView::findLyrics(), and LyricsView::ShowMenu().
| void LyricsData::clear | ( | void | ) |
Definition at line 27 of file lyricsdata.cpp.
Referenced by LyricsView::customEvent(), findLyrics(), and ~LyricsData().
| void LyricsData::clearLyrics | ( | void | ) |
Definition at line 38 of file lyricsdata.cpp.
Referenced by clear(), loadLyrics(), and setLyrics().
|
private |
Definition at line 138 of file lyricsdata.cpp.
Referenced by save().
|
override |
Definition at line 184 of file lyricsdata.cpp.
| void LyricsData::findLyrics | ( | const QString & | grabber | ) |
Definition at line 50 of file lyricsdata.cpp.
Referenced by LyricsView::findLyrics(), and culrcscrapers.darklyrics.lyricsScraper.LyricsFetcher::get_lyrics_from_list().
|
inline |
Definition at line 93 of file lyricsdata.h.
|
inline |
Definition at line 64 of file lyricsdata.h.
Referenced by EditLyricsDialog::Create(), createLyricsXML(), findLyrics(), LyricsView::showLyrics(), and EditLyricsDialog::somethingChanged().
|
private |
Definition at line 231 of file lyricsdata.cpp.
Referenced by customEvent().
|
inline |
Definition at line 76 of file lyricsdata.h.
Referenced by loadLyrics(), EditLyricsDialog::loadLyrics(), setLyrics(), LyricsView::showLyrics(), LyricsView::ShowMenu(), and EditLyricsDialog::somethingChanged().
| void LyricsData::save | ( | void | ) |
Definition at line 117 of file lyricsdata.cpp.
Referenced by LyricsView::findLyrics(), EditLyricsDialog::okPressed(), and LyricsView::saveLyrics().
|
inline |
Definition at line 71 of file lyricsdata.h.
Referenced by EditLyricsDialog::okPressed().
|
inline |
Definition at line 68 of file lyricsdata.h.
Referenced by EditLyricsDialog::okPressed().
|
inline |
Definition at line 83 of file lyricsdata.h.
Referenced by EditLyricsDialog::okPressed(), and LyricsView::setLyricTime().
|
inline |
Definition at line 65 of file lyricsdata.h.
Referenced by EditLyricsDialog::okPressed().
| void LyricsData::setLyrics | ( | const QStringList & | lyrics | ) |
Definition at line 313 of file lyricsdata.cpp.
Referenced by loadLyrics(), and EditLyricsDialog::okPressed().
|
inline |
Definition at line 80 of file lyricsdata.h.
Referenced by EditLyricsDialog::okPressed(), and LyricsView::setLyricTime().
|
inline |
Definition at line 74 of file lyricsdata.h.
Referenced by EditLyricsDialog::okPressed().
|
signal |
Referenced by customEvent(), findLyrics(), and LyricsView::findLyrics().
|
inline |
Definition at line 79 of file lyricsdata.h.
Referenced by EditLyricsDialog::Create(), createLyricsXML(), LyricsView::showLyrics(), and EditLyricsDialog::somethingChanged().
|
inline |
Definition at line 73 of file lyricsdata.h.
Referenced by utils.Song::__eq__(), utils.Song::__str__(), EditLyricsDialog::Create(), createLyricsXML(), findLyrics(), utils.Song::path1(), and EditLyricsDialog::somethingChanged().
|
friend |
Definition at line 51 of file lyricsdata.h.
|
private |
Definition at line 117 of file lyricsdata.h.
Referenced by clear(), createLyricsXML(), and loadLyrics().
|
private |
Definition at line 116 of file lyricsdata.h.
Referenced by clear(), createLyricsXML(), and loadLyrics().
Definition at line 120 of file lyricsdata.h.
Referenced by clear(), loadLyrics(), and save().
|
private |
Definition at line 115 of file lyricsdata.h.
Referenced by clear(), createLyricsXML(), and loadLyrics().
|
private |
Definition at line 109 of file lyricsdata.h.
Referenced by clearLyrics(), createLyricsXML(), and setLyrics().
|
private |
Definition at line 111 of file lyricsdata.h.
Referenced by customEvent(), findLyrics(), save(), and setLyrics().
|
private |
Definition at line 113 of file lyricsdata.h.
Referenced by clear(), customEvent(), findLyrics(), and loadLyrics().
Definition at line 119 of file lyricsdata.h.
Referenced by clear(), createLyricsXML(), loadLyrics(), and setLyrics().
|
private |
Definition at line 118 of file lyricsdata.h.
Referenced by clear(), createLyricsXML(), and loadLyrics().