This file is indexed.

/usr/include/libkipi/imageinfo.h is in libkipi-dev 4:4.8.2-0ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
/** ===========================================================
 * @file
 *
 * This file is a part of digiKam project
 * <a href="http://www.digikam.org">http://www.digikam.org</a>
 *
 * @date   2004-07-22
 * @brief  image info
 *
 * @author Copyright (C) 2004-2011 by Gilles Caulier
 *         <a href="mailto:caulier dot gilles at gmail dot com">caulier dot gilles at gmail dot com</a>
 * @author Copyright (C) 2004-2005 by Renchi Raju
 *         <a href="mailto:renchi dot raju at gmail dot com">renchi dot raju at gmail dot com</a>
 * @author Copyright (C) 2004-2005 by Jesper K. Pedersen
 *         <a href="mailto:blackie at kde dot org">blackie at kde dot org</a>
 * @author Copyright (C) 2004-2005 by Aurelien Gateau
 *         <a href="mailto:aurelien dot gateau at free dot fr">aurelien dot gateau at free dot fr</a>
 *
 * This program is free software; you can redistribute it
 * and/or modify it under the terms of the GNU General
 * Public License as published by the Free Software Foundation;
 * either version 2, or (at your option)
 * any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * ============================================================ */

/** @file imageinfo.h */

#ifndef KIPI_IMAGEINFO_H
#define KIPI_IMAGEINFO_H

// Qt includes.

#include <QtCore/QString>
#include <QtCore/QDateTime>
#include <QtCore/QMap>
#include <QtCore/QVariant>

// KDE includes.

#include <kurl.h>
#include <kdemacros.h>

// Local includes.

#include "libkipi_export.h"

namespace KIPI
{

class ImageInfoShared;

enum TimeSpec
{
    FromInfo,
    ToInfo
};

/** @class ImageInfo
    Holds info about an image
 */
class LIBKIPI_EXPORT ImageInfo
{

public:

    /** Use name() instead */
    KDE_DEPRECATED QString title() const;
    /** Use setName() instead */
    KDE_DEPRECATED void setTitle( const QString& name );

    QString name() const;
    void setName( const QString& name );

    QString description() const;
    void setDescription( const QString& description);

    /**
        Returns a Map of attributes of the image
        In case the host application supports some special attributes of the image
        this function can be used to return them. following attribes are supported by this feature:

        QString("comment")   :: QString() with default comment [same than description()].
        QString("date")      :: QDateTime() with date  [same than time()].
        QString("angle")     :: integer value [same than angle()].
        QString("title")     :: QString() with default title.
        QString("tagspath")  :: QStringList() with tags path list formated as "Country/France/City/Paris" for ex.
        QString("tags")      :: QStringList() with tags name list.
        QString("rating")    :: integer value (ususally 0 <= rate <= 5).
        QString("colorlabel"):: integer value (ususally 0 <= colorlabel <= 9).
        QString("picklabel") :: integer value (ususally 0 <= picklabel <= 4).
        QString("latitude")  :: double value in degrees (-90.0 >= lat <=90.0).
        QString("longitude") :: double value in degrees (-180.0 >= long <=180.0).
        QString("altitude")  :: double value in meters.
    */
    QMap<QString, QVariant> attributes() const;

    /** Set the attributes defined from the map to the image. Following keys/values can be used:
        QString("comment")   :: QString() with default comment [same than setDescription()].
        QString("date")      :: QDateTime() with date [same than setTime()].
        QString("angle")     :: integer value [same than setAngle()].
        QString("title")     :: QString() with default title.
        QString("tagspath")  :: QStringList() with tags path list formated as "Country/France/City/Paris" for ex.
        QString("rating")    :: integer value (ususally 0 <= rate <= 5).
        QString("colorlabel"):: integer value (ususally 0 <= colorlabel <= 9).
        QString("picklabel") :: integer value (ususally 0 <= picklabel <= 4).
        QString("latitude")  :: double value in degrees (-90.0 >= lat <=90.0).
        QString("longitude") :: double value in degrees (-180.0 >= long <=180.0).
        QString("altitude")  :: double value in meters.
    */
    void addAttributes(const QMap<QString, QVariant>&);

    /** Remove attributes listed from the image. Following values can be used:
        QString("comment")    :: Remove all comments.
        QString("date")       :: Remove date info.
        QString("angle")      :: Remove angle info.
        QString("title")      :: Remove all titles.
        QString("tags")       :: Remove all tags.
        QString("rating")     :: Remove rating info.
        QString("colorlabel") :: Remove color labels info.
        QString("picklabel")  :: Remove pick labels info.
        QString("gpslocation"):: Remove latitude, longitude, and altitude values.
    */
    void delAttributes( const QStringList& );

    /** Remove all attribute from the image. See delAttributes() for list of all attributes removed.
     */
    void clearAttributes();

    KUrl path() const;

    /**
        Returns the time of the image.
        In case the host application supports time range, the spec argument
        specifies if it is the start or end time that should be returned.
    */
    QDateTime time( TimeSpec spec = FromInfo ) const;

    /**
        See \ref time
    */
    void      setTime( const QDateTime& time, TimeSpec spec = FromInfo );

    /**
        In the case the application supports time ranges (like this image is
        from 1998-2000), this method will return true if the time is an exact
        specification, and thus not a range.
    */
    bool isTimeExact() const;

    int size() const;

    /**
        Returns the angle the application rotates the image with when displaying it.
        Certain host applications may choose to rotate the image on disk, and will always return 0,
        while other host application will rotate the image when displaying it, and will thus not rotate
        the image on disk.
    */
    int angle() const;

    /**
        See \ref angle
    */
    void setAngle(int);

    QString toString( const QVariant& ) const;

    /**
        Copies all the attibutes, description etc from the other imageinfo
    */
    void cloneData( const ImageInfo& other );

    /** constructor
        Interface for host application + general stuff
     */
    ImageInfo( ImageInfoShared* const );
    ImageInfo( const ImageInfo& );
    ~ImageInfo();

private:

    ImageInfo() {} // Disabled
    ImageInfo& operator=( const ImageInfo& ) { return *this; } // Disabled

private:

    mutable KIPI::ImageInfoShared* d;
};

} // namespace KIPI

#endif /* KIPI_IMAGEINFO_H */