20 #ifndef UNITYMENUMODELCACHE_H
21 #define UNITYMENUMODELCACHE_H
23 #include "unityindicatorsglobal.h"
30 class UNITYINDICATORS_EXPORT UnityMenuModelCache :
public QObject
34 UnityMenuModelCache(QObject*parent=
nullptr);
35 ~UnityMenuModelCache();
37 Q_INVOKABLE UnityMenuModel* model(
const QByteArray& bus,
38 const QByteArray& path,
39 const QVariantMap& actions);
40 Q_INVOKABLE
bool contains(
const QByteArray& path);
43 QHash<QByteArray, UnityMenuModel*> m_registry;
46 #endif // UNITYMENUMODELCACHE_H