Songbook-Client
0.7
This application is a manager of customguitar songbooks
Main Page
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Enumerations
Enumerator
Pages
src
song.hh
Go to the documentation of this file.
1
// Copyright (C) 2009-2011, Romain Goffe <romain.goffe@gmail.com>
2
// Copyright (C) 2009-2011, Alexandre Dupas <alexandre.dupas@gmail.com>
3
//
4
// This program is free software; you can redistribute it and/or
5
// modify it under the terms of the GNU General Public License as
6
// published by the Free Software Foundation; either version 2 of the
7
// License, or (at your option) any later version.
8
//
9
// This program is distributed in the hope that it will be useful, but
10
// WITHOUT ANY WARRANTY; without even the implied warranty of
11
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
// General Public License for more details.
13
//
14
// You should have received a copy of the GNU General Public License
15
// along with this program; if not, write to the Free Software
16
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17
// 02110-1301, USA.
18
//******************************************************************************
19
#ifndef __SONG_HH__
20
#define __SONG_HH__
21
22
#include <QString>
23
#include <QStringList>
24
#include <QLocale>
25
34
struct
Song
35
{
36
QString
title
;
37
QString
artist
;
38
QString
album
;
39
QString
originalSong
;
40
QString
url
;
41
QString
coverName
;
42
QString
coverPath
;
43
QString
path
;
44
QLocale
locale
;
45
bool
isLilypond
;
46
int
columnCount
;
47
int
capo
;
48
int
transpose
;
49
QStringList
gtabs
;
50
QStringList
utabs
;
51
QStringList
lyrics
;
52
QStringList
scripture
;
58
static
Song
fromFile
(
const
QString &
path
);
59
64
static
Song
fromString
(
const
QString &text,
const
QString &
path
= QString());
65
70
static
QString
toString
(
const
Song
&song);
71
78
static
QLocale::Language
languageFromString
(
const
QString &languageName = QString());
79
85
static
QString
languageToString
(
const
QLocale::Language language);
86
92
static
QString
latexToUtf8
(
const
QString & str);
93
99
static
QString
utf8ToLatex
(
const
QString & str);
100
110
static
QRegExp
reSgFile
;
111
115
static
QRegExp
reArtist
;
116
120
static
QRegExp
reAlbum
;
121
125
static
QRegExp
reOriginalSong
;
126
130
static
QRegExp
reUrl
;
131
135
static
QRegExp
reCoverName
;
136
140
static
QRegExp
reLilypond
;
141
145
static
QRegExp
reLanguage
;
146
150
static
QRegExp
reColumnCount
;
151
155
static
QRegExp
reCapo
;
156
160
static
QRegExp
reTranspose
;
161
165
static
QRegExp
reCover
;
166
170
static
QRegExp
reBlankLine
;
171
175
static
QRegExp
reGtab
;
176
180
static
QRegExp
reUtab
;
181
185
static
QRegExp
reBegin
;
186
190
static
QRegExp
reEnd
;
191
195
static
QRegExp
reBeginVerse
;
196
200
static
QRegExp
reEndVerse
;
201
205
static
QRegExp
reBeginBridge
;
206
210
static
QRegExp
reEndBridge
;
211
215
static
QRegExp
reBeginChorus
;
216
220
static
QRegExp
reEndChorus
;
221
225
static
QRegExp
reBeginScripture
;
226
230
static
QRegExp
reEndScripture
;
231
};
232
233
#endif // __SONG_HH__
Generated on Fri Jul 20 2012 20:46:38 for Songbook-Client by
1.8.1.1