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

35 lines
802 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;
QString m_qmlPath = "qrc:/qml/IndexMonitor.qml";
};
}
#endif // UKUISEARCHSERVICE_H