MythTV
master
|
#include <lyricsdata.h>
Public Types | |
enum | Status { 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 48 of file lyricsdata.h.
enum LyricsData::Status |
Enumerator | |
---|---|
STATUS_NOTLOADED | |
STATUS_SEARCHING | |
STATUS_FOUND | |
STATUS_NOTFOUND |
Definition at line 86 of file lyricsdata.h.
|
default |
|
inlineexplicit |
Definition at line 56 of file lyricsdata.h.
|
inline |
Definition at line 58 of file lyricsdata.h.
|
override |
Definition at line 25 of file lyricsdata.cpp.
|
inline |
Definition at line 65 of file lyricsdata.h.
Referenced by EditLyricsDialog::Create(), createLyricsXML(), findLyrics(), LyricsView::showLyrics(), and EditLyricsDialog::somethingChanged().
|
inline |
Definition at line 66 of file lyricsdata.h.
Referenced by EditLyricsDialog::okPressed().
|
inline |
Definition at line 68 of file lyricsdata.h.
Referenced by EditLyricsDialog::Create(), createLyricsXML(), findLyrics(), and EditLyricsDialog::somethingChanged().
|
inline |
Definition at line 69 of file lyricsdata.h.
Referenced by EditLyricsDialog::okPressed().
|
inline |
Definition at line 71 of file lyricsdata.h.
Referenced by EditLyricsDialog::Create(), createLyricsXML(), findLyrics(), and EditLyricsDialog::somethingChanged().
|
inline |
Definition at line 72 of file lyricsdata.h.
Referenced by EditLyricsDialog::okPressed().
|
inline |
Definition at line 74 of file lyricsdata.h.
Referenced by EditLyricsDialog::Create(), createLyricsXML(), findLyrics(), and EditLyricsDialog::somethingChanged().
|
inline |
Definition at line 75 of file lyricsdata.h.
Referenced by EditLyricsDialog::okPressed().
|
inline |
Definition at line 77 of file lyricsdata.h.
Referenced by EditLyricsDialog::loadLyrics(), loadLyrics(), setLyrics(), LyricsView::showLyrics(), LyricsView::ShowMenu(), and EditLyricsDialog::somethingChanged().
void LyricsData::setLyrics | ( | const QStringList & | lyrics | ) |
Definition at line 302 of file lyricsdata.cpp.
Referenced by loadLyrics(), and EditLyricsDialog::okPressed().
|
inline |
Definition at line 80 of file lyricsdata.h.
Referenced by EditLyricsDialog::Create(), createLyricsXML(), LyricsView::showLyrics(), and EditLyricsDialog::somethingChanged().
|
inline |
Definition at line 81 of file lyricsdata.h.
Referenced by EditLyricsDialog::okPressed(), and LyricsView::setLyricTime().
|
inline |
Definition at line 83 of file lyricsdata.h.
Referenced by LyricsView::findLyrics(), and LyricsView::ShowMenu().
|
inline |
Definition at line 84 of file lyricsdata.h.
Referenced by EditLyricsDialog::okPressed(), and LyricsView::setLyricTime().
|
inline |
Definition at line 94 of file lyricsdata.h.
void LyricsData::clear | ( | void | ) |
Definition at line 30 of file lyricsdata.cpp.
Referenced by LyricsView::customEvent(), findLyrics(), and ~LyricsData().
void LyricsData::clearLyrics | ( | void | ) |
Definition at line 41 of file lyricsdata.cpp.
Referenced by clear(), loadLyrics(), and setLyrics().
void LyricsData::findLyrics | ( | const QString & | grabber | ) |
Definition at line 53 of file lyricsdata.cpp.
Referenced by LyricsView::findLyrics(), and darklyrics.LyricsFetcher::get_lyrics_from_list().
void LyricsData::save | ( | void | ) |
Definition at line 120 of file lyricsdata.cpp.
Referenced by LyricsView::findLyrics(), EditLyricsDialog::okPressed(), and LyricsView::saveLyrics().
|
override |
Definition at line 187 of file lyricsdata.cpp.
|
signal |
Referenced by customEvent(), LyricsView::findLyrics(), and findLyrics().
|
private |
Definition at line 234 of file lyricsdata.cpp.
Referenced by customEvent().
|
private |
Definition at line 141 of file lyricsdata.cpp.
Referenced by save().
|
friend |
Definition at line 52 of file lyricsdata.h.
|
private |
Definition at line 110 of file lyricsdata.h.
Referenced by clearLyrics(), createLyricsXML(), and setLyrics().
|
private |
Definition at line 112 of file lyricsdata.h.
Referenced by customEvent(), findLyrics(), save(), and setLyrics().
|
private |
Definition at line 114 of file lyricsdata.h.
Referenced by clear(), customEvent(), findLyrics(), and loadLyrics().
|
private |
Definition at line 116 of file lyricsdata.h.
Referenced by clear(), createLyricsXML(), and loadLyrics().
|
private |
Definition at line 117 of file lyricsdata.h.
Referenced by clear(), createLyricsXML(), and loadLyrics().
|
private |
Definition at line 118 of file lyricsdata.h.
Referenced by clear(), createLyricsXML(), and loadLyrics().
|
private |
Definition at line 119 of file lyricsdata.h.
Referenced by clear(), createLyricsXML(), and loadLyrics().
Definition at line 120 of file lyricsdata.h.
Referenced by clear(), createLyricsXML(), loadLyrics(), and setLyrics().
Definition at line 121 of file lyricsdata.h.
Referenced by clear(), loadLyrics(), and save().