Sayonara Player
Toggle main menu visibility
Loading...
Searching...
No Matches
src
Utils
typedefs.h
1
/* typedefs.h */
2
3
/* Copyright (C) 2011-2024 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 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>
33
struct
QPair
;
34
template
<
typename
A,
typename
B>
35
class
QMap
;
36
template
<
typename
T>
37
class
QList
;
38
43
using
StringPair
=
QPair<QString, QString>
;
44
using
IntList =
QList<int>
;
45
using
IdList =
QList<int>
;
46
using
IdxList =
QList<int>
;
47
using
BoolList =
QList<bool>
;
48
using
Id = int32_t;
49
using
ArtistId = Id;
50
using
AlbumId = Id;
51
using
TrackID = Id;
52
using
IntSet =
Util::Set<int>
;
53
using
IndexSet =
Util::Set<int>
;
54
using
IdSet =
Util::Set<Id>
;
55
using
LibraryId = int8_t;
56
using
DbId = uint8_t;
57
using
Byte = uint8_t;
58
using
Disc = uint8_t;
59
using
TrackNum = uint16_t;
60
using
Year = uint16_t;
61
using
Seconds = int32_t;
62
using
MilliSeconds = int64_t;
63
using
MicroSeconds = int64_t;
64
using
NanoSeconds = int64_t;
65
using
Bitrate = uint32_t;
66
using
Filesize = uint64_t;
67
68
template
<
typename
K,
typename
V>
69
using
PairList =
QList<QPair<K, V>
>;
70
71
enum class
Rating :
72
uint8_t
73
{
74
Zero = 0,
75
One = 1,
76
Two = 2,
77
Three = 3,
78
Four = 4,
79
Five = 5,
80
Last = 6
81
};
82
83
enum class
PlayState :
84
unsigned
char
85
{
86
Playing = 0,
87
Paused,
88
Stopped,
89
FirstStartup
90
};
91
92
Q_DECLARE_METATYPE(Rating)
93
94
#endif
QList
Definition
EngineUtils.h:33
QMap
Definition
org_mpris_media_player2_adaptor.h:21
Util::Set
A set structure. Inherited from std::set with some useful methods. For integer and String this set is...
Definition
Set.h:37
StringPair
QPair< QString, QString > StringPair
Sayonara Typedefs.
Definition
typedefs.h:43
QPair
Definition
typedefs.h:33
Generated on
for Sayonara Player by
1.17.0