| 1 | /* |
| 2 | * This file is part of libOnlineAccounts |
| 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 "account_p.h"cxx . . $ `<file>/online-accounts/lib/qt/LomiriOnlineAccounts/account_p.h`/ |
| 22 | |
| 23 | #include "manager_p.h"cxx . . $ `<file>/online-accounts/lib/qt/LomiriOnlineAccounts/manager_p.h`/ |
| 24 | |
| 25 | using namespace OnlineAccounts; |
| 26 | |
| 27 | AccountPrivatecxx . . $ OnlineAccounts/AccountPrivate#::AccountPrivatecxx . . $ OnlineAccounts/AccountPrivate#AccountPrivate(c7640a4abd9062db).(Managercxx . . $ OnlineAccounts/Manager# *manager, const AccountInfocxx . . $ OnlineAccounts/AccountInfo# &info): |
| 28 | m_managercxx . . $ OnlineAccounts/AccountPrivate#m_manager.(manager), |
| 29 | m_infocxx . . $ OnlineAccounts/AccountPrivate#m_info.(info), |
| 30 | m_isValidcxx . . $ OnlineAccounts/AccountPrivate#m_isValid.(true), |
| 31 | q_ptrcxx . . $ OnlineAccounts/AccountPrivate#q_ptr.(0) |
| 32 | { |
| 33 | } |
| 34 | |
| 35 | AccountPrivatecxx . . $ OnlineAccounts/AccountPrivate#::~cxx . . $ OnlineAccounts/AccountPrivate#`~AccountPrivate`(ced63f7c635d850d).AccountPrivatecxx . . $ OnlineAccounts/AccountPrivate#() |
| 36 | { |
| 37 | } |
| 38 | |
| 39 | void AccountPrivatecxx . . $ OnlineAccounts/AccountPrivate#::setInvalidcxx . . $ OnlineAccounts/AccountPrivate#setInvalid(49f6e7a06ebc5aa8).() |
| 40 | { |
| 41 | Q_Qcxx . . $ `<external>/15045578679651060896/qglobal.h:1178:9`!(Account); |
| 42 | m_isValidcxx . . $ OnlineAccounts/AccountPrivate#m_isValid. = false; |
| 43 | Q_EMITcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:95:10`! q->disabledcxx . . $ OnlineAccounts/Account#disabled(49f6e7a06ebc5aa8).(); |
| 44 | } |
| 45 | |
| 46 | void AccountPrivatecxx . . $ OnlineAccounts/AccountPrivate#::updatecxx . . $ OnlineAccounts/AccountPrivate#update(dc8474b24a08e8e4).(const AccountInfocxx . . $ OnlineAccounts/AccountInfo# &info) |
| 47 | { |
| 48 | Q_Qcxx . . $ `<external>/15045578679651060896/qglobal.h:1178:9`!(Account); |
| 49 | |
| 50 | if (info !=cxx . . $ OnlineAccounts/AccountInfo#`operator!=`(e7eb4e2a59f43bc). m_infocxx . . $ OnlineAccounts/AccountPrivate#m_info.) { |
| 51 | m_infocxx . . $ OnlineAccounts/AccountPrivate#m_info. =cxx . . $ OnlineAccounts/AccountInfo#`operator=`(913117e86a44c50e). info; |
| 52 | Q_EMITcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:95:10`! q->changedcxx . . $ OnlineAccounts/Account#changed(49f6e7a06ebc5aa8).(); |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | Servicecxx . . $ OnlineAccounts/Service# AccountPrivatecxx . . $ OnlineAccounts/AccountPrivate#::servicecxx . . $ OnlineAccounts/AccountPrivate#service(7ad0f4f8a29cc02d).() const |
| 57 | { |
| 58 | return m_managercxx . . $ OnlineAccounts/AccountPrivate#m_manager.->d_ptrcxx . . $ OnlineAccounts/Manager#d_ptr.->servicecxx . . $ OnlineAccounts/ManagerPrivate#service(1fbeb80c15612fcf).(m_infocxx . . $ OnlineAccounts/AccountPrivate#m_info..servicecxx . . $ OnlineAccounts/AccountInfo#service(6ef7b6c27b00b43d).()); |
| 59 | } |
| 60 | |
| 61 | Accountcxx . . $ OnlineAccounts/Account#::Accountcxx . . $ OnlineAccounts/Account#Account(3615b8868ca75e0c).(AccountPrivatecxx . . $ OnlineAccounts/AccountPrivate# *priv, QObjectcxx . . $ QObject# *parent): |
| 62 | QObjectcxx . . $ QObject#QObject(749de1b6ae65bddd).(parent), |
| 63 | d_ptrcxx . . $ OnlineAccounts/Account#d_ptr.(priv) |
| 64 | { |
| 65 | priv->q_ptrcxx . . $ OnlineAccounts/AccountPrivate#q_ptr. = this; |
| 66 | } |
| 67 | |
| 68 | Accountcxx . . $ OnlineAccounts/Account#::~cxx . . $ OnlineAccounts/Account#`~Account`(ced63f7c635d850d).Accountcxx . . $ OnlineAccounts/Account#() |
| 69 | { |
| 70 | delete d_ptrcxx . . $ OnlineAccounts/Account#d_ptr.; |
| 71 | d_ptrcxx . . $ OnlineAccounts/Account#d_ptr. = 0; |
| 72 | } |
| 73 | |
| 74 | bool Accountcxx . . $ OnlineAccounts/Account#::isValidcxx . . $ OnlineAccounts/Account#isValid(50ce9a9e25b4a850).() const |
| 75 | { |
| 76 | Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(const Account); |
| 77 | return d->m_isValidcxx . . $ OnlineAccounts/AccountPrivate#m_isValid.; |
| 78 | } |
| 79 | |
| 80 | Servicecxx . . $ OnlineAccounts/Service# Accountcxx . . $ OnlineAccounts/Account#::servicecxx . . $ OnlineAccounts/Account#service(7ad0f4f8a29cc02d).() const |
| 81 | { |
| 82 | Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(const Account); |
| 83 | return d->servicecxx . . $ OnlineAccounts/AccountPrivate#service(7ad0f4f8a29cc02d).(); |
| 84 | } |
| 85 | |
| 86 | AccountIdcxx . . $ OnlineAccounts/AccountId# Accountcxx . . $ OnlineAccounts/Account#::idcxx . . $ OnlineAccounts/Account#id(ddd8539a2fcdd4ce).() const |
| 87 | { |
| 88 | Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(const Account); |
| 89 | return d->m_infocxx . . $ OnlineAccounts/AccountPrivate#m_info..idcxx . . $ OnlineAccounts/AccountInfo#id(ddd8539a2fcdd4ce).(); |
| 90 | } |
| 91 | |
| 92 | QStringcxx . . $ QString# Accountcxx . . $ OnlineAccounts/Account#::displayNamecxx . . $ OnlineAccounts/Account#displayName(6ef7b6c27b00b43d).() const |
| 93 | { |
| 94 | Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(const Account); |
| 95 | return d->m_infocxx . . $ OnlineAccounts/AccountPrivate#m_info..displayNamecxx . . $ OnlineAccounts/AccountInfo#displayName(6ef7b6c27b00b43d).(); |
| 96 | } |
| 97 | |
| 98 | QStringcxx . . $ QString# Accountcxx . . $ OnlineAccounts/Account#::serviceIdcxx . . $ OnlineAccounts/Account#serviceId(6ef7b6c27b00b43d).() const |
| 99 | { |
| 100 | Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(const Account); |
| 101 | return d->m_infocxx . . $ OnlineAccounts/AccountPrivate#m_info..servicecxx . . $ OnlineAccounts/AccountInfo#service(6ef7b6c27b00b43d).(); |
| 102 | } |
| 103 | |
| 104 | AuthenticationMethodcxx . . $ OnlineAccounts/AuthenticationMethod# Accountcxx . . $ OnlineAccounts/Account#::authenticationMethodcxx . . $ OnlineAccounts/Account#authenticationMethod(5844b1512d846331).() const |
| 105 | { |
| 106 | Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(const Account); |
| 107 | return d->m_infocxx . . $ OnlineAccounts/AccountPrivate#m_info..authenticationMethodcxx . . $ OnlineAccounts/AccountInfo#authenticationMethod(5844b1512d846331).(); |
| 108 | } |
| 109 | |
| 110 | QStringListcxx . . $ QStringList# Accountcxx . . $ OnlineAccounts/Account#::keyscxx . . $ OnlineAccounts/Account#keys(e1dbd5c4feadc8f5).() const |
| 111 | { |
| 112 | Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(const Account); |
| 113 | return d->m_infocxx . . $ OnlineAccounts/AccountPrivate#m_info..keyscxx . . $ OnlineAccounts/AccountInfo#keys(e1dbd5c4feadc8f5).(); |
| 114 | } |
| 115 | |
| 116 | QVariantcxx . . $ QVariant# Accountcxx . . $ OnlineAccounts/Account#::settingcxx . . $ OnlineAccounts/Account#setting(f6a024953685a9e0).(const QStringcxx . . $ QString# &key) const |
| 117 | { |
| 118 | Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(const Account); |
| 119 | return d->m_infocxx . . $ OnlineAccounts/AccountPrivate#m_info..settingcxx . . $ OnlineAccounts/AccountInfo#setting(f6a024953685a9e0).(key); |
| 120 | } |
| 121 | |
| 122 | PendingCallcxx . . $ OnlineAccounts/PendingCall# Accountcxx . . $ OnlineAccounts/Account#::authenticatecxx . . $ OnlineAccounts/Account#authenticate(e8c79b7e1e87f1df).(const AuthenticationDatacxx . . $ OnlineAccounts/AuthenticationData# &authData) |
| 123 | { |
| 124 | Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(Account); |
| 125 | ManagerPrivatecxx . . $ OnlineAccounts/ManagerPrivate# *mPriv = d->m_managercxx . . $ OnlineAccounts/AccountPrivate#m_manager.->d_ptrcxx . . $ OnlineAccounts/Manager#d_ptr.; |
| 126 | return mPriv->authenticatecxx . . $ OnlineAccounts/ManagerPrivate#authenticate(407aa23a9e5797be).(d->m_infocxx . . $ OnlineAccounts/AccountPrivate#m_info., authData); |
| 127 | } |