Warning, file /system/kup/purger/purger.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // SPDX-FileCopyrightText: 2021 Simon Persson <simon.persson@mykolab.com>
0002 //
0003 // SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0004 
0005 #ifndef PURGER_H
0006 #define PURGER_H
0007 
0008 #include <KMainWindow>
0009 #include <KProcess>
0010 #include <QListWidget>
0011 #include <QTextEdit>
0012 #include <QUrl>
0013 
0014 class Purger : public KMainWindow
0015 {
0016     Q_OBJECT
0017 public:
0018     explicit Purger(QString pRepoPath, QString pBranchName, QWidget *pParent = nullptr);
0019     QSize sizeHint() const override;
0020 
0021 protected slots:
0022     void fillListWidget();
0023     void listDone(int, QProcess::ExitStatus);
0024     void purge();
0025     void purgeDone(int, QProcess::ExitStatus);
0026 
0027 protected:
0028     QListWidget *mListWidget {};
0029     QTextEdit *mTextEdit {};
0030     KProcess *mCollectProcess {};
0031     KProcess *mListProcess {};
0032     QHash<QString, QListWidgetItem*> mHashes;
0033     QAction *mDeleteAction {};
0034     QString mRepoPath;
0035     QString mBranchName;
0036 };
0037 
0038 #endif // PURGER_H