ukui-search/frontend/ukui-search-gui.h

28 lines
592 B
C
Raw Normal View History

2022-06-18 10:46:14 +08:00
#ifndef UKUISEARCHGUI_H
#define UKUISEARCHGUI_H
#include <QObject>
#include "qtsingleapplication.h"
#include "mainwindow.h"
#include "ukui-search-dbus-service.h"
#undef Bool
namespace UkuiSearch {
class UkuiSearchGui : public QtSingleApplication
{
Q_OBJECT
public:
UkuiSearchGui(int &argc, char *argv[], const QString &applicationName = "ukui-search-gui");
~UkuiSearchGui();
protected Q_SLOTS:
void parseCmd(QString msg, bool isPrimary);
private:
MainWindow *m_mainWindow = nullptr;
UkuiSearchDbusServices *m_dbusService = nullptr;
};
}
#endif // UKUISEARCHGUI_H