Sayonara Player
src
Components
Lyrics
Lyrics.h
1
/* Lyrics.h */
2
3
/* Copyright (C) 2011-2017 Lucio Carreras
4
*
5
* This file is part of sayonara player
6
*
7
* This program is free software: you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation, either version 3 of the License, or
10
* (at your option) any later version.
11
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
17
* You should have received a copy of the GNU General Public License
18
* along with this program. If not, see <http://www.gnu.org/licenses/>.
19
*/
20
21
22
23
#ifndef LYRICS_H
24
#define LYRICS_H
25
26
#include "Utils/Pimpl.h"
27
28
#include <QObject>
29
30
class
QString;
31
class
QStringList;
32
class
MetaData
;
33
34
class
Lyrics
:
35
public
QObject
36
{
37
Q_OBJECT
38
PIMPL(
Lyrics
)
39
40
signals:
41
void
sig_lyrics_fetched();
42
43
public
:
44
explicit
Lyrics
(QObject* parent=
nullptr
);
45
~
Lyrics
();
46
47
QStringList servers()
const
;
48
void
set_metadata(
const
MetaData
& md);
49
bool
fetch_lyrics(
const
QString& artist,
const
QString& title,
int
server_index);
50
bool
save_lyrics(
const
QString& plain_text);
51
52
QString artist()
const
;
53
QString title()
const
;
54
QString lyric_header()
const
;
55
QString local_lyric_header()
const
;
56
QString lyrics()
const
;
57
QString local_lyrics()
const
;
58
59
bool
is_lyric_valid()
const
;
60
bool
is_lyric_tag_available()
const
;
61
bool
is_lyric_tag_supported()
const
;
62
63
private
slots:
64
void
lyrics_fetched();
65
66
67
};
68
69
#endif // LYRICS_H
MetaData
The MetaData class.
Definition:
MetaData.h:48
Lyrics
Definition:
Lyrics.h:34
Generated on Sat Feb 2 2019 22:25:20 for Sayonara Player by
1.8.15