~ubuntu-branches/ubuntu/vivid/kfilemetadata-kf5/vivid-updates

« back to all changes in this revision

Viewing changes to src/extractors/exiv2extractor.cpp

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2014-10-01 15:44:16 UTC
  • mto: (2.1.1 vivid-proposed)
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: package-import@ubuntu.com-20141001154416-2im4irvqp092mkj9
Tags: upstream-5.1.0.1
ImportĀ upstreamĀ versionĀ 5.1.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 
20
20
 
21
21
#include "exiv2extractor.h"
22
 
#include <KService>
23
22
 
24
23
using namespace KFileMetaData;
25
24
 
26
25
 
27
 
Exiv2Extractor::Exiv2Extractor(QObject* parent, const QVariantList&)
 
26
Exiv2Extractor::Exiv2Extractor(QObject* parent)
28
27
    : ExtractorPlugin(parent)
29
28
{
30
29
}
33
32
{
34
33
    QStringList types;
35
34
 
36
 
    types << QLatin1String("image/jp2")
37
 
          << QLatin1String("image/jpeg")
38
 
          << QLatin1String("image/pgf")
39
 
          << QLatin1String("image/png")
40
 
          << QLatin1String("image/tiff")
41
 
          << QLatin1String("image/x-exv")
42
 
          << QLatin1String("image/x-canon-cr2")
43
 
          << QLatin1String("image/x-canon-crw")
44
 
          << QLatin1String("image/x-fuji-raf")
45
 
          << QLatin1String("image/x-minolta-mrw")
46
 
          << QLatin1String("image/x-nikon-nef")
47
 
          << QLatin1String("image/x-olympus-orf")
48
 
          << QLatin1String("image/x-panasonic-rw2")
49
 
          << QLatin1String("image/x-pentax-pef")
50
 
          << QLatin1String("image/x-photoshop")
51
 
          << QLatin1String("image/x-samsung-srw");
 
35
    types << QStringLiteral("image/jp2")
 
36
          << QStringLiteral("image/jpeg")
 
37
          << QStringLiteral("image/pgf")
 
38
          << QStringLiteral("image/png")
 
39
          << QStringLiteral("image/tiff")
 
40
          << QStringLiteral("image/x-exv")
 
41
          << QStringLiteral("image/x-canon-cr2")
 
42
          << QStringLiteral("image/x-canon-crw")
 
43
          << QStringLiteral("image/x-fuji-raf")
 
44
          << QStringLiteral("image/x-minolta-mrw")
 
45
          << QStringLiteral("image/x-nikon-nef")
 
46
          << QStringLiteral("image/x-olympus-orf")
 
47
          << QStringLiteral("image/x-panasonic-rw2")
 
48
          << QStringLiteral("image/x-pentax-pef")
 
49
          << QStringLiteral("image/x-photoshop")
 
50
          << QStringLiteral("image/x-samsung-srw");
52
51
 
53
52
    return types;
54
53
}
203
202
            result->add(prop, value);
204
203
    }
205
204
}
206
 
 
207
 
K_PLUGIN_FACTORY(factory, registerPlugin<Exiv2Extractor>();)
208
 
 
209
 
#include "exiv2extractor.moc"