~ubuntu-branches/ubuntu/trusty/digikam/trusty

« back to all changes in this revision

Viewing changes to core/utilities/kipiiface/kipiimageinfo.h

  • Committer: Package Import Robot
  • Author(s): Rohan Garg
  • Date: 2012-11-26 18:24:20 UTC
  • mfrom: (1.9.1) (3.1.23 experimental)
  • Revision ID: package-import@ubuntu.com-20121126182420-qoy6z0nx4ai0wzcl
Tags: 4:3.0.0~beta3-0ubuntu1
* New upstream release
  - Add build-deps :  libhupnp-dev, libqtgstreamer-dev, libmagickcore-dev
* Merge from debian, remaining changes:
  - Make sure libqt4-opengl-dev, libgl1-mesa-dev and libglu1-mesa-dev only
    install on i386,amd64 and powerpc
  - Depend on libtiff-dev instead of libtiff4-dev
  - Drop digikam breaks/replaces kipi-plugins-common since we're past the
    LTS release now
  - digikam to recommend mplayerthumbs | ffmpegthumbs. We currently only
    have latter in the archives, even though former is also supposed to
    be part of kdemultimedia. (LP: #890059)
  - kipi-plugins to recommend www-browser rather than konqueror directly
    since 2.8 no direct usage of konqueror is present in the flickr
    plugin anymore (LP: #1011211)
  - Keep kubuntu_mysqld_executable_name.diff
  - Don't install libkipi translations
  - Keep deps on libcv-dev, libcvaux-dev
  - Keep split packaging of libraries
  - Replace icons from KDE 3 time in debian/xpm.d/*.xpm with the new
    versions (LP: #658047)
* Update debian/not-installed

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
 * Description : class to get/set image information/properties
8
8
 *               in a digiKam album.
9
9
 *
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>
13
13
 *
14
14
 * This program is free software; you can redistribute it
32
32
#include <QVariant>
33
33
#include <QString>
34
34
#include <QStringList>
35
 
#include <QDateTime>
36
35
#include <QMap>
37
36
 
38
37
// KDE includes
41
40
 
42
41
// LibKipi includes
43
42
 
44
 
#include <libkipi/version.h>
45
43
#include <libkipi/imageinfoshared.h>
46
44
 
47
 
// Local includes
48
 
 
49
 
#include "imageinfo.h"
50
 
 
51
45
namespace KIPI
52
46
{
53
 
class Interface;
 
47
    class Interface;
54
48
}
55
49
 
 
50
using namespace KIPI;
 
51
 
56
52
namespace Digikam
57
53
{
58
54
 
59
 
class PAlbum;
60
 
 
61
 
class KipiImageInfo : public KIPI::ImageInfoShared
 
55
class KipiImageInfo : public ImageInfoShared
62
56
{
63
57
public:
64
58
 
65
 
    KipiImageInfo(KIPI::Interface* const interface, const KUrl& url);
 
59
    KipiImageInfo(Interface* const interface, const KUrl& url);
66
60
    ~KipiImageInfo();
67
61
 
68
 
#if KIPI_VERSION >= 0x010200
69
62
    void cloneData(ImageInfoShared* const other);
70
 
#else
71
 
    void cloneData(ImageInfoShared* other);
72
 
#endif // KIPI_VERSION >= 0x010200
73
63
 
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();
78
68
 
79
 
    /// DEPRECATED METHODS with libkipi 1.5.0. Use attributes()/addAttributes() methods instead.
80
 
 
81
 
#if KIPI_VERSION < 0x010500
82
 
 
83
 
#if KIPI_VERSION >= 0x010300
84
 
    QString   name();
85
 
    void      setName(const QString&);
86
 
#else
87
 
    /// Deprecated methods: for KIPI title here want mean "filename", not comment Title property.
88
 
    QString   title();
89
 
    void      setTitle(const QString&);
90
 
#endif // KIPI_VERSION >= 0x010300
91
 
 
92
 
    QString   description();
93
 
    void      setDescription(const QString&);
94
 
 
95
 
    int       angle();
96
 
    void      setAngle(int orientation);
97
 
 
98
 
    QDateTime time(KIPI::TimeSpec);
99
 
    void      setTime(const QDateTime& date, KIPI::TimeSpec spec = KIPI::FromInfo);
100
 
 
101
 
#endif // KIPI_VERSION < 0x010500
102
 
 
103
 
private:
104
 
 
105
 
    PAlbum* parentAlbum() const;
106
 
 
107
 
private:
108
 
 
109
 
    ImageInfo m_info;
 
69
private:
 
70
 
 
71
    class Private;
 
72
    Private* const d;
110
73
};
111
74
 
112
75
}  // namespace Digikam