ukui-search/libsearch/plugininterface/action-transmiter.h

27 lines
537 B
C
Raw Normal View History

#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