This file is indexed.

/usr/include/AppstreamQt/image.h is in libappstreamqt-dev 0.9.4-1.

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
/*
 * <one line to give the library's name and an idea of what it does.>
 * Copyright (C) 2014  Sune Vuorela <sune@vuorela.dk>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library 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
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 *
 */

#ifndef APPSTREAMQT_IMAGE_H
#define APPSTREAMQT_IMAGE_H

#include <QSharedDataPointer>
#include <QObject>
#include "appstreamqt_export.h"

class QUrl;
class QString;
namespace Appstream {

class ImageData;

/**
 * A reference to a image that can be accessed thru a URL
 *
 * This class doesn't contain any image data, but only a reference to
 * a url and the expected size for the image.
 *
 * "expected size" means that the data is read out from the database, and
 * there is somehow a chance that the information might not fit with the
 * image at the end of the url.
 */
class APPSTREAMQT_EXPORT Image {
    Q_GADGET
    Q_ENUMS(Kind)
    public:
        enum Kind {
            Unknown,
            Thumbnail,
            Plain
        };
        Image();
        Image(const Image& other);
        ~Image();
        Image& operator=(const Image& other);
        bool operator==(const Image& other);
        /**
         * \return the url for this image
         */
        const QUrl& url() const;
        void setUrl(const QUrl& url);

        /**
         * \return the expected width of this image
         */
        int width() const;
        void setWidth(int width);
        /**
         * \return the expected height of this image
         */
        int height() const;
        void setHeight(int height);


        /**
         * \return the kind of image
         */
        Kind kind() const;
        void setKind(Kind stringToKind);

        static Kind stringToKind(const QString& string);
    private:
        QSharedDataPointer<ImageData> d;
};
}

#endif // APPSTREAMQT_IMAGE_H

class QUrl;