7
7
* Description : class to get/set image information/properties
8
8
* in a digiKam album.
10
* Copyright (C) 2004-2005 by Renchi Raju <renchi@pooh.tam.uiuc.edu>
11
* Copyright (C) 2004-2005 by Ralf Holzer <ralf at well.com>
10
* Copyright (C) 2004-2005 by Renchi Raju <renchi dot raju at gmail dot com>
11
* Copyright (C) 2004-2005 by Ralf Holzer <ralf at well dot com>
12
12
* Copyright (C) 2004-2012 by Gilles Caulier <caulier dot gilles at gmail dot com>
14
14
* This program is free software; you can redistribute it
42
41
// LibKipi includes
44
#include <libkipi/version.h>
45
43
#include <libkipi/imageinfoshared.h>
49
#include "imageinfo.h"
61
class KipiImageInfo : public KIPI::ImageInfoShared
55
class KipiImageInfo : public ImageInfoShared
65
KipiImageInfo(KIPI::Interface* const interface, const KUrl& url);
59
KipiImageInfo(Interface* const interface, const KUrl& url);
68
#if KIPI_VERSION >= 0x010200
69
62
void cloneData(ImageInfoShared* const other);
71
void cloneData(ImageInfoShared* other);
72
#endif // KIPI_VERSION >= 0x010200
74
64
QMap<QString, QVariant> attributes();
75
65
void addAttributes(const QMap<QString, QVariant>& res);
76
66
void delAttributes(const QStringList& res);
77
67
void clearAttributes();
79
/// DEPRECATED METHODS with libkipi 1.5.0. Use attributes()/addAttributes() methods instead.
81
#if KIPI_VERSION < 0x010500
83
#if KIPI_VERSION >= 0x010300
85
void setName(const QString&);
87
/// Deprecated methods: for KIPI title here want mean "filename", not comment Title property.
89
void setTitle(const QString&);
90
#endif // KIPI_VERSION >= 0x010300
92
QString description();
93
void setDescription(const QString&);
96
void setAngle(int orientation);
98
QDateTime time(KIPI::TimeSpec);
99
void setTime(const QDateTime& date, KIPI::TimeSpec spec = KIPI::FromInfo);
101
#endif // KIPI_VERSION < 0x010500
105
PAlbum* parentAlbum() const;
112
75
} // namespace Digikam