forked from openkylin/ukui-search
27 lines
537 B
C++
27 lines
537 B
C++
#ifndef ACTIONTRANSMITER_H
|
|
#define ACTIONTRANSMITER_H
|
|
|
|
#include <QObject>
|
|
#include "search-plugin-iface.h"
|
|
namespace UkuiSearch {
|
|
/**
|
|
* @brief The ActionTransmiter class
|
|
* 转发搜索插件的action调用信号
|
|
*/
|
|
class ActionTransmiter : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
static ActionTransmiter *getInstance();
|
|
Q_INVOKABLE void invokeActions(SearchPluginIface::InvokableActions actions);
|
|
|
|
Q_SIGNALS:
|
|
void hideUIAction();
|
|
|
|
private:
|
|
ActionTransmiter(QObject *parent = nullptr);
|
|
};
|
|
|
|
}
|
|
#endif // ACTIONTRANSMITER_H
|