| 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 "pending_call_p.h"cxx . . $ `<file>/online-accounts/lib/qt/LomiriOnlineAccounts/pending_call_p.h`/ |
| 22 | |
| 23 | #include <QDBusPendingCallWatcher> |
| 24 | |
| 25 | using namespace OnlineAccounts; |
| 26 | |
| 27 | PendingCallPrivatecxx . . $ OnlineAccounts/PendingCallPrivate#::PendingCallPrivatecxx . . $ OnlineAccounts/PendingCallPrivate#PendingCallPrivate(f8cc7008d0ea7beb).(Managercxx . . $ OnlineAccounts/Manager# *manager, |
| 28 | const QDBusPendingCallcxx . . $ QDBusPendingCall# &call, |
| 29 | InvokedMethodcxx . . $ OnlineAccounts/PendingCallPrivate#InvokedMethod# method, |
| 30 | AuthenticationMethodcxx . . $ OnlineAccounts/AuthenticationMethod# authMethod): |
| 31 | m_managercxx . . $ OnlineAccounts/PendingCallPrivate#m_manager.(manager), |
| 32 | m_callcxx . . $ OnlineAccounts/PendingCallPrivate#m_call.(call), |
| 33 | m_invokedMethodcxx . . $ OnlineAccounts/PendingCallPrivate#m_invokedMethod.(method), |
| 34 | m_authenticationMethodcxx . . $ OnlineAccounts/PendingCallPrivate#m_authenticationMethod.(authMethod) |
| 35 | { |
| 36 | } |
| 37 | |
| 38 | PendingCallcxx . . $ OnlineAccounts/PendingCall#::PendingCallcxx . . $ OnlineAccounts/PendingCall#PendingCall(161063c57020f47e).(PendingCallPrivatecxx . . $ OnlineAccounts/PendingCallPrivate# *priv): |
| 39 | dcxx . . $ OnlineAccounts/PendingCall#d.(priv) |
| 40 | { |
| 41 | } |
| 42 | |
| 43 | PendingCallcxx . . $ OnlineAccounts/PendingCall#::PendingCallcxx . . $ OnlineAccounts/PendingCall#PendingCall(8feb05cfa3fd417d).(const PendingCallcxx . . $ OnlineAccounts/PendingCall# &other): |
| 44 | dcxx . . $ OnlineAccounts/PendingCall#d.(other.dcxx . . $ OnlineAccounts/PendingCall#d.) |
| 45 | { |
| 46 | } |
| 47 | |
| 48 | PendingCallcxx . . $ OnlineAccounts/PendingCall#::~cxx . . $ OnlineAccounts/PendingCall#`~PendingCall`(ced63f7c635d850d).PendingCallcxx . . $ OnlineAccounts/PendingCall#() |
| 49 | { |
| 50 | } |
| 51 | |
| 52 | PendingCallcxx . . $ OnlineAccounts/PendingCall# &PendingCallcxx . . $ OnlineAccounts/PendingCall#::operatorcxx . . $ OnlineAccounts/PendingCall#`operator=`(c0b6a5cab0ff725a).=(const PendingCallcxx . . $ OnlineAccounts/PendingCall# &other) |
| 53 | { |
| 54 | dcxx . . $ OnlineAccounts/PendingCall#d. =cxx . . $ QExplicitlySharedDataPointer#`operator=`(615f0f4d80227a3e). other.dcxx . . $ OnlineAccounts/PendingCall#d.; |
| 55 | return *this; |
| 56 | } |
| 57 | |
| 58 | bool PendingCallcxx . . $ OnlineAccounts/PendingCall#::isFinishedcxx . . $ OnlineAccounts/PendingCall#isFinished(50ce9a9e25b4a850).() const |
| 59 | { |
| 60 | return dcxx . . $ OnlineAccounts/PendingCall#d.->cxx . . $ QExplicitlySharedDataPointer#`operator->`(5a2a78a048fb49a8).m_callcxx . . $ OnlineAccounts/PendingCallPrivate#m_call..isFinishedcxx . . $ QDBusPendingCall#isFinished(50ce9a9e25b4a850).(); |
| 61 | } |
| 62 | |
| 63 | void PendingCallcxx . . $ OnlineAccounts/PendingCall#::waitForFinishedcxx . . $ OnlineAccounts/PendingCall#waitForFinished(49f6e7a06ebc5aa8).() |
| 64 | { |
| 65 | dcxx . . $ OnlineAccounts/PendingCall#d.->cxx . . $ QExplicitlySharedDataPointer#`operator->`(155dc7f103cdb9db).m_callcxx . . $ OnlineAccounts/PendingCallPrivate#m_call..waitForFinishedcxx . . $ QDBusPendingCall#waitForFinished(49f6e7a06ebc5aa8).(); |
| 66 | } |
| 67 | |
| 68 | namespace OnlineAccountscxx . . $ OnlineAccounts/ { |
| 69 | |
| 70 | class PendingCallWatcherPrivatecxx . . $ OnlineAccounts/PendingCallWatcherPrivate# |
| 71 | { |
| 72 | public: |
| 73 | PendingCallWatcherPrivatecxx . . $ OnlineAccounts/PendingCallWatcherPrivate#PendingCallWatcherPrivate(78b877915468bc86).(PendingCallWatchercxx . . $ OnlineAccounts/PendingCallWatcher# *q); |
| 74 | |
| 75 | private: |
| 76 | QDBusPendingCallWatchercxx . . $ QDBusPendingCallWatcher# m_watchercxx . . $ OnlineAccounts/PendingCallWatcherPrivate#m_watcher.; |
| 77 | }; |
| 78 | |
| 79 | } // namespace |
| 80 | |
| 81 | PendingCallWatcherPrivatecxx . . $ OnlineAccounts/PendingCallWatcherPrivate#::PendingCallWatcherPrivatecxx . . $ OnlineAccounts/PendingCallWatcherPrivate#PendingCallWatcherPrivate(78b877915468bc86).(PendingCallWatchercxx . . $ OnlineAccounts/PendingCallWatcher# *q): |
| 82 | m_watchercxx . . $ OnlineAccounts/PendingCallWatcherPrivate#m_watcher.(q->dcxx . . $ OnlineAccounts/PendingCall#d.->cxx . . $ QExplicitlySharedDataPointer#`operator->`(155dc7f103cdb9db).dbusCallcxx . . $ OnlineAccounts/PendingCallPrivate#dbusCall(431f9381b17f3acb).()) |
| 83 | { |
| 84 | QObjectcxx . . $ QObject#::connectcxx . . $ QObject#connect(158df1d9a01a3410).(&m_watchercxx . . $ OnlineAccounts/PendingCallWatcherPrivate#m_watcher., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(finished(QDBusPendingCallWatcher *)), |
| 85 | q, SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(finished())); |
| 86 | } |
| 87 | |
| 88 | PendingCallWatchercxx . . $ OnlineAccounts/PendingCallWatcher#::PendingCallWatchercxx . . $ OnlineAccounts/PendingCallWatcher#PendingCallWatcher(78e879668eb9f673).(const PendingCallcxx . . $ OnlineAccounts/PendingCall# &call, |
| 89 | QObjectcxx . . $ QObject# *parent): |
| 90 | QObjectcxx . . $ QObject#QObject(749de1b6ae65bddd).(parent), |
| 91 | PendingCallcxx . . $ OnlineAccounts/PendingCall#(call), |
| 92 | d_ptrcxx . . $ OnlineAccounts/PendingCallWatcher#d_ptr.(new PendingCallWatcherPrivatecxx . . $ OnlineAccounts/PendingCallWatcherPrivate#PendingCallWatcherPrivate(78b877915468bc86).(this)) |
| 93 | { |
| 94 | } |
| 95 | |
| 96 | PendingCallWatchercxx . . $ OnlineAccounts/PendingCallWatcher#::~cxx . . $ OnlineAccounts/PendingCallWatcher#`~PendingCallWatcher`(ced63f7c635d850d).PendingCallWatchercxx . . $ OnlineAccounts/PendingCallWatcher#() |
| 97 | { |
| 98 | } |