Sayonara Player
ColumnIndex.h
1 /* ColumnIndex.h */
2 
3 /* Copyright (C) 2011-2020 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 LIBRARYVIEWCOLUMNS_H
22 #define LIBRARYVIEWCOLUMNS_H
23 
24 #define COL_ALBUM_MACROS
25 #define COL_ARTIST_MACROS
26 
27 #include <cstdint>
28 class QString;
29 
30 namespace ColumnIndex
31 {
32  using IntegerType=uint8_t;
33 
34  enum class Album : IntegerType
35  {
36  MultiDisc=0,
37  Name,
38  Duration,
39  //AlbumArtist,
40  NumSongs,
41  Year,
42  Rating
43  };
44 
45  enum class Artist : IntegerType
46  {
47  //Undefined=0,
48  Name=0,
49  Tracks
50  };
51 
52  enum class Track : IntegerType
53  {
54  TrackNumber=0,
55  Title,
56  Artist,
57  Album,
58  Discnumber,
59  Year,
60  Length,
61  Bitrate,
62  Filesize,
63  Filetype,
64  AddedDate,
65  ModifiedDate,
66  Rating
67  };
68 }
69 
70 #endif // LIBRARYVIEWCOLUMNS_H
Album
The Album class.
Definition: Album.h:41
Artist
The Artist class.
Definition: Artist.h:38