Sayonara Player
typedefs.h
1 /* typedefs.h */
2 
3 /* Copyright (C) 2011-2017 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 <vector>
26 
27 class QString;
28 template <typename A, typename B> struct QPair;
29 template <typename T> class QList;
30 namespace SP
31 {
32  template <typename T> class Set;
33 }
34 
40 using IntList=QList<int>;
41 using IdList=QList<int>;
42 using IdxList=QList<int> ;
43 using BoolList=std::vector<bool> ;
44 using ArtistId=int32_t;
45 using AlbumId=int32_t;
46 using TrackID=int32_t;
47 using Id=int32_t;
48 using IntSet=SP::Set<int>;
50 using IdSet=SP::Set<Id>;
51 using LibraryId=int8_t;
52 using DbId=uint8_t;
53 using Byte=uint8_t;
54 using Disc=uint8_t;
55 using Rating=uint8_t;
56 
57 #endif
Definition: AbstractPlaylist.h:33
Set namespace defines the setting: Which key and which type.
Definition: SettingKey.h:216
Definition: typedefs.h:28
A set structure. Inherited from std::set with some useful methods. For integer and String this set is...
Definition: AbstractPlaylist.h:36
Definition: org_mpris_media_player2_adaptor.h:20