From bf71faa155c8859863ec3823b40ad8accba81296 Mon Sep 17 00:00:00 2001 From: Robert Griebl Date: Wed, 17 Oct 2018 18:06:32 +0200 Subject: Intents: cleanup and new features - A lot of API and naming cleanup - Intent is now a Q_GADGET and is passed around by value (prerequisite for dynamic app removal) - QUuid in Qml is working nowadays, so we only have to convert for D-Bus - Requests can now also be created from within the system-ui (this had the sideeffect of moving the createIntentRequest functions out of the ApplicationInterface and into the new singleton "IntentClient") Change-Id: I5999be4d67eeadc0b78859e06d16677a27831e24 Reviewed-by: Dominik Holland --- src/manager-lib/qmlinprocessapplicationinterface.cpp | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'src/manager-lib/qmlinprocessapplicationinterface.cpp') diff --git a/src/manager-lib/qmlinprocessapplicationinterface.cpp b/src/manager-lib/qmlinprocessapplicationinterface.cpp index 38bf8b23..b8b5b0dd 100644 --- a/src/manager-lib/qmlinprocessapplicationinterface.cpp +++ b/src/manager-lib/qmlinprocessapplicationinterface.cpp @@ -113,21 +113,6 @@ QVariantMap QmlInProcessApplicationInterface::applicationProperties() const return QVariantMap(); } -IntentClientRequest *QmlInProcessApplicationInterface::createIntentRequest(const QString &intentId, - const QVariantMap ¶meters) -{ - return createIntentRequest(intentId, QString(), parameters); -} - -IntentClientRequest *QmlInProcessApplicationInterface::createIntentRequest(const QString &intentId, - const QString &applicationId, - const QVariantMap ¶meters) -{ - auto req = IntentClientRequest::create(this->applicationId(), intentId, applicationId, parameters); - QQmlEngine::setObjectOwnership(req, QQmlEngine::CppOwnership); - return req; -} - void QmlInProcessApplicationInterface::acknowledgeQuit() { emit quitAcknowledged(); -- cgit v1.2.1