mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-30 17:24:08 +00:00
25 lines
398 B
C
25 lines
398 B
C
|
#ifndef GLOBAL_GLOBALBROADCASTER_H
|
||
|
#define GLOBAL_GLOBALBROADCASTER_H
|
||
|
|
||
|
#include <QObject>
|
||
|
|
||
|
struct ActiveDictIds {
|
||
|
QString word;
|
||
|
QStringList dictIds;
|
||
|
}
|
||
|
;
|
||
|
|
||
|
class GlobalBroadcaster : public QObject
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
public:
|
||
|
GlobalBroadcaster(QObject *parent = nullptr);
|
||
|
static GlobalBroadcaster *instance();
|
||
|
signals:
|
||
|
void emitDictIds(ActiveDictIds ad);
|
||
|
|
||
|
};
|
||
|
|
||
|
|
||
|
#endif // GLOBAL_GLOBALBROADCASTER_H
|