This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
Doric/doric-Qt/example/doric/plugin/DoricNotificationPlugin.h
2021-07-21 19:03:29 +08:00

26 lines
599 B
C++

#ifndef DORICNOTIFICATIONPLUGIN_H
#define DORICNOTIFICATIONPLUGIN_H
#include "DoricExport.h"
#include "DoricNativePlugin.h"
class DORIC_EXPORT DoricNotificationPlugin : public DoricNativePlugin {
Q_OBJECT
private:
QList<QString> subscriptions;
public:
using DoricNativePlugin::DoricNativePlugin;
~DoricNotificationPlugin();
Q_INVOKABLE void publish(QString jsValueString, QString callbackId);
Q_INVOKABLE void subscribe(QString jsValueString, QString callbackId);
Q_INVOKABLE void unsubscribe(QString jsValueString, QString callbackId);
};
#endif // DORICNOTIFICATIONPLUGIN_H