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