summaryrefslogtreecommitdiffstats
path: root/kdat/BackupProfileManager.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:25:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:25:18 +0000
commitaa3a1ca934bc541bddd3fa136a85f106f7da266e (patch)
tree9ad0b795aed8fa4ac30c2fe0fd1aacb8175714c0 /kdat/BackupProfileManager.cpp
parentb10cf7066791a2f362495890cd50c984e8025412 (diff)
downloadtdeadmin-aa3a1ca934bc541bddd3fa136a85f106f7da266e.tar.gz
tdeadmin-aa3a1ca934bc541bddd3fa136a85f106f7da266e.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeadmin@1157635 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdat/BackupProfileManager.cpp')
-rw-r--r--kdat/BackupProfileManager.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/kdat/BackupProfileManager.cpp b/kdat/BackupProfileManager.cpp
index 7fc2411..7b42ab7 100644
--- a/kdat/BackupProfileManager.cpp
+++ b/kdat/BackupProfileManager.cpp
@@ -19,8 +19,8 @@
#include <stdlib.h>
#include <unistd.h>
-#include <qdir.h>
-#include <qregexp.h>
+#include <tqdir.h>
+#include <tqregexp.h>
#include <kglobal.h>
#include <kstandarddirs.h>
@@ -34,14 +34,14 @@ BackupProfileManager::BackupProfileManager()
_backupProfiles.setAutoDelete( TRUE );
// Get a list of all available backup profiles.
- QStringList relList;
+ TQStringList relList;
(void) KGlobal::dirs()->findAllResources( "appdata", "*.bp", false, true, relList);
- for(QStringList::Iterator it = relList.begin();
+ for(TQStringList::Iterator it = relList.begin();
it != relList.end();
it++)
{
- QString fn = *it;
+ TQString fn = *it;
// Strip extension
_backupProfileNames.append( fn.left( fn.length() - 3 ) );
}
@@ -62,12 +62,12 @@ BackupProfileManager* BackupProfileManager::instance()
return _instance;
}
-const QStringList& BackupProfileManager::getBackupProfileNames()
+const TQStringList& BackupProfileManager::getBackupProfileNames()
{
return _backupProfileNames;
}
-BackupProfile* BackupProfileManager::findBackupProfile( const QString & name )
+BackupProfile* BackupProfileManager::findBackupProfile( const TQString & name )
{
BackupProfile* backupProfile = _backupProfiles[ name ];
@@ -97,10 +97,10 @@ void BackupProfileManager::removeBackupProfile( BackupProfile* backupProfile )
emit sigBackupProfileRemoved( backupProfile );
// Remove the index file.
- QString filename = locateLocal( "appdata",
- QString(backupProfile->getName()) + ".bp");
+ TQString filename = locateLocal( "appdata",
+ TQString(backupProfile->getName()) + ".bp");
- unlink( QFile::encodeName(filename) );
+ unlink( TQFile::encodeName(filename) );
_backupProfileNames.remove( backupProfile->getName() );
_backupProfiles.remove( backupProfile->getName() );