2022-06-18 10:46:14 +08:00
|
|
|
#ifndef UKUISEARCHDBUSSERVICE_H
|
|
|
|
#define UKUISEARCHDBUSSERVICE_H
|
|
|
|
|
|
|
|
#include <QDBusConnection>
|
|
|
|
#include <QObject>
|
|
|
|
|
|
|
|
#include "mainwindow.h"
|
|
|
|
|
|
|
|
namespace UkuiSearch {
|
|
|
|
|
|
|
|
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();
|
|
|
|
void searchKeyword(QString keyword);
|
2022-07-12 18:52:28 +08:00
|
|
|
void mainWindowSwitch();
|
2022-06-18 10:46:14 +08:00
|
|
|
|
|
|
|
private:
|
2022-07-12 18:52:28 +08:00
|
|
|
MainWindow *m_mainWindow = nullptr;
|
2022-06-18 10:46:14 +08:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // UKUISEARCHDBUSSERVICE_H
|