#ifndef UKUISEARCHSERVICE_H #define UKUISEARCHSERVICE_H #include #include #include #include #include "qtsingleapplication.h" #include "common.h" #include "index-scheduler.h" #include "monitor.h" namespace UkuiSearch { class UkuiSearchService : public QtSingleApplication { Q_OBJECT public: UkuiSearchService(int &argc, char *argv[], const QString &applicationName = "ukui-search-service"); ~UkuiSearchService(); protected Q_SLOTS: void parseCmd(QString msg, bool isPrimary); private: void loadMonitorWindow(); IndexScheduler *m_indexScheduler = nullptr; Monitor *m_monitor = nullptr; QQuickView *m_quickView = nullptr; QUrl m_qmlPath = QString("qrc:/qml/IndexMonitor.qml"); }; } #endif // UKUISEARCHSERVICE_H