Krita Source Code Documentation
Loading...
Searching...
No Matches
recorder_snapshots_manager.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2020 Dmitrii Utkin <loentar@gmail.com>
3 *
4 * SPDX-License-Identifier: LGPL-2.1-only
5 */
6
7#ifndef WIDGET_H
8#define WIDGET_H
9
11
12#include <QDialog>
13
14namespace Ui {
16}
17
18class QItemSelection;
20
21class RecorderSnapshotsManager : public QDialog
22{
23 Q_OBJECT
24
25public:
26 RecorderSnapshotsManager(QWidget *parent = nullptr);
28
29 void execFor(const QString &snapshotsDirectory);
30
31protected:
32 void closeEvent(QCloseEvent *event) override;
33
34private Q_SLOTS:
35 void reject() override;
36
38 void onSelectionChanged(const QItemSelection &selected, const QItemSelection &deselected);
42 void onCleanUpFinished();
43
44private:
45 void startScanning();
47 void abortCleanUp();
48
49private:
50 Ui::RecorderSnapshotsManager *ui;
53 QPushButton* cleanUpButton;
54};
55
56#endif // WIDGET_H
RecorderDirectoryCleaner * cleaner
void onScanningFinished(SnapshotDirInfoList snapshots)
RecorderSnapshotsManager(QWidget *parent=nullptr)
RecorderSnapshotsScanner * scanner
void closeEvent(QCloseEvent *event) override
void onSelectionChanged(const QItemSelection &selected, const QItemSelection &deselected)
void execFor(const QString &snapshotsDirectory)
Ui::RecorderSnapshotsManager * ui