28 lines
693 B
C++
28 lines
693 B
C++
#ifndef UKUISEARCHSERVICE_H
|
|
#define UKUISEARCHSERVICE_H
|
|
|
|
#include <QObject>
|
|
#include <QCommandLineParser>
|
|
#include <QGSettings/QGSettings>
|
|
#include "qtsingleapplication.h"
|
|
#include "file-index-manager.h"
|
|
#include "common.h"
|
|
namespace UkuiSearch {
|
|
|
|
class UkuiSearchService : public QtSingleApplication
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
UkuiSearchService(int &argc, char *argv[], const QString &applicationName = "ukui-search-service");
|
|
|
|
protected Q_SLOTS:
|
|
void parseCmd(QString msg, bool isPrimary);
|
|
private:
|
|
void initGsettings();
|
|
void setSearchMethodByGsettings();
|
|
void indexServiceSwitch(bool startIndex = true);
|
|
QGSettings *m_SearchGsettings;
|
|
};
|
|
}
|
|
#endif // UKUISEARCHSERVICE_H
|