1 | /** |
2 | * Copyright (c) 2003-2005 Ralf Hoelzer <ralf@well.com> |
3 | * |
4 | * This program is free software; you can redistribute it and/or modify |
5 | * it under the terms of the GNU Lesser General Public License as published |
6 | * by the Free Software Foundation; either version 2.1 of the License, or |
7 | * (at your option) any later version. |
8 | * |
9 | * This program is distributed in the hope that it will be useful, |
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | * GNU Lesser General Public License for more details. |
13 | * |
14 | * You should have received a copy of the GNU Lesser General Public License |
15 | * along with this program; if not, write to the Free Software |
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
17 | */ |
18 | |
19 | #ifndef SWEEPER_H |
20 | #define SWEEPER_H |
21 | |
22 | #include <kconfiggroup.h> |
23 | #include <kxmlguiwindow.h> |
24 | |
25 | #include <QLinkedList> |
26 | |
27 | #include "ui_sweeperdialog.h" |
28 | |
29 | class PrivacyAction; |
30 | class QTreeWidgetItem; |
31 | |
32 | class Sweeper: public KXmlGuiWindow |
33 | { |
34 | Q_OBJECT |
35 | |
36 | public: |
37 | // if automatic is true, no user interaction is required |
38 | Sweeper(bool automatic); |
39 | ~Sweeper(); |
40 | |
41 | public slots: |
42 | void cleanup(); |
43 | |
44 | private slots: |
45 | void selectAll(); |
46 | void selectNone(); |
47 | |
48 | private: |
49 | /** |
50 | * methods |
51 | */ |
52 | void load(); |
53 | void save(); |
54 | |
55 | /** |
56 | * Set up all the actions we are going to manage. |
57 | */ |
58 | void InitActions(); |
59 | |
60 | /** |
61 | * attributes |
62 | */ |
63 | Ui::SweeperDialog ui; |
64 | |
65 | QLinkedList<PrivacyAction*> checklist; |
66 | |
67 | QTreeWidgetItem *generalCLI; |
68 | QTreeWidgetItem *webbrowsingCLI; |
69 | |
70 | KConfigGroup m_privacyConfGroup; |
71 | |
72 | bool m_automatic; |
73 | }; |
74 | |
75 | #endif |
76 | |
77 | // kate: tab-width 3; indent-mode cstyle; replace-tabs true; |
78 | |