• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 API Reference
  • KDE Home
  • Contact Us
 

KDEUI

  • kdeui
  • icons
kiconcache.h
Go to the documentation of this file.
1/*
2 *
3 * This file is part of the KDE project.
4 * Copyright (C) 2007 Rivo Laks <rivolaks@hot.ee>
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public
8 * License version 2 as published by the Free Software Foundation.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details.
14 *
15 * You should have received a copy of the GNU Library General Public License
16 * along with this library; see the file COPYING.LIB. If not, write to
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
19 */
20
21#ifndef KICONCACHE_H
22#define KICONCACHE_H
23
24#include <kdeui_export.h>
25
26#include <QtCore/QList>
27#include <QtCore/QSet>
28#include <kicontheme.h>
29#include <kpixmapcache.h>
30
31class QString;
32class QStringList;
33class QPixmap;
34class QDataStream;
35
36
46// KDE5: Un-export the symbols for this. Better yet, remove it entirely
47// since KPixmapCache is deprecated.
48class KDEUI_EXPORT KIconCache : public KPixmapCache
49{
50public:
54 explicit KIconCache();
55 virtual ~KIconCache();
56
57
58 bool find(const QString& key, QPixmap& pix, QString* path);
59 void insert(const QString& key, const QPixmap& pix, const QString& path);
60
61 virtual bool find(const QString& key, QPixmap& pix);
62 virtual void insert(const QString& key, const QPixmap& pix);
63
67 static void deleteCache();
68
74 int defaultIconSize(KIconLoader::Group group) const;
75
76 void setThemeInfo(const QList<KIconTheme*>& themes);
77
78
79protected:
80 virtual bool loadCustomIndexHeader(QDataStream& stream);
81 virtual void writeCustomIndexHeader(QDataStream& stream);
82
83 virtual bool loadCustomData(QDataStream& stream);
84 virtual bool writeCustomData(QDataStream& stream);
85
86 QSet<QString> existingIconThemeDirs(const QStringList& themeNames) const;
87 unsigned int mostRecentMTime(const QSet<QString>& dirNames) const;
88
89private:
90 class Private;
91 friend class Private;
92 Private * const d;
93};
94
95#endif // KICONCACHE_H
KIconCache
Icon cache for KDE.
Definition: kiconcache.h:49
KIconLoader::Group
Group
The group of the icon.
Definition: kiconloader.h:127
KPixmapCache
General-purpose pixmap cache for KDE.
Definition: kpixmapcache.h:86
QList
QSet
kdeui_export.h
kicontheme.h
kpixmapcache.h
group
group
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDEUI

Skip menu "KDEUI"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal