| 1 | /* |
| 2 | * This file is part of OnlineAccountsModule |
| 3 | * |
| 4 | * Copyright (C) 2015 Canonical Ltd. |
| 5 | * |
| 6 | * Contact: Alberto Mardegan <[email protected]> |
| 7 | * |
| 8 | * This program is free software: you can redistribute it and/or modify it |
| 9 | * under the terms of the GNU Lesser General Public License version 3, as |
| 10 | * published by the Free Software Foundation. |
| 11 | * |
| 12 | * This program is distributed in the hope that it will be useful, but |
| 13 | * WITHOUT ANY WARRANTY; without even the implied warranties of |
| 14 | * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR |
| 15 | * PURPOSE. See the GNU Lesser General Public License for more details. |
| 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public License |
| 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 19 | */ |
| 20 | |
| 21 | #include "authentication_data.h"cxx . . $ `<file>/online-accounts/lib/qml/Lomiri/OnlineAccounts/authentication_data.h`/ |
| 22 | |
| 23 | #include <LomiriOnlineAccounts/PendingCall>cxx . . $ `<file>/online-accounts/lib/qt/LomiriOnlineAccounts/PendingCall`/ |
| 24 | #include <QDebug> |
| 25 | |
| 26 | QVariantMapcxx . . $ QVariantMap# replyToMapcxx . . $ replyToMap(259f5df199cf362f).(const OnlineAccountscxx . . $ OnlineAccounts/::PendingCallcxx . . $ OnlineAccounts/PendingCall# &call) |
| 27 | { |
| 28 | OnlineAccountscxx . . $ OnlineAccounts/::AuthenticationReplycxx . . $ OnlineAccounts/AuthenticationReply# replycxx . . $ OnlineAccounts/AuthenticationReply#AuthenticationReply(8feb05cfa3fd417d).(call); |
| 29 | return reply.datacxx . . $ OnlineAccounts/AuthenticationReply#data(87f780dbe64191c4).(); |
| 30 | } |
| 31 | |
| 32 | OnlineAccountscxx . . $ OnlineAccounts/::AuthenticationDatacxx . . $ OnlineAccounts/AuthenticationData# |
| 33 | authenticationDataFromMapcxx . . $ authenticationDataFromMap(451eacff083bcf72).(const QVariantMapcxx . . $ QVariantMap# ¶ms, |
| 34 | OnlineAccountscxx . . $ OnlineAccounts/::AuthenticationMethodcxx . . $ OnlineAccounts/AuthenticationMethod# method) |
| 35 | { |
| 36 | OnlineAccountscxx . . $ OnlineAccounts/::AuthenticationDatacxx . . $ OnlineAccounts/AuthenticationData# datacxx . . $ OnlineAccounts/AuthenticationData#AuthenticationData(7da24708d9652a04).(method); |
| 37 | QVariantMapcxx . . $ QVariantMap# cleanedParamscxx . . $ QMap#QMap(21739d87639e1d56).(params); |
| 38 | data.setInteractivecxx . . $ OnlineAccounts/AuthenticationData#setInteractive(b45ddcbc8423892c).(params.valuecxx . . $ QMap#value(866b0a4e5fb46e14).("interactive"cxx . . $ QString#QString(85c52e162fed56f9)., truecxx . . $ QVariant#QVariant(b45ddcbc8423892c).).toBoolcxx . . $ QVariant#toBool(50ce9a9e25b4a850).()); |
| 39 | if (params[cxx . . $ QMap#`operator[]`(bfda1f1f965926d4)."invalidateCachedReply"cxx . . $ QString#QString(85c52e162fed56f9).].toBoolcxx . . $ QVariant#toBool(50ce9a9e25b4a850).()) { |
| 40 | data.invalidateCachedReplycxx . . $ OnlineAccounts/AuthenticationData#invalidateCachedReply(49f6e7a06ebc5aa8).(); |
| 41 | } |
| 42 | cleanedParams.removecxx . . $ QMap#remove(dd8e59d271e40448).("interactive"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 43 | cleanedParams.removecxx . . $ QMap#remove(dd8e59d271e40448).("invalidateCachedReply"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 44 | data.setParameterscxx . . $ OnlineAccounts/AuthenticationData#setParameters(3e95df3e31f2cce8).(cleanedParams); |
| 45 | return datacxx . . $ OnlineAccounts/AuthenticationData#AuthenticationData(5e7e32e4e0c8221a).; |
| 46 | } |