27 |
27 |
28 def getData(self): |
28 def getData(self): |
29 """ |
29 """ |
30 Public method to get the data from the dialog. |
30 Public method to get the data from the dialog. |
31 |
31 |
32 @return tuple with flags indicating which data to clear (browsing history, |
32 @return tuple with flags indicating which data to clear |
33 search history, favicons, disk cache, cookies, passwords, web |
33 (browsing history, search history, favicons, disk cache, cookies, |
34 databases, downloads, flash) and the selected history period in milliseconds |
34 passwords, web databases, downloads, flash) and the selected |
35 (tuple of booleans and integer) |
35 history period in milliseconds (tuple of booleans and integer) |
36 """ |
36 """ |
37 index = self.historyCombo.currentIndex() |
37 index = self.historyCombo.currentIndex() |
38 if index == 0: |
38 if index == 0: |
39 # last hour |
39 # last hour |
40 historyPeriod = 60 * 60 * 1000 |
40 historyPeriod = 60 * 60 * 1000 |