diff options
Diffstat (limited to 'kdat/BackupProfileManager.cpp')
-rw-r--r-- | kdat/BackupProfileManager.cpp | 20 |
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() ); |