File indexing completed on 2024-03-24 05:57:10
0001 /* 0002 SPDX-FileCopyrightText: 2003-2005 Ralf Hoelzer <ralf@well.com> 0003 0004 SPDX-License-Identifier: LGPL-2.1-or-later 0005 */ 0006 0007 #ifndef SWEEPER_H 0008 #define SWEEPER_H 0009 0010 #include <KConfigGroup> 0011 #include <KXmlGuiWindow> 0012 0013 #include <QList> 0014 0015 #include "ui_sweeperdialog.h" 0016 0017 class PrivacyAction; 0018 class QTreeWidgetItem; 0019 0020 class Sweeper: public KXmlGuiWindow 0021 { 0022 public: 0023 // if automatic is true, no user interaction is required 0024 explicit Sweeper(bool automatic); 0025 ~Sweeper() override; 0026 0027 void cleanup(); 0028 0029 private: 0030 void selectAll(); 0031 void selectNone(); 0032 0033 /** 0034 * methods 0035 */ 0036 void load(); 0037 void save(); 0038 0039 /** 0040 * Set up all the actions we are going to manage. 0041 */ 0042 void InitActions(); 0043 0044 /** 0045 * attributes 0046 */ 0047 Ui::SweeperDialog ui; 0048 0049 QList<PrivacyAction*> checklist; 0050 0051 QTreeWidgetItem * const m_generalCLI; 0052 QTreeWidgetItem * const m_webbrowsingCLI; 0053 0054 KConfigGroup m_privacyConfGroup; 0055 0056 bool m_automatic; 0057 }; 0058 0059 #endif 0060 0061 // kate: tab-width 3; indent-mode cstyle; replace-tabs true;