#ifndef DIALOG_CLRCACHE_H #define DIALOG_CLRCACHE_H #include #include #include 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