2021-08-09 21:00:15 +08:00
|
|
|
#ifndef UKUISEARCHDBUSSERVICE_H
|
|
|
|
#define UKUISEARCHDBUSSERVICE_H
|
|
|
|
|
|
|
|
#include <QDBusConnection>
|
|
|
|
#include <QObject>
|
|
|
|
|
|
|
|
#include "mainwindow.h"
|
|
|
|
|
2021-12-14 14:43:35 +08:00
|
|
|
namespace UkuiSearch {
|
2021-08-09 21:00:15 +08:00
|
|
|
|
|
|
|
class UkuiSearchDbusServices: public QObject{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
Q_CLASSINFO("D-Bus Interface","org.ukui.search.service")
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit UkuiSearchDbusServices(MainWindow *m);
|
|
|
|
~UkuiSearchDbusServices();
|
|
|
|
|
|
|
|
public Q_SLOTS:
|
|
|
|
void showWindow();
|
2021-08-11 17:50:00 +08:00
|
|
|
void searchKeyword(QString keyword);
|
2021-08-09 21:00:15 +08:00
|
|
|
|
|
|
|
private:
|
|
|
|
MainWindow *m_mainWindow;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // UKUISEARCHDBUSSERVICE_H
|