summaryrefslogtreecommitdiffstats
path: root/kcontrol/privacy/kprivacymanager.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:33:34 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:33:34 +0000
commitc663b6440964f6ac48027143ac9e63298991f9d0 (patch)
tree6d8b0c5a5f9db1ee16acf98b1397cea9126b281d /kcontrol/privacy/kprivacymanager.cpp
parenta061f7191beebb0e4a3b0c0a7c534ec5f22f2dc7 (diff)
downloadtdebase-c663b6440964f6ac48027143ac9e63298991f9d0.tar.gz
tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kcontrol/privacy/kprivacymanager.cpp')
-rw-r--r--kcontrol/privacy/kprivacymanager.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/kcontrol/privacy/kprivacymanager.cpp b/kcontrol/privacy/kprivacymanager.cpp
index cad01a169..bbf5e088a 100644
--- a/kcontrol/privacy/kprivacymanager.cpp
+++ b/kcontrol/privacy/kprivacymanager.cpp
@@ -30,9 +30,9 @@
#include <krecentdocument.h>
#include <kstandarddirs.h>
-#include <qstringlist.h>
-#include <qfile.h>
-#include <qdir.h>
+#include <tqstringlist.h>
+#include <tqfile.h>
+#include <tqdir.h>
KPrivacyManager::KPrivacyManager()
{
@@ -52,22 +52,22 @@ bool KPrivacyManager::clearThumbnails()
// http://freedesktop.org/Standards/Home
// http://triq.net/~jens/thumbnail-spec/index.html
- QDir thumbnailDir( QDir::homeDirPath() + "/.thumbnails/normal");
- thumbnailDir.setFilter( QDir::Files );
- QStringList entries = thumbnailDir.entryList();
- for( QStringList::Iterator it = entries.begin() ; it != entries.end() ; ++it)
+ TQDir thumbnailDir( TQDir::homeDirPath() + "/.thumbnails/normal");
+ thumbnailDir.setFilter( TQDir::Files );
+ TQStringList entries = thumbnailDir.entryList();
+ for( TQStringList::Iterator it = entries.begin() ; it != entries.end() ; ++it)
if(!thumbnailDir.remove(*it)) m_error = true;
if(m_error) return m_error;
- thumbnailDir.setPath(QDir::homeDirPath() + "/.thumbnails/large");
+ thumbnailDir.setPath(TQDir::homeDirPath() + "/.thumbnails/large");
entries = thumbnailDir.entryList();
- for( QStringList::Iterator it = entries.begin() ; it != entries.end() ; ++it)
+ for( TQStringList::Iterator it = entries.begin() ; it != entries.end() ; ++it)
if(!thumbnailDir.remove(*it)) m_error = true;
if(m_error) return m_error;
- thumbnailDir.setPath(QDir::homeDirPath() + "/.thumbnails/fail");
+ thumbnailDir.setPath(TQDir::homeDirPath() + "/.thumbnails/fail");
entries = thumbnailDir.entryList();
- for( QStringList::Iterator it = entries.begin() ; it != entries.end() ; ++it)
+ for( TQStringList::Iterator it = entries.begin() ; it != entries.end() ; ++it)
if(!thumbnailDir.remove(*it)) m_error = true;
return m_error;
@@ -103,7 +103,7 @@ bool KPrivacyManager::clearSavedClipboardContents()
bool KPrivacyManager::clearFormCompletion() const
{
- QFile completionFile(locateLocal("data", "khtml/formcompletions"));
+ TQFile completionFile(locateLocal("data", "khtml/formcompletions"));
return completionFile.remove();
}
@@ -128,7 +128,7 @@ bool KPrivacyManager::clearQuickStartMenu() const
bool KPrivacyManager::clearWebHistory()
{
- QStringList args("--preload");
+ TQStringList args("--preload");
// preload Konqueror if it is not running
if(!isApplicationRegistered("konqueror"))
@@ -138,24 +138,24 @@ bool KPrivacyManager::clearWebHistory()
}
return kapp->dcopClient()->send( "konqueror*", "KonqHistoryManager",
- "notifyClear(QCString)", "" );
+ "notifyClear(TQCString)", "" );
}
bool KPrivacyManager::clearFavIcons()
{
- QDir favIconDir(KGlobal::dirs()->saveLocation( "cache", "favicons/" ));
- favIconDir.setFilter( QDir::Files );
+ TQDir favIconDir(KGlobal::dirs()->saveLocation( "cache", "favicons/" ));
+ favIconDir.setFilter( TQDir::Files );
- QStringList entries = favIconDir.entryList();
+ TQStringList entries = favIconDir.entryList();
// erase all files in favicon directory
- for( QStringList::Iterator it = entries.begin() ; it != entries.end() ; ++it)
+ for( TQStringList::Iterator it = entries.begin() ; it != entries.end() ; ++it)
if(!favIconDir.remove(*it)) m_error = true;
return m_error;
}
-bool KPrivacyManager::isApplicationRegistered(const QString &appName)
+bool KPrivacyManager::isApplicationRegistered(const TQString &appName)
{
QCStringList regApps = kapp->dcopClient()->registeredApplications();