@@ -34,15 +34,11 @@ public:
34 UnityMenuModelCache(QObject*parent=NULL);
34 UnityMenuModelCache(QObject*parent=NULL);
35 ~UnityMenuModelCache();
35 ~UnityMenuModelCache();
37− Q_INVOKABLE void ref();
38− Q_INVOKABLE void deref();
40 Q_INVOKABLE UnityMenuModel* model(const QString& path) const;
37 Q_INVOKABLE UnityMenuModel* model(const QString& path) const;
41 Q_INVOKABLE void registerModel(const QString& path, UnityMenuModel* menuModel);
38 Q_INVOKABLE void registerModel(const QString& path, UnityMenuModel* menuModel);
44 QHash<QString, UnityMenuModel*> m_menuModels;
41 QHash<QString, UnityMenuModel*> m_menuModels;
48#endif // UNITYMENUMODELCACHE_H
44#endif // UNITYMENUMODELCACHE_H