Changeset View
Changeset View
Standalone View
Standalone View
src/databaseinterface.h
Show First 20 Lines • Show All 79 Lines • ▼ Show 20 Line(s) | 49 | enum ColumnsRoles { | |||
---|---|---|---|---|---|
80 | AlbumIdRole, | 80 | AlbumIdRole, | ||
81 | HasEmbeddedCover, | 81 | HasEmbeddedCover, | ||
82 | FileModificationTime, | 82 | FileModificationTime, | ||
83 | FirstPlayDate, | 83 | FirstPlayDate, | ||
84 | LastPlayDate, | 84 | LastPlayDate, | ||
85 | PlayCounter, | 85 | PlayCounter, | ||
86 | PlayFrequency, | 86 | PlayFrequency, | ||
87 | ElementTypeRole, | 87 | ElementTypeRole, | ||
88 | LyricsRole, | ||||
88 | }; | 89 | }; | ||
89 | 90 | | |||
90 | Q_ENUM(ColumnsRoles) | 91 | Q_ENUM(ColumnsRoles) | ||
91 | 92 | | |||
92 | private: | 93 | private: | ||
93 | 94 | | |||
94 | using DataType = QMap<ColumnsRoles, QVariant>; | 95 | using DataType = QMap<ColumnsRoles, QVariant>; | ||
95 | 96 | | |||
▲ Show 20 Lines • Show All 85 Lines • ▼ Show 20 Line(s) | 181 | { | |||
181 | return operator[](key_type::ComposerRole).toString(); | 182 | return operator[](key_type::ComposerRole).toString(); | ||
182 | } | 183 | } | ||
183 | 184 | | |||
184 | QString lyricist() const | 185 | QString lyricist() const | ||
185 | { | 186 | { | ||
186 | return operator[](key_type::LyricistRole).toString(); | 187 | return operator[](key_type::LyricistRole).toString(); | ||
187 | } | 188 | } | ||
188 | 189 | | |||
190 | QString lyrics() const | ||||
191 | { | ||||
192 | return operator[](key_type::LyricsRole).toString(); | ||||
193 | } | ||||
194 | | ||||
189 | QString comment() const | 195 | QString comment() const | ||
190 | { | 196 | { | ||
191 | return operator[](key_type::CommentRole).toString(); | 197 | return operator[](key_type::CommentRole).toString(); | ||
192 | } | 198 | } | ||
193 | 199 | | |||
194 | int year() const | 200 | int year() const | ||
195 | { | 201 | { | ||
196 | return operator[](key_type::YearRole).toInt(); | 202 | return operator[](key_type::YearRole).toInt(); | ||
▲ Show 20 Lines • Show All 388 Lines • Show Last 20 Lines |