KFileMetaData

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

KDE's Doxygen guidelines are available online.