/* * PDFedit - free program for PDF document manipulation. * Copyright (C) 2006, 2007 PDFedit team: Michal Hocko, * Miroslav Jahoda, * Jozef Misutka, * Martin Petricek * * Project is hosted on http://sourceforge.net/projects/pdfedit */ #ifndef __ICONCACHE_H__ #define __ICONCACHE_H__ #include "qtcompat.h" class QString; class QPixmap; class QIcon; namespace gui { /** Class responsible for loading and caching icons
There can be multiple instances of this class at once, but all of them share common cache \brief Class caching loaded icons */ class IconCache { public: IconCache(); ~IconCache(); QPixmap* getIcon(const QString &name); QIcon* getIconSet(const QString &name); private: QString getIconFile(const QString &name); }; } // namespace gui #endif