This file is indexed.

/usr/include/kiconcache.h is in kdelibs5-dev 4:4.13.3-0ubuntu0.5.

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
/*
 *
 * This file is part of the KDE project.
 * Copyright (C) 2007 Rivo Laks <rivolaks@hot.ee>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library General Public
 * License version 2 as published by the Free Software Foundation.
 *
 * 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
 * Library General Public License for more details.
 *
 * You should have received a copy of the GNU Library General Public License
 * along with this library; see the file COPYING.LIB.  If not, write to
 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 * Boston, MA 02110-1301, USA.
 */

#ifndef KICONCACHE_H
#define KICONCACHE_H

#include <kdeui_export.h>

#include <QtCore/QList>
#include <QtCore/QSet>
#include <kicontheme.h>
#include <kpixmapcache.h>

class QString;
class QStringList;
class QPixmap;
class QDataStream;


/**
 * Icon cache for KDE.
 *
 * Note that this is the KDE-wide cache for storing icons and should only be
 *  used by KIconLoader. If you want to cache your own pixmaps you should look
 *  at KImageCache or KSharedDataCache instead.
 *
 * @internal
 */
// KDE5: Un-export the symbols for this. Better yet, remove it entirely
// since KPixmapCache is deprecated.
class KDEUI_EXPORT KIconCache : public KPixmapCache
{
public:
    /**
     * Constucts the icon cache object.
     **/
    explicit KIconCache();
    virtual ~KIconCache();


    bool find(const QString& key, QPixmap& pix, QString* path);
    void insert(const QString& key, const QPixmap& pix, const QString& path);

    virtual bool find(const QString& key, QPixmap& pix);
    virtual void insert(const QString& key, const QPixmap& pix);

    /**
     * Deletes the icon cache.
     **/
    static void deleteCache();

    /**
     * The default size of current theme for a certain icon group.
     * @param group The icon group. See KIconLoader::Group.
     * @return The default size in pixels for the given icon group.
     */
    int defaultIconSize(KIconLoader::Group group) const;

    void setThemeInfo(const QList<KIconTheme*>& themes);


protected:
    virtual bool loadCustomIndexHeader(QDataStream& stream);
    virtual void writeCustomIndexHeader(QDataStream& stream);

    virtual bool loadCustomData(QDataStream& stream);
    virtual bool writeCustomData(QDataStream& stream);

    QSet<QString> existingIconThemeDirs(const QStringList& themeNames) const;
    unsigned int mostRecentMTime(const QSet<QString>& dirNames) const;

private:
    class Private;
    friend class Private;
    Private * const d;
};

#endif // KICONCACHE_H