38 static bool addSearchPath(
const QString& _path);
40 static const QStringList& searchPaths(
void);
43 static const QIcon& getIcon(
const QString& _subPath);
46 static const QPixmap& getPixmap(
const QString& _subPath);
49 static std::shared_ptr<QMovie> getMovie(
const QString& _subPath);
52 static const QByteArray& getSvgData(
const QString& _subPath);
55 static void setApplicationIcon(
const QIcon& _icon);
59 static const QIcon& getApplicationIcon(
void);
63 std::shared_ptr<T>& getOrCreate(
const QString& _subPath, std::map<QString, std::shared_ptr<T>>& _dataMap, std::shared_ptr<T>& _default);
66 std::optional<std::shared_ptr<T>*> get(
const QString& _subPath, std::map<QString, std::shared_ptr<T>>& _dataMap);
69 std::optional<std::shared_ptr<T>*> getWhileLocked(
const QString& _subPath, std::map<QString, std::shared_ptr<T>>& _dataMap);
71 QString findFullPath(
const QString& _subPath);
76 QStringList m_searchPaths;
78 std::map<QString, std::shared_ptr<QIcon>> m_icons;
79 std::map<QString, std::shared_ptr<QPixmap>> m_pixmaps;
80 std::map<QString, std::shared_ptr<QMovie>> m_movies;
81 std::map<QString, std::shared_ptr<QByteArray>> m_svgData;
82 std::shared_ptr<QIcon> m_emptyIcon;
83 std::shared_ptr<QPixmap> m_emptyPixmap;
84 std::shared_ptr<QMovie> m_emptyMovie;
85 std::shared_ptr<QByteArray> m_emptySvgData;
86 QIcon m_applicationIcon;