1 #ifndef BALL_VIEW_KERNEL_ICONLOADER_H
2 #define BALL_VIEW_KERNEL_ICONLOADER_H
5 #include <boost/shared_ptr.hpp>
8 #include <QtCore/QMutex>
9 #include <QtCore/QReadWriteLock>
10 #include <QtCore/QStringList>
42 explicit IconLoader(
const QStringList& icon_dirs);
49 explicit IconLoader(
const std::list<String>& icon_dirs);
70 void appendIconPath(
const String& path);
77 const QIcon& getIcon(
const String& name);
82 static boost::shared_ptr<IconLoader> loader_;
83 QReadWriteLock hash_map_lock_;
86 const QIcon*
const invalid_;
87 std::list<int> sizes_;
88 QStringList icon_dirs_;
93 QIcon* loadIcon_(
const String& name);
98 #endif //BALL_VIEW_KERNEL_ICONLOADER_H
HashMap class based on the STL map (containing serveral convenience functions)