File indexing completed on 2024-12-08 04:33:10

0001 /*
0002 
0003  * SPDX-FileCopyrightText: 2020 Alessandro Ambrosano <alessandro.ambrosano@gmail.com>
0004  *
0005  * SPDX-License-Identifier: LGPL-2.0-or-later
0006  *
0007  */
0008 
0009 #include "ddpapi/ddpmanager.h"
0010 
0011 #include "ddpapi/ddpclient.h"
0012 
0013 #include <QJsonObject>
0014 
0015 DDPManager::DDPManager(DDPClient *ddpClient, QObject *parent)
0016     : QObject(parent)
0017     , mDdpClient(ddpClient)
0018 {
0019 }
0020 
0021 DDPClient *DDPManager::ddpClient() const
0022 {
0023     return mDdpClient;
0024 }
0025 
0026 void DDPManager::processMethodResponse(int opId, const QJsonObject &response)
0027 {
0028     // TODO: any generic preprocessing goes here
0029     processMethodResponseImpl(opId, response);
0030 }
0031 
0032 void DDPManager::processSubscriptionResult(int subId, const QJsonObject &result)
0033 {
0034     // TODO: any generic preprocessing goes here
0035     processSubscriptionResultImpl(subId, result);
0036 }
0037 
0038 #include "moc_ddpmanager.cpp"