Sayonara Player
Main Page
Modules
Namespaces
Classes
src
Helper
MetaData
Album.h
1
/* Album.h */
2
3
/* Copyright (C) 2011-2016 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 _ALBUM_H_
24
#define _ALBUM_H_
25
26
#include "Helper/MetaData/LibraryItem.h"
27
28
#include <QStringList>
29
#include <QVariant>
30
#include <QMetaType>
31
32
class
Album
;
33
34
Q_DECLARE_METATYPE(
Album
)
35
36
40
class
Album
: public
LibraryItem
{
41
42
public
:
43
QString name;
44
qint32 id;
45
quint16 num_songs;
46
quint32 length_sec;
47
quint16 year;
48
QStringList artists;
49
QList<quint8>
discnumbers;
50
quint8 n_discs;
51
quint8 rating;
52
//QString mb_id;
53
54
bool
is_sampler;
55
56
Album
();
57
Album
(
const
Album
& other);
58
Album
(
Album
&& other);
59
Album
& operator=(
const
Album
& other);
60
virtual
~
Album
();
61
62
static
QVariant toVariant(
const
Album
& album);
63
static
bool
fromVariant(
const
QVariant& v,
Album
& album);
64
void
print()
const
;
65
};
66
67
72
class
AlbumList
:
public
QList
<Album> {
73
74
public
:
75
bool
contains(qint32 album_id)
const
;
76
};
77
78
#endif
79
80
LibraryItem
The LibraryItem class.
Definition:
LibraryItem.h:59
AlbumList
The AlbumList class.
Definition:
Album.h:72
Album
The Album class.
Definition:
Album.h:40
QList< quint8 >
Generated on Tue Oct 18 2016 23:34:41 for Sayonara Player by
1.8.11