Sayonara Player
src
Components
Lyrics
Lyrics.h
1
/* Lyrics.h */
2
3
/* Copyright (C) 2011-2020 Michael Lugmair (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
#ifndef LYRICS_H
22
#define LYRICS_H
23
24
#include "Utils/Pimpl.h"
25
26
#include <QObject>
27
28
namespace
Lyrics
29
{
30
class
Lyrics
:
31
public
QObject
32
{
33
Q_OBJECT
34
PIMPL(
Lyrics
)
35
36
signals:
37
void
sigLyricsFetched();
38
39
public
:
40
explicit
Lyrics
(QObject* parent =
nullptr
);
41
~Lyrics
();
42
43
QStringList servers()
const
;
44
void
setMetadata(
const
MetaData
& track);
45
bool
fetchLyrics(
const
QString& artist,
const
QString& title,
int
serverIndex);
46
bool
saveLyrics(
const
QString& plainText);
47
48
QString artist()
const
;
49
QString title()
const
;
50
QString lyricHeader()
const
;
51
QString localLyricHeader()
const
;
52
QString lyrics()
const
;
53
QString localLyrics()
const
;
54
55
bool
isLyricValid()
const
;
56
bool
isLyricTagAvailable()
const
;
57
bool
isLyricTagSupported()
const
;
58
59
private
slots:
60
void
lyricsFetched();
61
};
62
}
63
64
#endif
// LYRICS_H
Lyrics::Lyrics
Definition:
Lyrics.h:32
MetaData
The MetaData class.
Definition:
MetaData.h:47
Generated on Wed Aug 31 2022 00:00:00 for Sayonara Player by
1.9.4