Sayonara Player
src
Utils
typedefs.h
1
/* typedefs.h */
2
3
/* Copyright (C) 2011-2019 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 TYPEDEFS_H
22
#define TYPEDEFS_H
23
24
#include <cstdint>
25
#include "Utils/SetFwd.h"
26
#include "Utils/MetaData/MetaDataFwd.h"
27
#include <QMetaType>
28
29
class
QByteArray;
30
class
QString;
31
class
QStringList;
32
template
<
typename
A,
typename
B>
struct
QPair
;
33
template
<
typename
A,
typename
B>
class
QMap
;
34
template
<
typename
T>
class
QList
;
35
40
using
StringPair
=
QPair<QString, QString>
;
41
using
IntList
=
QList<int>
;
42
using
IdList
=
QList<int>
;
43
using
IdxList
=
QList<int>
;
44
using
BoolList
=
QList<bool>
;
45
using
Id=int32_t;
46
using
ArtistId=Id;
47
using
AlbumId=Id;
48
using
TrackID=Id;
49
using
IntSet
=
Util::Set<int>
;
50
using
IndexSet
=
Util::Set<int>
;
51
using
IdSet
=
Util::Set<Id>
;
52
using
LibraryId=int8_t;
53
using
DbId=uint8_t;
54
using
Byte=uint8_t;
55
using
Disc=uint8_t;
56
using
Seconds=int32_t;
57
using
MilliSeconds=int64_t;
58
using
MicroSeconds=int64_t;
59
using
NanoSeconds=int64_t;
60
using
Bitrate=uint32_t;
61
using
Filesize=uint64_t;
62
63
template
<
typename
K,
typename
V>
64
using
PairList
=
QList<QPair<K,V>
>;
65
66
enum class
Rating : uint8_t
67
{
68
Zero=0,
69
One=1,
70
Two=2,
71
Three=3,
72
Four=4,
73
Five=5,
74
Last=6
75
};
76
77
78
Q_DECLARE_METATYPE(Rating)
79
80
#endif
QPair
Definition:
typedefs.h:32
Util::Set
A set structure. Inherited from std::set with some useful methods. For integer and String this set is...
Definition:
Set.h:35
QList
Definition:
EngineUtils.h:33
QMap
Definition:
org_mpris_media_player2_adaptor.h:21
Generated on Thu Jan 30 2020 00:00:00 for Sayonara Player by
1.8.17