| 1 | /* |
| 2 | * Copyright (C) 2014 Canonical Ltd. |
| 3 | * |
| 4 | * Contact: Alberto Mardegan <[email protected]> |
| 5 | * |
| 6 | * This file is part of lomiri-online-accounts-ui |
| 7 | * |
| 8 | * This program is free software: you can redistribute it and/or modify it |
| 9 | * under the terms of the GNU General Public License version 3, as published |
| 10 | * 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 General Public License for more details. |
| 16 | * |
| 17 | * You should have received a copy of the GNU General Public License along |
| 18 | * with this program. If not, see <http://www.gnu.org/licenses/>. |
| 19 | */ |
| 20 | |
| 21 | #include "application-manager-mock.h"cxx . . $ `<file>/tests/online-accounts-ui/mock/application-manager-mock.h`/ |
| 22 | |
| 23 | #include <QDebug> |
| 24 | |
| 25 | using namespace OnlineAccountsUi; |
| 26 | |
| 27 | ApplicationManagercxx . . $ OnlineAccountsUi/ApplicationManager# *ApplicationManagercxx . . $ OnlineAccountsUi/ApplicationManager#::m_instancecxx . . $ OnlineAccountsUi/ApplicationManager#m_instance. = 0; |
| 28 | |
| 29 | ApplicationManagerPrivatecxx . . $ OnlineAccountsUi/ApplicationManagerPrivate#::ApplicationManagerPrivatecxx . . $ OnlineAccountsUi/ApplicationManagerPrivate#ApplicationManagerPrivate(d9a895214d23c08e).(ApplicationManagercxx . . $ OnlineAccountsUi/ApplicationManager# *q): |
| 30 | QObjectcxx . . $ QObject#QObject(749de1b6ae65bddd).(q), |
| 31 | q_ptrcxx . . $ OnlineAccountsUi/ApplicationManagerPrivate#q_ptr.(q) |
| 32 | { |
| 33 | } |
| 34 | |
| 35 | ApplicationManagerPrivatecxx . . $ OnlineAccountsUi/ApplicationManagerPrivate#::~cxx . . $ OnlineAccountsUi/ApplicationManagerPrivate#`~ApplicationManagerPrivate`(ced63f7c635d850d).ApplicationManagerPrivatecxx . . $ OnlineAccountsUi/ApplicationManagerPrivate#() |
| 36 | { |
| 37 | } |
| 38 | |
| 39 | ApplicationManagercxx . . $ OnlineAccountsUi/ApplicationManager#::ApplicationManagercxx . . $ OnlineAccountsUi/ApplicationManager#ApplicationManager(749de1b6ae65bddd).(QObjectcxx . . $ QObject# *parent): |
| 40 | QObjectcxx . . $ QObject#QObject(749de1b6ae65bddd).(parent), |
| 41 | d_ptrcxx . . $ OnlineAccountsUi/ApplicationManager#d_ptr.(new ApplicationManagerPrivatecxx . . $ OnlineAccountsUi/ApplicationManagerPrivate#ApplicationManagerPrivate(d9a895214d23c08e).(this)) |
| 42 | { |
| 43 | m_instancecxx . . $ OnlineAccountsUi/ApplicationManager#m_instance. = this; |
| 44 | } |
| 45 | |
| 46 | ApplicationManagercxx . . $ OnlineAccountsUi/ApplicationManager#::~cxx . . $ OnlineAccountsUi/ApplicationManager#`~ApplicationManager`(ced63f7c635d850d).ApplicationManagercxx . . $ OnlineAccountsUi/ApplicationManager#() |
| 47 | { |
| 48 | m_instancecxx . . $ OnlineAccountsUi/ApplicationManager#m_instance. = 0; |
| 49 | } |
| 50 | |
| 51 | ApplicationManagercxx . . $ OnlineAccountsUi/ApplicationManager# *ApplicationManagercxx . . $ OnlineAccountsUi/ApplicationManager#::instancecxx . . $ OnlineAccountsUi/ApplicationManager#instance(e61827766a1125e9).() |
| 52 | { |
| 53 | if (!m_instancecxx . . $ OnlineAccountsUi/ApplicationManager#m_instance.) { |
| 54 | new ApplicationManagercxx . . $ OnlineAccountsUi/ApplicationManager#; |
| 55 | } |
| 56 | return m_instancecxx . . $ OnlineAccountsUi/ApplicationManager#m_instance.; |
| 57 | } |
| 58 | |
| 59 | QVariantMapcxx . . $ QVariantMap# ApplicationManagercxx . . $ OnlineAccountsUi/ApplicationManager#::applicationInfocxx . . $ OnlineAccountsUi/ApplicationManager#applicationInfo(d822f47b982b0b13).(const QStringcxx . . $ QString# &applicationId, |
| 60 | const QStringcxx . . $ QString# &profile) |
| 61 | { |
| 62 | Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(ApplicationManager); |
| 63 | Q_EMITcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:95:10`! d->applicationInfoCalledcxx . . $ OnlineAccountsUi/ApplicationManagerPrivate#applicationInfoCalled(3458fe3960d5051).(applicationIdcxx . . $ QString#QString(132dd6869045752b)., profilecxx . . $ QString#QString(132dd6869045752b).); |
| 64 | return dcxx . . $ QMap#QMap(21739d87639e1d56).->m_applicationInfocxx . . $ OnlineAccountsUi/ApplicationManagerPrivate#m_applicationInfo.[cxx . . $ QHash#`operator[]`(bbd415b616967878).applicationId]; |
| 65 | } |
| 66 | |
| 67 | QVariantMapcxx . . $ QVariantMap# ApplicationManagercxx . . $ OnlineAccountsUi/ApplicationManager#::providerInfocxx . . $ OnlineAccountsUi/ApplicationManager#providerInfo(b5169218cdb2f965).(const QStringcxx . . $ QString# &providerId) const |
| 68 | { |
| 69 | Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(const ApplicationManager); |
| 70 | return d->m_providerInfocxx . . $ OnlineAccountsUi/ApplicationManagerPrivate#m_providerInfo.[cxx . . $ QHash#`operator[]`(bfda1f1f965926d4).providerId]; |
| 71 | } |