20#ifndef LOMIRIMENUMODELCACHE_H
21#define LOMIRIMENUMODELCACHE_H
23#include "lomiriindicatorsglobal.h"
28#include <QSharedPointer>
30class AyatanaMenuModel;
32class LOMIRIINDICATORS_EXPORT LomiriMenuModelCache :
public QObject
36 LomiriMenuModelCache(QObject*parent=
nullptr);
38 static LomiriMenuModelCache* singleton();
40 virtual QSharedPointer<AyatanaMenuModel> model(
const QByteArray& path);
43 Q_INVOKABLE
virtual bool contains(
const QByteArray& path);
46 QHash<QByteArray, QSharedPointer<AyatanaMenuModel>> m_registry;
47 static QPointer<LomiriMenuModelCache> theCache;