#include "notificationservice.h" #include "qmlnotifyservice.h" #include #include namespace QmlNotificationService { bool init(QQmlApplicationEngine *engine) { auto root = engine->rootContext(); if (!root) return false; root->setContextProperty("notificationService", NotificationService::getService()); return true; } }