File indexing completed on 2024-04-28 09:41:48
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 PLANSTATUSWIDGET_H 0006 #define PLANSTATUSWIDGET_H 0007 0008 #include <QGroupBox> 0009 0010 class BackupPlan; 0011 class KupSettings; 0012 0013 class QPushButton; 0014 0015 class QLabel; 0016 0017 class PlanStatusWidget: public QGroupBox 0018 { 0019 Q_OBJECT 0020 public: 0021 explicit PlanStatusWidget(BackupPlan *pPlan, QWidget *pParent = nullptr); 0022 BackupPlan *plan() const {return mPlan;} 0023 0024 BackupPlan *mPlan; 0025 QLabel *mDescriptionLabel; 0026 QLabel *mStatusIconLabel; 0027 QLabel *mStatusTextLabel; 0028 0029 public slots: 0030 void updateIcon(); 0031 0032 signals: 0033 void removeMe(); 0034 void configureMe(); 0035 void duplicateMe(); 0036 }; 0037 0038 0039 #endif // PLANSTATUSWIDGET_H