9 |
9 |
10 from PyQt4.QtGui import QDialog |
10 from PyQt4.QtGui import QDialog |
11 |
11 |
12 from .Ui_HelpClearPrivateDataDialog import Ui_HelpClearPrivateDataDialog |
12 from .Ui_HelpClearPrivateDataDialog import Ui_HelpClearPrivateDataDialog |
13 |
13 |
|
14 |
14 class HelpClearPrivateDataDialog(QDialog, Ui_HelpClearPrivateDataDialog): |
15 class HelpClearPrivateDataDialog(QDialog, Ui_HelpClearPrivateDataDialog): |
15 """ |
16 """ |
16 Class implementing a dialog to select which private data to clear. |
17 Class implementing a dialog to select which private data to clear. |
17 """ |
18 """ |
18 def __init__(self, parent = None): |
19 def __init__(self, parent=None): |
19 """ |
20 """ |
20 Constructor |
21 Constructor |
21 |
22 |
22 @param parent reference to the parent widget (QWidget) |
23 @param parent reference to the parent widget (QWidget) |
23 """ |
24 """ |
27 def getData(self): |
28 def getData(self): |
28 """ |
29 """ |
29 Public method to get the data from the dialog. |
30 Public method to get the data from the dialog. |
30 |
31 |
31 @return tuple of flags indicating which data to clear (browsing history, |
32 @return tuple of flags indicating which data to clear (browsing history, |
32 search history, favicons, disk cache, cookies, passwords, web |
33 search history, favicons, disk cache, cookies, passwords, web |
33 databases, downloads) (list of boolean) |
34 databases, downloads) (list of boolean) |
34 """ |
35 """ |
35 return (self.historyCheckBox.isChecked(), |
36 return (self.historyCheckBox.isChecked(), |
36 self.searchCheckBox.isChecked(), |
37 self.searchCheckBox.isChecked(), |
37 self.iconsCheckBox.isChecked(), |
38 self.iconsCheckBox.isChecked(), |
38 self.cacheCheckBox.isChecked(), |
39 self.cacheCheckBox.isChecked(), |
39 self.cookiesCheckBox.isChecked(), |
40 self.cookiesCheckBox.isChecked(), |
40 self.passwordsCheckBox.isChecked(), |
41 self.passwordsCheckBox.isChecked(), |
41 self.databasesCheckBox.isChecked(), |
42 self.databasesCheckBox.isChecked(), |
42 self.downloadsCheckBox.isChecked()) |
43 self.downloadsCheckBox.isChecked()) |