kio: move metadata plugin keys to the .desktop files

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2022-11-04 14:40:57 +02:00
parent 1e982a7e2d
commit 2b2ac283e8
24 changed files with 9 additions and 159 deletions

View file

@ -30,11 +30,6 @@ KFileMetaDataPlugin::~KFileMetaDataPlugin()
{
}
QStringList KFileMetaDataPlugin::keys() const
{
return QStringList();
}
QList<KFileMetaInfoItem> KFileMetaDataPlugin::metaData(const KUrl &url, const KFileMetaInfo::WhatFlags flags)
{
Q_UNUSED(url);

View file

@ -46,9 +46,7 @@ public:
KFileMetaDataPlugin(QObject *parent = nullptr);
~KFileMetaDataPlugin();
virtual QStringList keys() const;
virtual QList<KFileMetaInfoItem> metaData(const KUrl &url, const KFileMetaInfo::WhatFlags flags);
};
#endif
#endif // KFILEMETADATA_H

View file

@ -238,13 +238,7 @@ QStringList KFileMetaInfo::supportedKeys()
const QString key = kfmdplugin->desktopEntryName();
const bool enable = pluginsgroup.readEntry(key, true);
if (enable) {
KFileMetaDataPlugin *kfmdplugininstance = kfmdplugin->createInstance<KFileMetaDataPlugin>();
if (kfmdplugininstance) {
keys.append(kfmdplugininstance->keys());
delete kfmdplugininstance;
} else {
kWarning() << "Could not create KFileMetaDataPlugin instance";
}
keys.append(kfmdplugin->property("X-KDE-MetadataKeys", QVariant::StringList).toStringList());
}
}
keys.removeDuplicates();

View file

@ -53,21 +53,6 @@ KFileMetaDataEPubPlugin::~KFileMetaDataEPubPlugin()
{
}
QStringList KFileMetaDataEPubPlugin::keys() const
{
static const QStringList result = QStringList()
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/05/10/nid3#uniqueFileIdentifier")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/03/22/nco#creator")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/03/22/nco#contributor")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/03/22/nco#publisher")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/01/19/nie#title")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/01/19/nie#subject")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/01/19/nie#description")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/01/19/nie#contentCreated")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/01/19/nie#copyright");
return result;
}
QList<KFileMetaInfoItem> KFileMetaDataEPubPlugin::metaData(const KUrl &url, const KFileMetaInfo::WhatFlags flags)
{
Q_UNUSED(flags);

View file

@ -6,4 +6,5 @@ Comment=Extracts metadata from e-book documents
MimeType=application/epub+zip
X-KDE-Library=kfilemetadata_epub
X-KDE-ServiceTypes=KFileMetaData/Plugin
X-KDE-MetadataKeys=http://www.semanticdesktop.org/ontologies/2007/05/10/nid3#uniqueFileIdentifier,http://www.semanticdesktop.org/ontologies/2007/03/22/nco#creator,http://www.semanticdesktop.org/ontologies/2007/03/22/nco#contributor,http://www.semanticdesktop.org/ontologies/2007/03/22/nco#publisher,http://www.semanticdesktop.org/ontologies/2007/01/19/nie#title,http://www.semanticdesktop.org/ontologies/2007/01/19/nie#subject,http://www.semanticdesktop.org/ontologies/2007/01/19/nie#description,http://www.semanticdesktop.org/ontologies/2007/01/19/nie#contentCreated,http://www.semanticdesktop.org/ontologies/2007/01/19/nie#copyright
InitialPreference=1

View file

@ -28,8 +28,6 @@ public:
KFileMetaDataEPubPlugin(QObject* parent, const QVariantList &args);
~KFileMetaDataEPubPlugin();
QStringList keys() const final;
QList<KFileMetaInfoItem> metaData(const KUrl &url, const KFileMetaInfo::WhatFlags flags) final;
};

View file

@ -32,40 +32,6 @@ KFileMetaDataExiv2Plugin::~KFileMetaDataExiv2Plugin()
{
}
QStringList KFileMetaDataExiv2Plugin::keys() const
{
static const QStringList result = QStringList()
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#width")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#height")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#frameRate")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/01/19/nie#copyright")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/01/19/nie#comment")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/01/19/nie#title")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/01/19/nie#keyword")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/01/19/nie#subject")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/01/19/nie#description")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/01/19/nie#generator")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/01/19/nie#contentCreated")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/05/10/nexif#make")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/05/10/nexif#model")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/05/10/nexif#orientation")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/05/10/nexif#artist")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/05/10/nexif#gpsLatitudeRef")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/05/10/nexif#gpsLongitudeRef")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/05/10/nexif#flash")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/05/10/nexif#exposureTime")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/05/10/nexif#exposureBiasValue")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/05/10/nexif#exposureMode")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/05/10/nexif#apertureValue")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/05/10/nexif#focalLength")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/05/10/nexif#focalLengthIn35mmFilm")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/05/10/nexif#isoSpeedRatings")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/05/10/nexif#meteringMode")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/05/10/nexif#whiteBalance")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/05/10/nid3#uniqueFileIdentifier");
return result;
}
QList<KFileMetaInfoItem> KFileMetaDataExiv2Plugin::metaData(const KUrl &url, const KFileMetaInfo::WhatFlags flags)
{
Q_UNUSED(flags);

View file

@ -8,4 +8,5 @@ Comment=Extracts metadata from image files
MimeType=image/jpeg;image/x-exv;image/x-canon-cr2;image/x-canon-crw;image/x-minolta-mrw;image/tiff;image/webp;image/x-webp;image/x-nikon-nef;image/x-pentax-pef;image/x-panasonic-rw2;image/x-olympus-orf;image/png;image/x-fuji-raf;image/x-eps;image/gif;image/photoshop;image/x-photoshop;image/x-tga;image/bmp;image/x-bmp;image/x-ms-bmp;image/jp2
X-KDE-Library=kfilemetadata_exiv2
X-KDE-ServiceTypes=KFileMetaData/Plugin
X-KDE-MetadataKeys=http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#width,http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#height,http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#frameRate,http://www.semanticdesktop.org/ontologies/2007/01/19/nie#copyright,http://www.semanticdesktop.org/ontologies/2007/01/19/nie#comment,http://www.semanticdesktop.org/ontologies/2007/01/19/nie#title,http://www.semanticdesktop.org/ontologies/2007/01/19/nie#keyword,http://www.semanticdesktop.org/ontologies/2007/01/19/nie#subject,http://www.semanticdesktop.org/ontologies/2007/01/19/nie#description,http://www.semanticdesktop.org/ontologies/2007/01/19/nie#generator,http://www.semanticdesktop.org/ontologies/2007/01/19/nie#contentCreated,http://www.semanticdesktop.org/ontologies/2007/05/10/nexif#make,http://www.semanticdesktop.org/ontologies/2007/05/10/nexif#model,http://www.semanticdesktop.org/ontologies/2007/05/10/nexif#orientation,http://www.semanticdesktop.org/ontologies/2007/05/10/nexif#artist,http://www.semanticdesktop.org/ontologies/2007/05/10/nexif#gpsLatitudeRef,http://www.semanticdesktop.org/ontologies/2007/05/10/nexif#gpsLongitudeRef,http://www.semanticdesktop.org/ontologies/2007/05/10/nexif#flash,http://www.semanticdesktop.org/ontologies/2007/05/10/nexif#exposureTime,http://www.semanticdesktop.org/ontologies/2007/05/10/nexif#exposureBiasValue,http://www.semanticdesktop.org/ontologies/2007/05/10/nexif#exposureMode,http://www.semanticdesktop.org/ontologies/2007/05/10/nexif#apertureValue,http://www.semanticdesktop.org/ontologies/2007/05/10/nexif#focalLength,http://www.semanticdesktop.org/ontologies/2007/05/10/nexif#focalLengthIn35mmFilm,http://www.semanticdesktop.org/ontologies/2007/05/10/nexif#isoSpeedRatings,http://www.semanticdesktop.org/ontologies/2007/05/10/nexif#meteringMode,http://www.semanticdesktop.org/ontologies/2007/05/10/nexif#whiteBalance,http://www.semanticdesktop.org/ontologies/2007/05/10/nid3#uniqueFileIdentifier
InitialPreference=1

View file

@ -28,8 +28,6 @@ public:
KFileMetaDataExiv2Plugin(QObject* parent, const QVariantList &args);
~KFileMetaDataExiv2Plugin();
QStringList keys() const final;
QList<KFileMetaInfoItem> metaData(const KUrl &url, const KFileMetaInfo::WhatFlags flags) final;
};

View file

@ -42,37 +42,6 @@ KFileMetaDataFFmpegPlugin::~KFileMetaDataFFmpegPlugin()
{
}
QStringList KFileMetaDataFFmpegPlugin::keys() const
{
static const QStringList result = QStringList()
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#duration")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/05/10/nexif#artist")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/01/19/nie#title")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/01/19/nie#comment")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/01/19/nie#copyright")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/01/19/nie#contentCreated")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/05/10/nid3#composer")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/05/10/nid3#encoder")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/05/10/nid3#encodedBy")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2009/02/19/nmm#musicAlbum")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2009/02/19/nmm#genre")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2009/02/19/nmm#performer")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2009/02/19/nmm#trackNumber")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/03/22/nco#publisher")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#averageBitrate")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#videoCodec")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#audioCodec")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#subtitleCodec")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#sampleRate")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#channels")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#width")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#height")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#audioBitRate")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#videoBitRate")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#frameRate");
return result;
}
QList<KFileMetaInfoItem> KFileMetaDataFFmpegPlugin::metaData(const KUrl &url, const KFileMetaInfo::WhatFlags flags)
{
Q_UNUSED(flags);

View file

@ -6,4 +6,5 @@ Comment=Extracts metadata from audio and video files
MimeType=audio/*;video/*
X-KDE-Library=kfilemetadata_ffmpeg
X-KDE-ServiceTypes=KFileMetaData/Plugin
X-KDE-MetadataKeys=http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#duration,http://www.semanticdesktop.org/ontologies/2007/05/10/nexif#artist,http://www.semanticdesktop.org/ontologies/2007/01/19/nie#title,http://www.semanticdesktop.org/ontologies/2007/01/19/nie#comment,http://www.semanticdesktop.org/ontologies/2007/01/19/nie#copyright,http://www.semanticdesktop.org/ontologies/2007/01/19/nie#contentCreated,http://www.semanticdesktop.org/ontologies/2007/05/10/nid3#composer,http://www.semanticdesktop.org/ontologies/2007/05/10/nid3#encoder,http://www.semanticdesktop.org/ontologies/2007/05/10/nid3#encodedBy,http://www.semanticdesktop.org/ontologies/2009/02/19/nmm#musicAlbum,http://www.semanticdesktop.org/ontologies/2009/02/19/nmm#genre,http://www.semanticdesktop.org/ontologies/2009/02/19/nmm#performer,http://www.semanticdesktop.org/ontologies/2009/02/19/nmm#trackNumber,http://www.semanticdesktop.org/ontologies/2007/03/22/nco#publisher,http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#averageBitrate,http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#videoCodec,http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#audioCodec,http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#subtitleCodec,http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#sampleRate,http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#channels,http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#width,http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#height,http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#audioBitRate,http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#videoBitRate,http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#frameRate
InitialPreference=1

View file

@ -28,8 +28,6 @@ public:
KFileMetaDataFFmpegPlugin(QObject* parent, const QVariantList &args);
~KFileMetaDataFFmpegPlugin();
QStringList keys() const final;
QList<KFileMetaInfoItem> metaData(const KUrl &url, const KFileMetaInfo::WhatFlags flags) final;
};

View file

@ -34,14 +34,6 @@ KFileMetaDataFreetypePlugin::~KFileMetaDataFreetypePlugin()
{
}
QStringList KFileMetaDataFreetypePlugin::keys() const
{
static const QStringList result = QStringList()
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#fontFamily")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/01/19/nie#copyright");
return result;
}
QList<KFileMetaInfoItem> KFileMetaDataFreetypePlugin::metaData(const KUrl &url, const KFileMetaInfo::WhatFlags flags)
{
Q_UNUSED(flags);

View file

@ -6,4 +6,5 @@ Comment=Extracts metadata from fonts
MimeType=font/ttf;application/x-font-ttf;application/x-font-type1;font/otf;application/x-font-otf;application/x-font-afm;application/x-font-ttx;font/woff
X-KDE-Library=kfilemetadata_freetype
X-KDE-ServiceTypes=KFileMetaData/Plugin
X-KDE-MetadataKeys=http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#fontFamily,http://www.semanticdesktop.org/ontologies/2007/01/19/nie#copyright
InitialPreference=1

View file

@ -28,8 +28,6 @@ public:
KFileMetaDataFreetypePlugin(QObject* parent, const QVariantList &args);
~KFileMetaDataFreetypePlugin();
QStringList keys() const final;
QList<KFileMetaInfoItem> metaData(const KUrl &url, const KFileMetaInfo::WhatFlags flags) final;
};

View file

@ -49,21 +49,6 @@ KFileMetaDataPopplerPlugin::~KFileMetaDataPopplerPlugin()
{
}
QStringList KFileMetaDataPopplerPlugin::keys() const
{
static const QStringList result = QStringList()
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/01/19/nie#title")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/01/19/nie#subject")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/01/19/nie#keyword")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/01/19/nie#generator")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/01/19/nie#contentCreated")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/01/19/nie#contentLastModified")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/03/22/nco#creator")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/05/10/nid3#textWriter")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#pageCount");
return result;
}
QList<KFileMetaInfoItem> KFileMetaDataPopplerPlugin::metaData(const KUrl &url, const KFileMetaInfo::WhatFlags flags)
{
Q_UNUSED(flags);

View file

@ -6,4 +6,5 @@ Comment=Extracts metadata from Portable Document Format (PDF) documents
MimeType=application/pdf;application/x-pdf
X-KDE-Library=kfilemetadata_poppler
X-KDE-ServiceTypes=KFileMetaData/Plugin
X-KDE-MetadataKeys=http://www.semanticdesktop.org/ontologies/2007/01/19/nie#title,http://www.semanticdesktop.org/ontologies/2007/01/19/nie#subject,http://www.semanticdesktop.org/ontologies/2007/01/19/nie#keyword,http://www.semanticdesktop.org/ontologies/2007/01/19/nie#generator,http://www.semanticdesktop.org/ontologies/2007/01/19/nie#contentCreated,http://www.semanticdesktop.org/ontologies/2007/01/19/nie#contentLastModified,http://www.semanticdesktop.org/ontologies/2007/03/22/nco#creator,http://www.semanticdesktop.org/ontologies/2007/05/10/nid3#textWriter,http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#pageCount
InitialPreference=1

View file

@ -28,8 +28,6 @@ public:
KFileMetaDataPopplerPlugin(QObject* parent, const QVariantList &args);
~KFileMetaDataPopplerPlugin();
QStringList keys() const final;
QList<KFileMetaInfoItem> metaData(const KUrl &url, const KFileMetaInfo::WhatFlags flags) final;
};

View file

@ -32,16 +32,6 @@ KFileMetaDataSpectrePlugin::~KFileMetaDataSpectrePlugin()
{
}
QStringList KFileMetaDataSpectrePlugin::keys() const
{
static const QStringList result = QStringList()
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/01/19/nie#title")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/03/22/nco#creator")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/01/19/nie#contentCreated")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#pageCount");
return result;
}
QList<KFileMetaInfoItem> KFileMetaDataSpectrePlugin::metaData(const KUrl &url, const KFileMetaInfo::WhatFlags flags)
{
Q_UNUSED(flags);

View file

@ -6,4 +6,5 @@ Comment=Extracts metadata from Postscript documents
MimeType=application/postscript
X-KDE-Library=kfilemetadata_spectre
X-KDE-ServiceTypes=KFileMetaData/Plugin
X-KDE-MetadataKeys=http://www.semanticdesktop.org/ontologies/2007/01/19/nie#title,http://www.semanticdesktop.org/ontologies/2007/03/22/nco#creator,http://www.semanticdesktop.org/ontologies/2007/01/19/nie#contentCreated,http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#pageCount
InitialPreference=1

View file

@ -28,8 +28,6 @@ public:
KFileMetaDataSpectrePlugin(QObject* parent, const QVariantList &args);
~KFileMetaDataSpectrePlugin();
QStringList keys() const final;
QList<KFileMetaInfoItem> metaData(const KUrl &url, const KFileMetaInfo::WhatFlags flags) final;
};

View file

@ -35,23 +35,6 @@ KFileMetaDataTagLibPlugin::~KFileMetaDataTagLibPlugin()
{
}
QStringList KFileMetaDataTagLibPlugin::keys() const
{
static const QStringList result = QStringList()
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/01/19/nie#title")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/01/19/nie#comment")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/05/10/nexif#artist")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2009/02/19/nmm#musicAlbum")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2009/02/19/nmm#genre")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2009/02/19/nmm#trackNumber")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/05/10/nid3#originalReleaseYear")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#duration")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#averageBitrate")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#sampleRate")
<< QString::fromLatin1("http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#channels");
return result;
}
QList<KFileMetaInfoItem> KFileMetaDataTagLibPlugin::metaData(const KUrl &url, const KFileMetaInfo::WhatFlags flags)
{
Q_UNUSED(flags);

View file

@ -6,4 +6,5 @@ Comment=Extracts metadata from audio files
MimeType=audio/x-ape;application/vnd.ms-asf;video/x-ms-asf;audio/x-flac;audio/flac;audio/x-flac+ogg;audio/x-oggflac;audio/x-it;audio/x-mod;audio/mp4;video/mp4;audio/x-musepack;audio/mpeg;audio/x-mpeg;video/mpeg;video/x-mpeg;audio/ogg;audio/x-ogg;video/ogg;video/x-ogg;audio/x-vorbis+ogg;audio/x-flac+ogg;audio/x-oggflac;audio/x-opus+ogg;video/x-theora+ogg;video/x-ogm+ogg;audio/x-riff;audio/x-s3m;audio/x-tta;audio/wav;audio/vnd.wave;audio/x-wav;audio/x-wavpack;audio/x-xm
X-KDE-Library=kfilemetadata_taglib
X-KDE-ServiceTypes=KFileMetaData/Plugin
X-KDE-MetadataKeys=http://www.semanticdesktop.org/ontologies/2007/01/19/nie#title,http://www.semanticdesktop.org/ontologies/2007/01/19/nie#comment,http://www.semanticdesktop.org/ontologies/2007/05/10/nexif#artist,http://www.semanticdesktop.org/ontologies/2009/02/19/nmm#musicAlbum,http://www.semanticdesktop.org/ontologies/2009/02/19/nmm#genre,http://www.semanticdesktop.org/ontologies/2009/02/19/nmm#trackNumber,http://www.semanticdesktop.org/ontologies/2007/05/10/nid3#originalReleaseYear,http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#duration,http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#averageBitrate,http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#sampleRate,http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#channels
InitialPreference=1

View file

@ -28,8 +28,6 @@ public:
KFileMetaDataTagLibPlugin(QObject* parent, const QVariantList &args);
~KFileMetaDataTagLibPlugin();
QStringList keys() const final;
QList<KFileMetaInfoItem> metaData(const KUrl &url, const KFileMetaInfo::WhatFlags flags) final;
};