#ifndef NAVIGATIONCONTROLLER_H #define NAVIGATIONCONTROLLER_H #include #include class NavigationItemModel; class NavigationListModel; class NavigationController : public QObject { Q_OBJECT public: NavigationController(QObject *parent = Q_NULLPTR); void init(const QString & rootPath); void setContext(QQmlContext* context); private: void setContextProperties(); NavigationItemModel* mRootItem; NavigationListModel* mNavList; QString mRootPath = "."; QQmlContext* mContext; }; #endif // NAVIGATIONCONTROLLER_H