KFileMetaData

properties.h
Go to the documentation of this file.
1 /*
2  This file is part of KFileMetaData
3  SPDX-FileCopyrightText: 2014 Vishesh Handa <[email protected]>
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 
17 namespace KFileMetaData {
18 namespace Property {
19 
25 enum Property {
26  FirstProperty = 0,
27  Empty = 0,
28 
34 
40 
46 
53 
60 
66 
72 
78 
85 
91 
97 
103 
109 
115 
122 
128 
134  Generator,
135 
140 
146 
152 
160 
161 #if KFILEMETADATA_ENABLE_DEPRECATED_SINCE(5, 50)
162 
167 #endif
168 
173 
178 
186 
192 
198 
204 
210 
215 
222 
223 #if KFILEMETADATA_ENABLE_DEPRECATED_SINCE(5, 60)
224 
229 #endif
230 
237 
238 #if KFILEMETADATA_ENABLE_DEPRECATED_SINCE(5, 60)
239 
244 #endif
245 
246  ImageDateTime,
247  ImageOrientation,
248  PhotoFlash,
249  PhotoPixelXDimension,
250  PhotoPixelYDimension,
251  PhotoDateTimeOriginal,
252  PhotoFocalLength,
253  PhotoFocalLengthIn35mmFilm,
254  PhotoExposureTime,
255  PhotoFNumber,
256  PhotoApertureValue,
257  PhotoExposureBiasValue,
258  PhotoWhiteBalance,
259  PhotoMeteringMode,
260  PhotoISOSpeedRatings,
261  PhotoSaturation,
262  PhotoSharpness,
263  PhotoGpsLatitude,
264  PhotoGpsLongitude,
265  PhotoGpsAltitude,
266 
267  TranslationUnitsTotal,
268  TranslationUnitsWithTranslation,
269  TranslationUnitsWithDraftTranslation,
270  TranslationLastAuthor,
271  TranslationLastUpDate,
272  TranslationTemplateDate,
273 
278 
283 
288 
293 
298 
302  Location,
303 
308 
313 
318 
323 
328 
333 
338 
343 
370 
376 
377  PropertyCount,
378  LastProperty = PropertyCount-1,
379 
380 };
381 
382 } // namespace Property
383 
385 
386 inline QVariantMap toVariantMap(const PropertyMap& propMap) {
387  QVariantMap varMap;
389  for (; it != propMap.constEnd(); ++it) {
390  int p = static_cast<int>(it.key());
391  varMap.insertMulti(QString::number(p), it.value());
392  }
393 
394  return varMap;
395 }
396 
397 inline PropertyMap toPropertyMap(const QVariantMap& varMap) {
398  PropertyMap propMap;
399  QVariantMap::const_iterator it = varMap.constBegin();
400  for (; it != varMap.constEnd(); ++it) {
401  int p = it.key().toInt();
402  propMap.insertMulti(static_cast<Property::Property>(p), it.value());
403  }
404 
405  return propMap;
406 }
407 
408 } // namespace KFileMetaData
409 
410 Q_DECLARE_METATYPE(KFileMetaData::Property::Property)
411 
412 #endif
Number of frames per second.
Definition: properties.h:214
The keywords used to represent the document.
Definition: properties.h:191
The sender of the email this file was originally attached to.
Definition: properties.h:287
Represents the opus of an audio file mostly used for classical music.
Definition: properties.h:327
Represents the (lead) performer of an audio file.
Definition: properties.h:307
Represents the Composer of a media file.
Definition: properties.h:102
Represents the artist of a media file.
Definition: properties.h:84
Refers to the subject of the file.
Definition: properties.h:127
For ratings stored in Metadata tags.
Definition: properties.h:347
The same rate or frequency of the Audio in the file.
Definition: properties.h:59
QMap::const_iterator constBegin() const const
The date the content of the file was created.
Definition: properties.h:185
Represents the ensemble of an audio file.
Definition: properties.h:312
Contains the license information of the file.
Definition: properties.h:342
The URL this file has originally been downloaded from.
Definition: properties.h:277
QMap::iterator insertMulti(const Key &key, const T &value)
The model name of the equipment used for generating the file and metadata.
Definition: properties.h:236
Represents the Lyricist of a media file.
Definition: properties.h:108
The publisher of the content.
Definition: properties.h:177
The manufacturer of the equipment used for generating the file and metadata.
Definition: properties.h:221
Represents the track number in a set.
Definition: properties.h:65
Represents the description stored in the file.
Definition: properties.h:375
The duration of the media in the file.
Definition: properties.h:45
Represents the album artist of a media file.
Definition: properties.h:96
Contains ReplayGain information for audio files The album gain is given in "dB".
Definition: properties.h:360
The subject of the email this file was originally attached to.
Definition: properties.h:282
QString number(int n, int base)
Represents a comment stored in the file.
Definition: properties.h:77
Contains ReplayGain information for audio files.
Definition: properties.h:364
The Bit Rate of the Audio in the File.
Definition: properties.h:33
QMap::const_iterator constEnd() const const
The Author field indicated the primary creator of a document.
Definition: properties.h:114
Represents the arranger of an audio file.
Definition: properties.h:317
The number of channels of the Audio in the File.
Definition: properties.h:39
The Genre of an Audio file.
Definition: properties.h:52
Indicates the year a track was released.
Definition: properties.h:71
Contains the lyrics of a song embedded in the file.
Definition: properties.h:351
The number of words in a document.
Definition: properties.h:145
Same as Manufacturer.
Definition: properties.h:228
Represents the album of a media file.
Definition: properties.h:90
Represents the conductor of an audio file.
Definition: properties.h:322
Represents the width of the Media in pixels.
Definition: properties.h:197
Contains ReplayGain information for audio files.
Definition: properties.h:355
Property
The Property enum contains all files property types that KFileMetaData manipulates.
Definition: properties.h:25
The number of pages in a document.
Definition: properties.h:139
The copyright of the file.
Definition: properties.h:172
Represents the disc number in a multi-disc set.
Definition: properties.h:297
The message ID of the email this file was originally attached to.
Definition: properties.h:292
The language the document is written in.
Definition: properties.h:159
The number of lines in a document.
Definition: properties.h:151
The Aspect Ratio of the visual image or video.
Definition: properties.h:209
Refers to the Title of the content of the file.
Definition: properties.h:121
Represents the label of the content.
Definition: properties.h:332
Represents the height of the Media in pixels.
Definition: properties.h:203
Contains ReplayGain information for audio files The track gain is given in "dB".
Definition: properties.h:369
Contains the name of the compilation of an audio file.
Definition: properties.h:337
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Wed Jul 8 2020 22:52:44 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.