KFileMetaData

properties.h
1/*
2 This file is part of KFileMetaData
3 SPDX-FileCopyrightText: 2014 Vishesh Handa <me@vhanda.in>
4
5 SPDX-License-Identifier: LGPL-2.1-or-later
6*/
7
8#ifndef KFILEMETADATA_PROPERTIES
9#define KFILEMETADATA_PROPERTIES
10
11#include "kfilemetadata_export.h"
12
13#include <QMap>
14#include <QVariant>
15
16namespace KFileMetaData {
17
18/**
19 * The Property namespace
20 */
21namespace Property {
22
23/**
24 * @brief The Property enum contains all files property types that KFileMetaData manipulates
25 */
27 Empty = 0,
28
29 /**
30 * The Bit Rate of the Audio in the File. Represented as an integer
31 * in kbit/sec
32 */
34
35 /**
36 * The number of channels of the Audio in the File. Represented as an
37 * integer.
38 */
40
41 /**
42 * The duration of the media in the file. Represented as an integer
43 * in seconds.
44 */
46
47 /**
48 * The Genre of an Audio file. This s represented as a string
49 * of genres and not integers. The IDv1 standard provides a list of
50 * commonly excepted genres.
51 */
53
54 /**
55 * The same rate or frequency of the Audio in the file. This is represented
56 * as an integer in Hz. So a file with "44.1KHz" will have a frequency
57 * of 44100
58 */
60
61 /**
62 * Represents the track number in a set. Typically maps to the "TRCK" tag
63 * in IDv3
64 */
66
67 /**
68 * Indicates the year a track was released. Represented as an integer.
69 * Typically mapped to the "TYE (Year)" tag in IDv1
70 */
72
73 /**
74 * Represents a comment stored in the file. This can map
75 * to e.g. the "COMM" field from IDv3
76 */
78
79 /**
80 * Represents the artist of a media file. This generally corresponds
81 * to the IDv1 ARTIST tag. Many extractors often split this string
82 * into a number of artists.
83 */
85
86 /**
87 * Represents the album of a media file. This generally corresponds
88 * to the IDv1 ALBUM tag.
89 */
91
92 /**
93 * Represents the album artist of a media file. This generally corresponds
94 * to the IDv3 TPE2 ("Band/Orchestra/Accompaniment") tag.
95 */
97
98 /**
99 * Represents the Composer of a media file. This generally corresponds
100 * to the IDv2 COMPOSER tag.
101 */
103
104 /**
105 * Represents the Lyricist of a media file. This generally corresponds
106 * to the IDv2 "Lyricist/text writer" tag.
107 */
109
110 /**
111 * The Author field indicated the primary creator of a document.
112 * This often corresponds directly to dc:creator
113 */
115
116 /**
117 * Refers to the Title of the content of the file. This can represented
118 * by the IDv1 tag TT2 (Title/songname/content description) or the TITLE
119 * in a PDF file or the 'dc:title' tag in DublinCore.
120 */
122
123 /**
124 * Refers to the subject of the file. This directly corresponds to the
125 * 'dc:subject' tag from DublinCore.
126 */
128
129 /**
130 * Refers to the Application used to create this file. In the ODF standard
131 * this maps to the 'meta:generator' tag. In PDFs its mapped to the
132 * "Producer" tag.
133 */
135
136 /**
137 * The number of pages in a document
138 */
140
141 /**
142 * The number of words in a document. This is often only provided for
143 * documents where the word count is available in the metadata.
144 */
146
147 /**
148 * The number of lines in a document. This is often only provided for
149 * documents where the line count is available in the metadata.
150 */
152
153 /**
154 * The language the document is written in. This directly maps to the
155 * 'dc:language' tag from DublinCore. We do NOT employ any language
156 * detection schemes on the text.
157 * @since 5.50
158 */
160
161 /**
162 * The copyright of the file. Represented as a string.
163 */
165
166 /**
167 * The publisher of the content. Represented as a string.
168 */
170
171 /**
172 * The date the content of the file was created. This is extracted
173 * from the File MetaData and not from the file system.
174 * In ODF, it corresponds to "meta:creation-date", in PDF to the
175 * "CreationDate" tag, and otherwise the "dcterms:created" tag.
176 */
178
179 /**
180 * The keywords used to represent the document. This is mostly a string list
181 * of all the keywords.
182 */
184
185 /**
186 * Represents the width of the Media in pixels. This is generally
187 * only applicable for Images and Videos.
188 */
190
191 /**
192 * Represents the height of the Media in pixels. This is generally
193 * only applicable for Images and Videos.
194 */
196
197 /**
198 * The Aspect Ratio of the visual image or video.
199 * It is the width of a pixel divided by the height of the pixel.
200 */
202
203 /**
204 * Number of frames per second
205 */
207
208 /**
209 * The manufacturer of the equipment used for generating the file
210 * and metadata. Typically maps to the 'Exif.Image.Make' tag.
211 * @since 5.60
212 */
214
215 /**
216 * The model name of the equipment used for generating the file
217 * and metadata. Typically maps to the 'Exif.Image.Model' tag.
218 * @since 5.60
219 */
221
222 ImageDateTime,
223 ImageOrientation,
224 PhotoFlash,
225 PhotoPixelXDimension,
226 PhotoPixelYDimension,
227 PhotoDateTimeOriginal,
228 PhotoFocalLength,
229 PhotoFocalLengthIn35mmFilm,
230 PhotoExposureTime,
231 PhotoFNumber,
232 PhotoApertureValue,
233 PhotoExposureBiasValue,
234 PhotoWhiteBalance,
235 PhotoMeteringMode,
236 PhotoISOSpeedRatings,
237 PhotoSaturation,
238 PhotoSharpness,
239 PhotoGpsLatitude,
240 PhotoGpsLongitude,
241 PhotoGpsAltitude,
242
243 TranslationUnitsTotal,
244 TranslationUnitsWithTranslation,
245 TranslationUnitsWithDraftTranslation,
246 TranslationLastAuthor,
247 TranslationLastUpDate,
248 TranslationTemplateDate,
249
250 /**
251 * The URL this file has originally been downloaded from.
252 */
254
255 /**
256 * The subject of the email this file was originally attached to.
257 */
259
260 /**
261 * The sender of the email this file was originally attached to.
262 */
264
265 /**
266 * The message ID of the email this file was originally attached to.
267 */
269
270 /**
271 * Represents the disc number in a multi-disc set. Typically maps to the "TPOS" tag for mp3
272 */
274
275 /**
276 * Represents the location where an audio file was recorded.
277 */
279
280 /**
281 * Represents the (lead) performer of an audio file.
282 */
284
285 /**
286 * Represents the ensemble of an audio file.
287 */
289
290 /**
291 * Represents the arranger of an audio file.
292 */
294
295 /**
296 * Represents the conductor of an audio file.
297 */
299
300 /**
301 * Represents the opus of an audio file mostly used for classical music.
302 */
304
305 /**
306 * Represents the label of the content.
307 */
309
310 /**
311 * Contains the name of the compilation of an audio file.
312 */
314
315 /**
316 * Contains the license information of the file
317 */
319
320 /**
321 * For ratings stored in Metadata tags
322 */
324 /**
325 * Contains the lyrics of a song embedded in the file
326 */
328 /**
329 * Contains ReplayGain information for audio files
330 */
332 /**
333 * Contains ReplayGain information for audio files
334 * The album gain is given in "dB"
335 */
337 /**
338 * Contains ReplayGain information for audio files
339 */
341 /**
342 * Contains ReplayGain information for audio files
343 * The track gain is given in "dB"
344 */
346
347 /**
348 * Represents the description stored in the file. This maps
349 * to the 'dc:description' tag from DublinCore
350 */
352};
353
354} // namespace Property
355
356using PropertyMultiMap = QMultiMap<Property::Property, QVariant>;
357
358} // namespace KFileMetaData
359
360Q_DECLARE_METATYPE(KFileMetaData::Property::Property)
361Q_DECLARE_METATYPE(KFileMetaData::PropertyMultiMap)
362
363#endif
Property
The Property enum contains all files property types that KFileMetaData manipulates.
Definition properties.h:26
@ Album
Represents the album of a media file.
Definition properties.h:90
@ Width
Represents the width of the Media in pixels.
Definition properties.h:189
@ Opus
Represents the opus of an audio file mostly used for classical music.
Definition properties.h:303
@ TrackNumber
Represents the track number in a set.
Definition properties.h:65
@ Lyrics
Contains the lyrics of a song embedded in the file.
Definition properties.h:327
@ WordCount
The number of words in a document.
Definition properties.h:145
@ Subject
Refers to the subject of the file.
Definition properties.h:127
@ Title
Refers to the Title of the content of the file.
Definition properties.h:121
@ FrameRate
Number of frames per second.
Definition properties.h:206
@ Author
The Author field indicated the primary creator of a document.
Definition properties.h:114
@ Genre
The Genre of an Audio file.
Definition properties.h:52
@ Rating
For ratings stored in Metadata tags.
Definition properties.h:323
@ Height
Represents the height of the Media in pixels.
Definition properties.h:195
@ Composer
Represents the Composer of a media file.
Definition properties.h:102
@ AspectRatio
The Aspect Ratio of the visual image or video.
Definition properties.h:201
@ AlbumArtist
Represents the album artist of a media file.
Definition properties.h:96
@ Comment
Represents a comment stored in the file.
Definition properties.h:77
@ Description
Represents the description stored in the file.
Definition properties.h:351
@ OriginEmailSender
The sender of the email this file was originally attached to.
Definition properties.h:263
@ Channels
The number of channels of the Audio in the File.
Definition properties.h:39
@ Generator
Refers to the Application used to create this file.
Definition properties.h:134
@ PageCount
The number of pages in a document.
Definition properties.h:139
@ CreationDate
The date the content of the file was created.
Definition properties.h:177
@ OriginUrl
The URL this file has originally been downloaded from.
Definition properties.h:253
@ License
Contains the license information of the file.
Definition properties.h:318
@ BitRate
The Bit Rate of the Audio in the File.
Definition properties.h:33
@ OriginEmailSubject
The subject of the email this file was originally attached to.
Definition properties.h:258
@ LineCount
The number of lines in a document.
Definition properties.h:151
@ Conductor
Represents the conductor of an audio file.
Definition properties.h:298
@ Ensemble
Represents the ensemble of an audio file.
Definition properties.h:288
@ Publisher
The publisher of the content.
Definition properties.h:169
@ Label
Represents the label of the content.
Definition properties.h:308
@ Language
The language the document is written in.
Definition properties.h:159
@ OriginEmailMessageId
The message ID of the email this file was originally attached to.
Definition properties.h:268
@ Arranger
Represents the arranger of an audio file.
Definition properties.h:293
@ ReplayGainTrackGain
Contains ReplayGain information for audio files The track gain is given in "dB".
Definition properties.h:345
@ Location
Represents the location where an audio file was recorded.
Definition properties.h:278
@ Lyricist
Represents the Lyricist of a media file.
Definition properties.h:108
@ Artist
Represents the artist of a media file.
Definition properties.h:84
@ SampleRate
The same rate or frequency of the Audio in the file.
Definition properties.h:59
@ Copyright
The copyright of the file.
Definition properties.h:164
@ ReplayGainAlbumGain
Contains ReplayGain information for audio files The album gain is given in "dB".
Definition properties.h:336
@ ReplayGainTrackPeak
Contains ReplayGain information for audio files.
Definition properties.h:340
@ Keywords
The keywords used to represent the document.
Definition properties.h:183
@ Performer
Represents the (lead) performer of an audio file.
Definition properties.h:283
@ DiscNumber
Represents the disc number in a multi-disc set.
Definition properties.h:273
@ Duration
The duration of the media in the file.
Definition properties.h:45
@ Model
The model name of the equipment used for generating the file and metadata.
Definition properties.h:220
@ Compilation
Contains the name of the compilation of an audio file.
Definition properties.h:313
@ ReleaseYear
Indicates the year a track was released.
Definition properties.h:71
@ ReplayGainAlbumPeak
Contains ReplayGain information for audio files.
Definition properties.h:331
@ Manufacturer
The manufacturer of the equipment used for generating the file and metadata.
Definition properties.h:213
The KFileMetaData namespace.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:59:41 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.