| 1 | /* |
| 2 | * This file is part of OnlineAccountsDaemon |
| 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 "async_operation.h"cxx . . $ `<file>/online-accounts-daemon/lib/LomiriOnlineAccountsDaemon/async_operation.h`/ |
| 22 | |
| 23 | #include <QDebug> |
| 24 | #include "manager_adaptor.h"cxx . . $ `<file>/online-accounts-daemon/lib/LomiriOnlineAccountsDaemon/manager_adaptor.h`/ |
| 25 | |
| 26 | using namespace OnlineAccountsDaemon; |
| 27 | |
| 28 | namespace OnlineAccountsDaemoncxx . . $ OnlineAccountsDaemon/ { |
| 29 | |
| 30 | class AsyncOperationPrivatecxx . . $ OnlineAccountsDaemon/AsyncOperationPrivate# |
| 31 | { |
| 32 | Q_DECLARE_PUBLICcxx . . $ `<external>/15045578679651060896/qglobal.h:1172:9`!(AsyncOperation) |
| 33 | |
| 34 | public: |
| 35 | AsyncOperationPrivatecxx . . $ OnlineAccountsDaemon/AsyncOperationPrivate#AsyncOperationPrivate(ad9e89d09d543819).(AsyncOperationcxx . . $ OnlineAccountsDaemon/AsyncOperation# *q, const CallContextcxx . . $ OnlineAccountsDaemon/CallContext# &context); |
| 36 | |
| 37 | private: |
| 38 | CallContextcxx . . $ OnlineAccountsDaemon/CallContext# m_contextcxx . . $ OnlineAccountsDaemon/AsyncOperationPrivate#m_context.; |
| 39 | AsyncOperationcxx . . $ OnlineAccountsDaemon/AsyncOperation# *q_ptrcxx . . $ OnlineAccountsDaemon/AsyncOperationPrivate#q_ptr.; |
| 40 | }; |
| 41 | |
| 42 | } // namespace |
| 43 | |
| 44 | AsyncOperationPrivatecxx . . $ OnlineAccountsDaemon/AsyncOperationPrivate#::AsyncOperationPrivatecxx . . $ OnlineAccountsDaemon/AsyncOperationPrivate#AsyncOperationPrivate(ad9e89d09d543819).(AsyncOperationcxx . . $ OnlineAccountsDaemon/AsyncOperation# *q, |
| 45 | const CallContextcxx . . $ OnlineAccountsDaemon/CallContext# &context): |
| 46 | m_contextcxx . . $ OnlineAccountsDaemon/AsyncOperationPrivate#m_context.(context), |
| 47 | q_ptrcxx . . $ OnlineAccountsDaemon/AsyncOperationPrivate#q_ptr.(q) |
| 48 | { |
| 49 | m_contextcxx . . $ OnlineAccountsDaemon/AsyncOperationPrivate#m_context..setDelayedReplycxx . . $ OnlineAccountsDaemon/CallContext#setDelayedReply(b45ddcbc8423892c).(true); |
| 50 | } |
| 51 | |
| 52 | AsyncOperationcxx . . $ OnlineAccountsDaemon/AsyncOperation#::AsyncOperationcxx . . $ OnlineAccountsDaemon/AsyncOperation#AsyncOperation(fd99699e6e8f0995).(const CallContextcxx . . $ OnlineAccountsDaemon/CallContext# &context, QObjectcxx . . $ QObject# *parent): |
| 53 | QObjectcxx . . $ QObject#QObject(749de1b6ae65bddd).(parent), |
| 54 | d_ptrcxx . . $ OnlineAccountsDaemon/AsyncOperation#d_ptr.(new AsyncOperationPrivatecxx . . $ OnlineAccountsDaemon/AsyncOperationPrivate#AsyncOperationPrivate(ad9e89d09d543819).(this, context)) |
| 55 | { |
| 56 | } |
| 57 | |
| 58 | AsyncOperationcxx . . $ OnlineAccountsDaemon/AsyncOperation#::~cxx . . $ OnlineAccountsDaemon/AsyncOperation#`~AsyncOperation`(ced63f7c635d850d).AsyncOperationcxx . . $ OnlineAccountsDaemon/AsyncOperation#() |
| 59 | { |
| 60 | delete d_ptrcxx . . $ OnlineAccountsDaemon/AsyncOperation#d_ptr.; |
| 61 | } |
| 62 | |
| 63 | const CallContextcxx . . $ OnlineAccountsDaemon/CallContext# &AsyncOperationcxx . . $ OnlineAccountsDaemon/AsyncOperation#::contextcxx . . $ OnlineAccountsDaemon/AsyncOperation#context(9e3b8001b425112b).() const |
| 64 | { |
| 65 | Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(const AsyncOperation); |
| 66 | return d->m_contextcxx . . $ OnlineAccountsDaemon/AsyncOperationPrivate#m_context.; |
| 67 | } |
| 68 | |
| 69 | void AsyncOperationcxx . . $ OnlineAccountsDaemon/AsyncOperation#::setReplycxx . . $ OnlineAccountsDaemon/AsyncOperation#setReply(2f4009bfc0c7e161).(const QListcxx . . $ QList#<QVariantcxx . . $ QVariant#> &reply) |
| 70 | { |
| 71 | Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(AsyncOperation); |
| 72 | d->m_contextcxx . . $ OnlineAccountsDaemon/AsyncOperationPrivate#m_context..sendReplycxx . . $ OnlineAccountsDaemon/CallContext#sendReply(43b2c7823722fc17).(reply); |
| 73 | this->deleteLatercxx . . $ QObject#deleteLater(49f6e7a06ebc5aa8).(); |
| 74 | } |
| 75 | |
| 76 | void AsyncOperationcxx . . $ OnlineAccountsDaemon/AsyncOperation#::setErrorcxx . . $ OnlineAccountsDaemon/AsyncOperation#setError(c1427772cd1877b0).(const QStringcxx . . $ QString# &name, const QStringcxx . . $ QString# &message) |
| 77 | { |
| 78 | Q_Dcxx . . $ `<external>/15045578679651060896/qglobal.h:1177:9`!(AsyncOperation); |
| 79 | d->m_contextcxx . . $ OnlineAccountsDaemon/AsyncOperationPrivate#m_context..sendErrorcxx . . $ OnlineAccountsDaemon/CallContext#sendError(b5b78ffdab614c30).(name, message); |
| 80 | this->deleteLatercxx . . $ QObject#deleteLater(49f6e7a06ebc5aa8).(); |
| 81 | } |