1 | /** |
2 | * kprivacymanager.h |
3 | * |
4 | * Copyright (c) 2003 Ralf Hoelzer <ralf@well.com> |
5 | * |
6 | * This program is free software; you can redistribute it and/or modify |
7 | * it under the terms of the GNU Lesser General Public License as published |
8 | * by the Free Software Foundation; either version 2.1 of the License, or |
9 | * (at your option) any later version. |
10 | * |
11 | * This program is distributed in the hope that it will be useful, |
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14 | * GNU Lesser General Public License for more details. |
15 | * |
16 | * You should have received a copy of the GNU Lesser General Public License |
17 | * along with this program; if not, write to the Free Software |
18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
19 | */ |
20 | |
21 | #ifndef PRIVACYFUNCTIONS_H |
22 | #define PRIVACYFUNCTIONS_H |
23 | |
24 | #include "privacyaction.h" |
25 | |
26 | #include <klocale.h> |
27 | |
28 | /** |
29 | @author Ralf Hoelzer |
30 | */ |
31 | |
32 | class ClearAllCookiesAction : public PrivacyAction |
33 | { |
34 | public: |
35 | ClearAllCookiesAction(QTreeWidgetItem * parent) |
36 | : PrivacyAction(parent, i18n("Cookies" ), |
37 | i18n("Clears all stored cookies set by websites" )) { } |
38 | |
39 | bool action(); |
40 | /* reimp */ QString configKey() const { return QLatin1String( "ClearAllCookies" ); } |
41 | }; |
42 | |
43 | class ClearAllCookiesPoliciesAction : public PrivacyAction |
44 | { |
45 | public: |
46 | ClearAllCookiesPoliciesAction(QTreeWidgetItem * parent) |
47 | : PrivacyAction(parent, i18n("Cookie Policies" ), |
48 | i18n("Clears the cookie policies for all visited websites" )) { } |
49 | bool action(); |
50 | /* reimp */ QString configKey() const { return QLatin1String( "ClearAllCookiesPolicies" ); } |
51 | }; |
52 | |
53 | class ClearSavedClipboardContentsAction : public PrivacyAction |
54 | { |
55 | public: |
56 | ClearSavedClipboardContentsAction(QTreeWidgetItem * parent) |
57 | : PrivacyAction(parent, i18n("Saved Clipboard Contents" ), |
58 | i18n("Clears the clipboard contents stored by Klipper" )) { } |
59 | bool action(); |
60 | /* reimp */ QString configKey() const { return QLatin1String( "ClearSavedClipboardContents" ); } |
61 | }; |
62 | |
63 | class ClearThumbnailsAction : public PrivacyAction |
64 | { |
65 | public: |
66 | ClearThumbnailsAction(QTreeWidgetItem * parent) |
67 | : PrivacyAction(parent, i18n("Thumbnail Cache" ), |
68 | i18n("Clears all cached thumbnails" )) { } |
69 | bool action(); |
70 | /* reimp */ QString configKey() const { return QLatin1String( "ClearThumbnails" ); } |
71 | }; |
72 | |
73 | class ClearRunCommandHistoryAction : public PrivacyAction |
74 | { |
75 | public: |
76 | ClearRunCommandHistoryAction(QTreeWidgetItem * parent) |
77 | : PrivacyAction(parent, i18n("Run Command History" ), |
78 | i18n("Clears the history of commands run through the Run Command tool on the desktop" )) { } |
79 | bool action(); |
80 | /* reimp */ QString configKey() const { return QLatin1String( "ClearRunCommandHistory" ); } |
81 | }; |
82 | |
83 | class ClearFormCompletionAction : public PrivacyAction |
84 | { |
85 | public: |
86 | ClearFormCompletionAction(QTreeWidgetItem * parent) |
87 | : PrivacyAction(parent, i18n("Form Completion Entries" ), |
88 | i18n("Clears values which were entered into forms on websites" )) { } |
89 | bool action(); |
90 | /* reimp */ QString configKey() const { return QLatin1String( "ClearFormCompletion" ); } |
91 | }; |
92 | |
93 | class ClearWebHistoryAction : public PrivacyAction |
94 | { |
95 | public: |
96 | ClearWebHistoryAction(QTreeWidgetItem * parent) |
97 | : PrivacyAction(parent, i18n("Web History" ), |
98 | i18n("Clears the history of visited websites" )) { } |
99 | bool action(); |
100 | /* reimp */ QString configKey() const { return QLatin1String( "ClearWebHistory" ); } |
101 | }; |
102 | |
103 | class ClearWebCacheAction : public PrivacyAction |
104 | { |
105 | public: |
106 | ClearWebCacheAction(QTreeWidgetItem * parent) |
107 | : PrivacyAction(parent, i18n("Web Cache" ), |
108 | i18n("Clears the temporary cache of websites visited" )) { } |
109 | bool action(); |
110 | /* reimp */ QString configKey() const { return QLatin1String( "ClearWebCache" ); } |
111 | }; |
112 | |
113 | class ClearRecentDocumentsAction : public PrivacyAction |
114 | { |
115 | public: |
116 | ClearRecentDocumentsAction(QTreeWidgetItem * parent) |
117 | : PrivacyAction(parent, i18n("Recent Documents" ), |
118 | i18n("Clears the list of recently used documents from the KDE applications menu" )) { } |
119 | bool action(); |
120 | /* reimp */ QString configKey() const { return QLatin1String( "ClearRecentDocuments" ); } |
121 | }; |
122 | |
123 | class ClearFaviconsAction : public PrivacyAction |
124 | { |
125 | public: |
126 | ClearFaviconsAction(QTreeWidgetItem * parent) |
127 | : PrivacyAction(parent, i18n("Favorite Icons" ), |
128 | i18n("Clears the FavIcons cached from visited websites" )) { } |
129 | bool action(); |
130 | /* reimp */ QString configKey() const { return QLatin1String( "ClearFavIcons" ); } |
131 | }; |
132 | |
133 | class ClearRecentApplicationAction : public PrivacyAction |
134 | { |
135 | public: |
136 | ClearRecentApplicationAction(QTreeWidgetItem * parent) |
137 | : PrivacyAction(parent, i18n("Recent Applications" ), |
138 | i18n("Clears the list of recently used applications from KDE menu" )) { } |
139 | bool action(); |
140 | /* reimp */ QString configKey() const { return QLatin1String( "ClearQuickStartMenu" ); } |
141 | }; |
142 | |
143 | |
144 | #endif |
145 | |
146 | // kate: tab-width 3; indent-mode cstyle; replace-tabs true; |
147 | |