By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release. View | Details | Raw Unified | Return to bug 1216
Collapse All | Expand All

(-)tdebase/kcontrol/privacy/kprivacymanager.cpp (-1 / +13 lines)
Lines 145-151 Link Here
145
{
145
{
146
  TQDir favIconDir(KGlobal::dirs()->saveLocation( "cache", "favicons/" ));
146
  TQDir favIconDir(KGlobal::dirs()->saveLocation( "cache", "favicons/" ));
147
  favIconDir.setFilter( TQDir::Files );
147
  favIconDir.setFilter( TQDir::Files );
148
  
148
149
  TQStringList entries = favIconDir.entryList();
149
  TQStringList entries = favIconDir.entryList();
150
150
151
  // erase all files in favicon directory
151
  // erase all files in favicon directory
Lines 154-159 Link Here
154
  return m_error;
154
  return m_error;
155
}
155
}
156
156
157
bool KPrivacyManager::clearKPDFDocData()
158
{
159
  TQDir kPDFDir(KGlobal::dirs()->saveLocation( "data", "kpdf/" ));
160
  kPDFDir.setFilter( TQDir::Files );
161
162
  TQStringList entries = kPDFDir.entryList();
163
164
  // erase all files in kpdf directory
165
  for( TQStringList::Iterator it = entries.begin() ; it != entries.end() ; ++it)
166
    if(!kPDFDir.remove(*it)) m_error = true;
167
  return m_error;
168
}
157
169
158
bool KPrivacyManager::isApplicationRegistered(const TQString &appName)
170
bool KPrivacyManager::isApplicationRegistered(const TQString &appName)
159
{
171
{
(-)tdebase/kcontrol/privacy/kprivacymanager.h (+1 lines)
Lines 45-50 Link Here
45
    bool clearQuickStartMenu() const;
45
    bool clearQuickStartMenu() const;
46
    bool clearRecentDocuments() const;
46
    bool clearRecentDocuments() const;
47
    bool clearFavIcons();
47
    bool clearFavIcons();
48
    bool clearKPDFDocData();
48
49
49
private:
50
private:
50
    bool isApplicationRegistered(const TQString &appName);
51
    bool isApplicationRegistered(const TQString &appName);
(-)tdebase/kcontrol/privacy/privacy.cpp (-2 / +11 lines)
Lines 97-103 Link Here
97
  clearSavedClipboardContents = new TQCheckListItem(generalCLI,
97
  clearSavedClipboardContents = new TQCheckListItem(generalCLI,
98
      i18n("Saved Clipboard Contents"),TQCheckListItem::CheckBox);
98
      i18n("Saved Clipboard Contents"),TQCheckListItem::CheckBox);
99
  clearWebHistory = new TQCheckListItem(webbrowsingCLI,
99
  clearWebHistory = new TQCheckListItem(webbrowsingCLI,
100
      i18n("Web History"),TQCheckListItem::CheckBox);
100
      i18n("Web and File Manager History"),TQCheckListItem::CheckBox);
101
  clearWebCache = new TQCheckListItem(webbrowsingCLI,
101
  clearWebCache = new TQCheckListItem(webbrowsingCLI,
102
      i18n("Web Cache"),TQCheckListItem::CheckBox);
102
      i18n("Web Cache"),TQCheckListItem::CheckBox);
103
  clearFormCompletion = new TQCheckListItem(webbrowsingCLI,
103
  clearFormCompletion = new TQCheckListItem(webbrowsingCLI,
Lines 108-113 Link Here
108
      i18n("Quick Start Menu"),TQCheckListItem::CheckBox);
108
      i18n("Quick Start Menu"),TQCheckListItem::CheckBox);
109
  clearFavIcons = new TQCheckListItem(webbrowsingCLI,
109
  clearFavIcons = new TQCheckListItem(webbrowsingCLI,
110
      i18n("Favorite Icons"),TQCheckListItem::CheckBox);
110
      i18n("Favorite Icons"),TQCheckListItem::CheckBox);
111
  clearKPDFDocData = new TQCheckListItem(generalCLI,
112
      i18n("KPDF Document Data"),TQCheckListItem::CheckBox);
111
113
112
  TQWhatsThis::add(sw, i18n("Check all cleanup actions you would like to perform. These will be executed by pressing the button below"));
114
  TQWhatsThis::add(sw, i18n("Check all cleanup actions you would like to perform. These will be executed by pressing the button below"));
113
  TQWhatsThis::add(cleaningDialog->cleanupButton, i18n("Immediately performs the cleanup actions selected above"));
115
  TQWhatsThis::add(cleaningDialog->cleanupButton, i18n("Immediately performs the cleanup actions selected above"));
Lines 115-127 Link Here
115
  clearThumbnails->setText(1, i18n("Clears all cached thumbnails"));
117
  clearThumbnails->setText(1, i18n("Clears all cached thumbnails"));
116
  clearRunCommandHistory->setText(1, i18n("Clears the history of commands run through the Run Command tool on the desktop"));
118
  clearRunCommandHistory->setText(1, i18n("Clears the history of commands run through the Run Command tool on the desktop"));
117
  clearAllCookies->setText(1, i18n("Clears all stored cookies set by websites"));
119
  clearAllCookies->setText(1, i18n("Clears all stored cookies set by websites"));
118
  clearWebHistory->setText(1, i18n("Clears the history of visited websites"));
120
  clearWebHistory->setText(1, i18n("Clears the history of visited websites and file manager URLs"));
119
  clearSavedClipboardContents->setText(1, i18n("Clears the clipboard contents stored by Klipper"));
121
  clearSavedClipboardContents->setText(1, i18n("Clears the clipboard contents stored by Klipper"));
120
  clearWebCache->setText(1, i18n("Clears the temporary cache of websites visited"));
122
  clearWebCache->setText(1, i18n("Clears the temporary cache of websites visited"));
121
  clearFormCompletion->setText(1, i18n("Clears values which were entered into forms on websites"));
123
  clearFormCompletion->setText(1, i18n("Clears values which were entered into forms on websites"));
122
  clearRecentDocuments->setText(1, i18n("Clears the list of recently used documents from the TDE applications menu"));
124
  clearRecentDocuments->setText(1, i18n("Clears the list of recently used documents from the TDE applications menu"));
123
  clearQuickStartMenu->setText(1, i18n("Clears the entries from the list of recently started applications"));
125
  clearQuickStartMenu->setText(1, i18n("Clears the entries from the list of recently started applications"));
124
  clearFavIcons->setText(1, i18n("Clears the FavIcons cached from visited websites"));
126
  clearFavIcons->setText(1, i18n("Clears the FavIcons cached from visited websites"));
127
  clearKPDFDocData->setText(1, i18n("Clears all KPDF document data files"));
125
128
126
  connect(sw, TQT_SIGNAL(selectionChanged()), TQT_SLOT(changed()));
129
  connect(sw, TQT_SIGNAL(selectionChanged()), TQT_SLOT(changed()));
127
130
Lines 136-141 Link Here
136
  checklist.append(clearRecentDocuments);
139
  checklist.append(clearRecentDocuments);
137
  checklist.append(clearQuickStartMenu);
140
  checklist.append(clearQuickStartMenu);
138
  checklist.append(clearFavIcons);
141
  checklist.append(clearFavIcons);
142
  checklist.append(clearKPDFDocData);
139
143
140
  connect(cleaningDialog->cleanupButton, TQT_SIGNAL(clicked()), TQT_SLOT(cleanup()));
144
  connect(cleaningDialog->cleanupButton, TQT_SIGNAL(clicked()), TQT_SLOT(cleanup()));
141
  connect(cleaningDialog->selectAllButton, TQT_SIGNAL(clicked()), TQT_SLOT(selectAll()));
145
  connect(cleaningDialog->selectAllButton, TQT_SIGNAL(clicked()), TQT_SLOT(selectAll()));
Lines 175-180 Link Here
175
    clearRecentDocuments->setOn(c->readBoolEntry("ClearRecentDocuments", true));
179
    clearRecentDocuments->setOn(c->readBoolEntry("ClearRecentDocuments", true));
176
    clearQuickStartMenu->setOn(c->readBoolEntry("ClearQuickStartMenu", true));
180
    clearQuickStartMenu->setOn(c->readBoolEntry("ClearQuickStartMenu", true));
177
    clearFavIcons->setOn(c->readBoolEntry("ClearFavIcons", true));
181
    clearFavIcons->setOn(c->readBoolEntry("ClearFavIcons", true));
182
    clearKPDFDocData->setOn(c->readBoolEntry("ClearKPDFDocData", true));
178
  }
183
  }
179
184
180
  {
185
  {
Lines 210-215 Link Here
210
    c->writeEntry("ClearRecentDocuments", clearRecentDocuments->isOn());
215
    c->writeEntry("ClearRecentDocuments", clearRecentDocuments->isOn());
211
    c->writeEntry("ClearQuickStartMenu", clearQuickStartMenu->isOn());
216
    c->writeEntry("ClearQuickStartMenu", clearQuickStartMenu->isOn());
212
    c->writeEntry("ClearFavIcons", clearFavIcons->isOn());
217
    c->writeEntry("ClearFavIcons", clearFavIcons->isOn());
218
    c->writeEntry("ClearKPDFDocData", clearKPDFDocData->isOn());
213
  }
219
  }
214
220
215
  {
221
  {
Lines 293-298 Link Here
293
      if(item == clearFavIcons)
299
      if(item == clearFavIcons)
294
        error = m_privacymanager->clearFavIcons();
300
        error = m_privacymanager->clearFavIcons();
295
301
302
      if(item == clearKPDFDocData)
303
        error = m_privacymanager->clearKPDFDocData();
304
296
      if(error)
305
      if(error)
297
      {
306
      {
298
        TQString errorText =  i18n("Clearing of %1 failed").arg(item->text());
307
        TQString errorText =  i18n("Clearing of %1 failed").arg(item->text());
(-)tdebase/kcontrol/privacy/privacy.h (+1 lines)
Lines 66-71 Link Here
66
    TQCheckListItem *clearRecentDocuments;
66
    TQCheckListItem *clearRecentDocuments;
67
    TQCheckListItem *clearQuickStartMenu;
67
    TQCheckListItem *clearQuickStartMenu;
68
    TQCheckListItem *clearFavIcons;
68
    TQCheckListItem *clearFavIcons;
69
    TQCheckListItem *clearKPDFDocData;
69
    //TQCheckListItem *clearFileDialogHistory;
70
    //TQCheckListItem *clearFileDialogHistory;
70
71
71
72

Return to bug 1216