File indexing completed on 2024-12-15 03:45:00

0001 /*
0002     SPDX-FileCopyrightText: 2017 Volker Krause <vkrause@kde.org>
0003 
0004     SPDX-License-Identifier: MIT
0005 */
0006 
0007 #ifndef KUSERFEEDBACK_CONSOLE_PRODUCTEXPORTJOB_H
0008 #define KUSERFEEDBACK_CONSOLE_PRODUCTEXPORTJOB_H
0009 
0010 #include "job.h"
0011 #include <rest/restclient.h>
0012 #include <core/product.h>
0013 
0014 namespace KUserFeedback {
0015 namespace Console {
0016 
0017 class ProductExportJob : public Job
0018 {
0019     Q_OBJECT
0020 public:
0021     explicit ProductExportJob(const QString &productId, const QString &destination, RESTClient *restClient, QObject *parent = nullptr);
0022     explicit ProductExportJob(const Product &product, const QString &destination, RESTClient *restClient, QObject *parent = nullptr);
0023     ~ProductExportJob() override;
0024 
0025 private:
0026     void doExportSchema();
0027     void doExportSurveys();
0028     void doExportData();
0029 
0030     QString destination() const;
0031 
0032     Product m_product;
0033     QString m_dest;
0034     RESTClient *m_restClient;
0035 };
0036 
0037 }
0038 }
0039 
0040 #endif // KUSERFEEDBACK_CONSOLE_PRODUCTEXPORTJOB_H