File indexing completed on 2025-01-05 04:29:53

0001 /**
0002  * SPDX-FileCopyrightText: 2021 Bart De Vries <bart@mogwai.be>
0003  *
0004  * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0005  */
0006 
0007 #pragma once
0008 
0009 #include <QNetworkReply>
0010 #include <QObject>
0011 #include <QStringList>
0012 #include <QVector>
0013 
0014 #include "sync/gpodder/genericrequest.h"
0015 #include "sync/syncutils.h"
0016 
0017 class SyncRequest : public GenericRequest
0018 {
0019     Q_OBJECT
0020 
0021 public:
0022     SyncRequest(SyncUtils::Provider provider, QNetworkReply *reply, QObject *parent);
0023 
0024     QVector<QStringList> syncedDevices() const;
0025     QStringList unsyncedDevices() const;
0026 
0027 private:
0028     void processResults() override;
0029 
0030     QVector<QStringList> m_syncedDevices;
0031     QStringList m_unsyncedDevices;
0032 };