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_PRODUCTIMPORTJOB_H
0008 #define KUSERFEEDBACK_CONSOLE_PRODUCTIMPORTJOB_H
0009 
0010 #include "job.h"
0011 
0012 #include <core/product.h>
0013 
0014 namespace KUserFeedback {
0015 namespace Console {
0016 
0017 class RESTClient;
0018 
0019 class ProductImportJob : public Job
0020 {
0021     Q_OBJECT
0022 public:
0023     explicit ProductImportJob(const QString &source, RESTClient *restClient, QObject *parent = nullptr);
0024     ~ProductImportJob() override;
0025 
0026 private:
0027     void doImportSchema();
0028     void doImportSurveys();
0029     void doImportData();
0030 
0031     Product m_product;
0032     QString m_source;
0033     RESTClient *m_restClient;
0034     int m_jobCount = 0;
0035 };
0036 
0037 }
0038 }
0039 
0040 #endif // KUSERFEEDBACK_CONSOLE_PRODUCTIMPORTJOB_H