quarkai/cleaner/cleanermainwidget.h

88 lines
2.4 KiB
C
Raw Permalink Normal View History

2017-12-21 11:51:56 +08:00
/*
* Copyright (C) 2013 ~ 2015 National University of Defense Technology(NUDT) & Kylin Ltd.
*
* Authors:
* Kobe Lee xiangli@ubuntukylin.com/kobe24_lixiang@126.com
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 3.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef CLEANERMAINWIDGET_H
#define CLEANERMAINWIDGET_H
#include <QWidget>
#include <QStackedWidget>
2018-02-10 18:39:19 +08:00
#include <QMap>
#include <QVariant>
2018-02-10 14:40:50 +08:00
#include "../component/utils.h"
2017-12-21 11:51:56 +08:00
2018-02-10 18:39:19 +08:00
class QLabel;
2017-12-21 11:51:56 +08:00
class MainWindow;
class CleanGroup;
class Toolkits;
class CleanerMainWidget : public QWidget
{
Q_OBJECT
public:
2018-02-10 14:40:50 +08:00
explicit CleanerMainWidget(QWidget *parent = 0, MainWindow *window = 0, Toolkits *kits = 0, QString skin = ":/background/res/skin/1.png");
2017-12-21 11:51:56 +08:00
~CleanerMainWidget();
void setLanguage();
void getAllScanSelectedItems();
void resetCurrentSkin(QString skin);
public slots:
void onButtonClicked();
void receiveScanSignal();
2018-02-10 14:40:50 +08:00
void onRefreshSelectedItems(CleanerCategoryID id, const QStringList &infos);
void resetDefaultStatus();
2017-12-21 11:51:56 +08:00
signals:
void showActionAnimaiton();
2018-01-17 11:45:16 +08:00
void startScanSystem(QMap<QString, QVariant> itemsMap);
2017-12-21 11:51:56 +08:00
private:
MainWindow *parentWindow;
QLabel *tip_label;
CleanGroup *cache_btn;
2018-02-10 14:40:50 +08:00
// CleanerItems *cache_items;
2017-12-21 11:51:56 +08:00
// CleanGroup *package_btn;
// CleanerItems *package_items;
CleanGroup *cookies_btn;
2018-02-10 14:40:50 +08:00
// CleanerItems *cookies_items;
2017-12-21 11:51:56 +08:00
CleanGroup *trace_btn;
2018-02-10 14:40:50 +08:00
// CleanerItems *trace_items;
2017-12-21 11:51:56 +08:00
QMap<QString, QVariant> argsMap;
Toolkits *toolKits;
2018-02-10 14:40:50 +08:00
QStringList cache_list;
QStringList cache_status_list;
QStringList cookies_list;
QStringList cookies_status_list;
QStringList trace_list;
QStringList trace_status_list;
QStringList m_selectedCache;
QStringList m_selectedCookie;
QStringList m_selectedTrace;
2017-12-21 11:51:56 +08:00
};
#endif // CLEANERMAINWIDGET_H