@@ -131,6 +131,42 @@ QDBusPendingReply<> Offline::triggerUpgrade(Action action)
131131 return QDBusConnection::systemBus ().asyncCall (msg, 24 * 60 * 1000 * 1000 );
132132}
133133
134+ QDBusPendingReply<bool > Offline::getResult ()
135+ {
136+ // Manually invoke dbus because the qdbusxml2cpp does not allow
137+ // setting the ALLOW_INTERACTIVE_AUTHORIZATION flag
138+ auto msg = QDBusMessage::createMethodCall (PK_NAME,
139+ PK_PATH,
140+ PK_OFFLINE_INTERFACE,
141+ QStringLiteral (" GetResult" ));
142+ msg.setInteractiveAuthorizationAllowed (true );
143+ return QDBusConnection::systemBus ().asyncCall (msg, 24 * 60 * 1000 * 1000 );
144+ }
145+
146+ QDBusPendingReply<QStringList> Offline::getResultPackages ()
147+ {
148+ // Manually invoke dbus because the qdbusxml2cpp does not allow
149+ // setting the ALLOW_INTERACTIVE_AUTHORIZATION flag
150+ auto msg = QDBusMessage::createMethodCall (PK_NAME,
151+ PK_PATH,
152+ PK_OFFLINE_INTERFACE,
153+ QStringLiteral (" GetResultPackages" ));
154+ msg.setInteractiveAuthorizationAllowed (true );
155+ return QDBusConnection::systemBus ().asyncCall (msg, 24 * 60 * 1000 * 1000 );
156+ }
157+
158+ QDBusPendingReply<QString, QString> Offline::getResultError ()
159+ {
160+ // Manually invoke dbus because the qdbusxml2cpp does not allow
161+ // setting the ALLOW_INTERACTIVE_AUTHORIZATION flag
162+ auto msg = QDBusMessage::createMethodCall (PK_NAME,
163+ PK_PATH,
164+ PK_OFFLINE_INTERFACE,
165+ QStringLiteral (" GetResultError" ));
166+ msg.setInteractiveAuthorizationAllowed (true );
167+ return QDBusConnection::systemBus ().asyncCall (msg, 24 * 60 * 1000 * 1000 );
168+ }
169+
134170QDBusPendingReply<> Offline::cancel ()
135171{
136172 // Manually invoke dbus because the qdbusxml2cpp does not allow
0 commit comments