File indexing completed on 2024-04-14 05:39:27

0001 // SPDX-FileCopyrightText: 2020 Simon Persson <simon.persson@mykolab.com>
0002 //
0003 // SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0004 
0005 #ifndef KUPJOB_H
0006 #define KUPJOB_H
0007 
0008 #include <QtGlobal>
0009 
0010 #if QT_VERSION_MAJOR == 5
0011 #include <Plasma/ServiceJob>
0012 #else
0013 #include <Plasma5Support/ServiceJob>
0014 namespace Plasma = Plasma5Support;
0015 #endif
0016 
0017 class QLocalSocket;
0018 
0019 class KupJob : public Plasma::ServiceJob
0020 {
0021     Q_OBJECT
0022 
0023 public:
0024     KupJob(int pPlanNumber, QLocalSocket *pSocket, const QString &pOperation,
0025            QMap<QString, QVariant> &pParameters, QObject *pParent = nullptr);
0026 
0027 protected:
0028     void start() override;
0029     QLocalSocket *mSocket;
0030     int mPlanNumber;
0031 };
0032 
0033 #endif