File indexing completed on 2024-12-22 04:56:52

0001 /*
0002  * SPDX-FileCopyrightText: 2013 Christian Mollekopf <mollekopf@kolabsys.com>
0003  *
0004  * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0005  *
0006  */
0007 
0008 #pragma once
0009 
0010 #include "migrationscheduler.h"
0011 class QItemSelectionModel;
0012 #include <QWidget>
0013 
0014 class MigrationStatusWidget : public QWidget
0015 {
0016     Q_OBJECT
0017 public:
0018     explicit MigrationStatusWidget(MigrationScheduler &scheduler, QWidget *parent = nullptr);
0019 
0020 public Q_SLOTS:
0021     void onItemActivated(const QModelIndex &);
0022 
0023 private:
0024     void startSelected();
0025     void pauseSelected();
0026     void abortSelected();
0027     MigrationScheduler &mScheduler;
0028     QItemSelectionModel *mSelectionModel = nullptr;
0029 };