36 std::string
id()
const {
return id_; }
41 virtual void setId(
const std::string&
id)
final { id_ =
id; }
49 const std::string& messageId,
50 const std::string& payload)
58 const std::string& webViewId,
This is an abstract class (API) that needs to be implemented by a plugin.
virtual void setId(const std::string &id) final
Should be called by the WebViewHandler creator to set the plugin's id_ variable.
virtual void pluginWebViewMessage(const std::string &webViewId, const std::string &messageId, const std::string &payload)=0
Called by the daemon whenever the client webview sends a message to the plugin.
virtual void pluginWebViewDetach(const std::string &webViewId)=0
Called by the daemon whenever the client detaches a webview.
std::string id() const
Returns the dataPath of the plugin that created this WebViewHandler.
virtual std::string pluginWebViewAttach(const std::string &accountId, const std::string &webViewId, const std::string &action)=0
Called by the daemon whenever the client attaches a new webview.
virtual ~WebViewHandler()
void emitSignal(Args... args)