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 () | |
LyricsData (MusicMetadata *parent) | |
LyricsData (MusicMetadata *parent, const QString &grabber, const QString &artist, const QString &album, const QString &title, bool syncronized) | |
~LyricsData () | |
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) |
QMap< int, LyricsLine * > * | lyrics (void) |
void | setLyrics (const QStringList &lyrics) |
bool | syncronized (void) |
void | setSyncronized (bool syncronized) |
bool | changed (void) |
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 | |
QMap< int, LyricsLine * > | 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} |
Definition at line 48 of file lyricsdata.h.
enum LyricsData::Status |
Enumerator | |
---|---|
STATUS_NOTLOADED | |
STATUS_SEARCHING | |
STATUS_FOUND | |
STATUS_NOTFOUND |
Definition at line 83 of file lyricsdata.h.
LyricsData::LyricsData | ( | ) |
|
inlineexplicit |
Definition at line 54 of file lyricsdata.h.
|
inline |
Definition at line 56 of file lyricsdata.h.
LyricsData::~LyricsData | ( | ) |
Definition at line 22 of file lyricsdata.cpp.
|
inline |
Definition at line 62 of file lyricsdata.h.
Referenced by EditLyricsDialog::Create(), createLyricsXML(), findLyrics(), LyricsView::showLyrics(), and EditLyricsDialog::somethingChanged().
|
inline |
Definition at line 63 of file lyricsdata.h.
Referenced by EditLyricsDialog::okPressed().
|
inline |
Definition at line 65 of file lyricsdata.h.
Referenced by EditLyricsDialog::Create(), createLyricsXML(), findLyrics(), 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::loadLyrics(), loadLyrics(), setLyrics(), LyricsView::showLyrics(), LyricsView::ShowMenu(), and EditLyricsDialog::somethingChanged().
void LyricsData::setLyrics | ( | const QStringList & | lyrics | ) |
Definition at line 310 of file lyricsdata.cpp.
Referenced by loadLyrics(), and EditLyricsDialog::okPressed().
|
inline |
Definition at line 77 of file lyricsdata.h.
Referenced by EditLyricsDialog::Create(), createLyricsXML(), LyricsView::showLyrics(), and EditLyricsDialog::somethingChanged().
|
inline |
Definition at line 78 of file lyricsdata.h.
Referenced by EditLyricsDialog::okPressed(), and LyricsView::setLyricTime().
|
inline |
Definition at line 80 of file lyricsdata.h.
Referenced by LyricsView::findLyrics(), and LyricsView::ShowMenu().
|
inline |
Definition at line 81 of file lyricsdata.h.
Referenced by EditLyricsDialog::okPressed(), and LyricsView::setLyricTime().
|
inline |
Definition at line 91 of file lyricsdata.h.
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().
void LyricsData::findLyrics | ( | const QString & | grabber | ) |
Definition at line 50 of file lyricsdata.cpp.
Referenced by LyricsView::findLyrics(), and darklyrics.LyricsFetcher::get_lyrics_from_list().
void LyricsData::save | ( | void | ) |
Definition at line 115 of file lyricsdata.cpp.
Referenced by LyricsView::findLyrics(), EditLyricsDialog::okPressed(), and LyricsView::saveLyrics().
|
override |
Definition at line 182 of file lyricsdata.cpp.
|
signal |
Referenced by customEvent(), and findLyrics().
|
private |
Definition at line 229 of file lyricsdata.cpp.
Referenced by customEvent().
|
private |
Definition at line 136 of file lyricsdata.cpp.
Referenced by save().
|
private |
Definition at line 107 of file lyricsdata.h.
Referenced by clearLyrics(), createLyricsXML(), and setLyrics().
|
private |
Definition at line 109 of file lyricsdata.h.
Referenced by customEvent(), findLyrics(), save(), and setLyrics().
|
private |
Definition at line 111 of file lyricsdata.h.
Referenced by clear(), customEvent(), findLyrics(), and loadLyrics().
|
private |
Definition at line 113 of file lyricsdata.h.
Referenced by clear(), createLyricsXML(), and loadLyrics().
|
private |
Definition at line 114 of file lyricsdata.h.
Referenced by clear(), createLyricsXML(), and loadLyrics().
|
private |
Definition at line 115 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 117 of file lyricsdata.h.
Referenced by clear(), createLyricsXML(), loadLyrics(), and setLyrics().
Definition at line 118 of file lyricsdata.h.
Referenced by clear(), loadLyrics(), and save().