#ifndef UKUISEARCHDBUSSERVICE_H #define UKUISEARCHDBUSSERVICE_H #include #include #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); void mainWindowSwitch(); private: MainWindow *m_mainWindow = nullptr; }; } #endif // UKUISEARCHDBUSSERVICE_H