~ubuntu-branches/ubuntu/quantal/libkexiv2/quantal

« back to all changes in this revision

Viewing changes to libkexiv2/kexiv2.h

  • Committer: Package Import Robot
  • Author(s): Philip Muškovac
  • Date: 2012-05-26 14:27:02 UTC
  • mfrom: (1.1.12)
  • Revision ID: package-import@ubuntu.com-20120526142702-duh6ecr459d92ni9
Tags: 4:4.8.80-0ubuntu1
* New upstream beta release
  - replace libkexiv2-10 with libkexiv2-11 for new ABI version
  - refresh libkexiv2-11.symbols

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
 * @brief         http://www.iptc.org/std/Iptc4xmpCore/1.0/specification/Iptc4xmpCore_1.0-spec-XMPSchema_8.pdf
14
14
 * @brief  Paper: http://www.metadataworkinggroup.com/pdf/mwg_guidance.pdf
15
15
 *
16
 
 * @author Copyright (C) 2006-2011 by Gilles Caulier
 
16
 * @author Copyright (C) 2006-2012 by Gilles Caulier
17
17
 *         <a href="mailto:caulier dot gilles at gmail dot com">caulier dot gilles at gmail dot com</a>
18
 
 * @author Copyright (C) 2006-2011 by Marcel Wiesweg
 
18
 * @author Copyright (C) 2006-2012 by Marcel Wiesweg
19
19
 *         <a href="mailto:marcel dot wiesweg at gmx dot de">marcel dot wiesweg at gmx dot de</a>
20
20
 *
21
21
 * This program is free software; you can redistribute it
34
34
#ifndef KEXIV2_H
35
35
#define KEXIV2_H
36
36
 
37
 
// QT includes.
 
37
// QT includes
38
38
 
39
39
#include <QtCore/QByteArray>
40
40
#include <QtCore/QString>
41
 
#include <QtGui/QImage>
42
41
#include <QtCore/QDateTime>
43
42
#include <QtCore/QMap>
44
43
#include <QtCore/QSharedDataPointer>
45
44
#include <QtCore/QStringList>
46
45
#include <QtCore/QVariant>
47
46
#include <QtCore/QRegExp>
48
 
 
49
 
// Local includes.
 
47
#include <QtGui/QImage>
 
48
 
 
49
// KDE includes.
 
50
 
 
51
#include <kurl.h>
 
52
 
 
53
// Local includes
50
54
 
51
55
#include "libkexiv2_export.h"
52
56
#include "kexiv2data.h"
186
190
     */
187
191
    static QString sidecarFilePathForFile(const QString& path);
188
192
 
 
193
    /** Like sidecarFilePathForFile(), but works for local file path.
 
194
     */
 
195
    static QString sidecarPath(const QString& path);
189
196
 
 
197
    /** Like sidecarFilePathForFile(), but works for remote URLs.
 
198
     */
 
199
    static KUrl sidecarUrl(const KUrl& url);
 
200
    
 
201
    /** Gives a file url for a local path.
 
202
     */
 
203
    static KUrl sidecarUrl(const QString& path);
 
204
    
 
205
    /** Performs a QFileInfo based check if the given local file has a sidecar.
 
206
     */
 
207
    static bool hasSidecar(const QString& path);
 
208
    
190
209
    //@}
191
210
 
192
211
    //-----------------------------------------------------------------
200
219
        Return true if metadata have been loaded successfully from image data.
201
220
     */
202
221
    bool loadFromData(const QByteArray& imgData) const;
203
 
    KDE_DEPRECATED bool load(const QByteArray& imgData) const;
204
222
 
205
223
    /** Load all metadata (Exif, Iptc, Xmp, and JFIF Comments) from a picture (JPEG, RAW, TIFF, PNG,
206
224
        DNG, etc...). Return true if metadata have been loaded successfully from file.
429
447
        Set true 'addExifHeader' parameter to add an Exif header to Exif metadata.
430
448
        Returns a null Qt byte array if there is no Exif metadata in memory.
431
449
     */
432
 
    KDE_DEPRECATED QByteArray getExif(bool addExifHeader=false) const;
433
450
    QByteArray getExifEncoded(bool addExifHeader=false) const;
434
451
 
435
452
    /** Set the Exif data using a Qt byte array. Return true if Exif metadata
481
498
    /** Get an Exif tag content like a long value. Return true if Exif tag be found.
482
499
     */
483
500
    bool getExifTagLong(const char* exifTagName, long &val) const;
484
 
    
 
501
 
485
502
    /** Get an Exif tag content like a long value. Return true if Exif tag be found.
486
503
     */
487
504
    bool getExifTagLong(const char* exifTagName, long &val, int component) const;