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 UpdateSyncRequest : public GenericRequest
0018 {
0019     Q_OBJECT
0020 
0021 public:
0022     UpdateSyncRequest(SyncUtils::Provider provider, QNetworkReply *reply, QObject *parent);
0023 
0024     bool success() const;
0025     QVector<QStringList> syncedDevices() const;
0026     QStringList unsyncedDevices() const;
0027 
0028 private:
0029     void processResults() override;
0030 
0031     QVector<QStringList> m_syncedDevices;
0032     QStringList m_unsyncedDevices;
0033     bool m_success = false;
0034 };