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 
29 class QString;
30 
31 namespace ColumnIndex
32 {
33  using IntegerType = uint8_t;
34 
35  enum class Album : IntegerType
36  {
37  MultiDisc = 0,
38  Name,
39  Duration,
40  //AlbumArtist,
41  NumSongs,
42  Year,
43  Rating
44  };
45 
46  enum class Artist : IntegerType
47  {
48  //Undefined=0,
49  Name = 0,
50  Tracks
51  };
52 
53  enum class Track : IntegerType
54  {
55  TrackNumber = 0,
56  Title,
57  Artist,
58  Album,
59  Discnumber,
60  Year,
61  Length,
62  Bitrate,
63  Filesize,
64  Filetype,
65  AddedDate,
66  ModifiedDate,
67  Rating
68  };
69 }
70 
71 #endif // LIBRARYVIEWCOLUMNS_H
Album
The Album class.
Definition: Album.h:41
Artist
The Artist class.
Definition: Artist.h:38