code_app/app/scanner2/dialog_clrcache.h

46 lines
859 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>
2022-11-30 02:34:36 +00:00
#include "mainwindow.h"
2022-05-03 10:25:52 +00:00
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();
2022-11-30 02:34:36 +00:00
void on_btn_directory_clicked();
2022-11-30 06:29:02 +00:00
void on_pbtn_ok_clicked();
void on_pbtn_cancel_clicked();
2022-05-03 10:25:52 +00:00
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;
2022-11-30 02:34:36 +00:00
MainWindow *m_mainWindow;
2022-05-03 10:25:52 +00:00
};
#endif // DIALOG_CLRCACHE_H