code_app/app/scanner/dialog_clrcache.h

41 lines
734 B
C
Raw Normal View History

2022-05-03 10:25:52 +00:00
#ifndef DIALOG_CLRCACHE_H
#define DIALOG_CLRCACHE_H
#include <QDialog>
#include <QButtonGroup>
#include <QPushButton>
namespace Ui {
class Dialog_ClrCache;
}
class Dialog_ClrCache : public QDialog
{
Q_OBJECT
public:
explicit Dialog_ClrCache(QWidget *parent = nullptr);
~Dialog_ClrCache();
static QString getCachePath();
signals:
void clearCache();
private slots:
void on_btn_clr_clicked();
void on_btn_close_clicked();
private:
bool clrCache(const QString &path);
qint64 getDirSize(const QString &path);
int getFileNum(const QString &path);
void setInformation(const QString &path);
private:
Ui::Dialog_ClrCache *ui;
QString m_cachePath;
};
#endif // DIALOG_CLRCACHE_H