Sayonara Player
src
Components
Lyrics
LyricServer.h
1
/* LyricServer.h */
2
3
/* Copyright (C) 2012 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 LYRICSERVER_H_
22
#define LYRICSERVER_H_
23
24
#include <QString>
25
#include <QMap>
26
27
32
struct
ServerTemplate
33
{
34
QString display_str;
35
QString server_address;
36
QMap<QString, QString>
replacements;
37
QString call_policy;
38
QMap<QString, QString>
start_end_tag;
39
bool
include_start_tag;
40
bool
include_end_tag;
41
bool
is_numeric;
42
bool
to_lower;
43
QString error;
44
45
void
addReplacement(
const
QString& rep,
const
QString& rep_with);
46
void
print_xml()
const
;
47
void
print_json()
const
;
48
};
49
50
#endif
/* LYRICSERVER_H_ */
ServerTemplate
The ServerTemplate struct.
Definition:
LyricServer.h:32
QMap< QString, QString >
Generated on Mon Sep 10 2018 12:32:55 for Sayonara Player by
1.8.13