ukui-search/ukui-search-service/ukui-search-service.h

35 lines
808 B
C++

#ifndef UKUISEARCHSERVICE_H
#define UKUISEARCHSERVICE_H
#include <QObject>
#include <QCommandLineParser>
#include <QGSettings>
#include <QQuickView>
#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