summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-08-27 23:14:20 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-08-27 23:14:20 -0500
commite6abeff039ab373a11aea0fe35a9010d29b88a0f (patch)
tree51f39f1b6f7e505988e865242190e2b1ebdc7e7b
parent314c521a8cd7f5cba7da96925cf8a10f89deaed5 (diff)
downloadkrusader-e6abeff039ab373a11aea0fe35a9010d29b88a0f.tar.gz
krusader-e6abeff039ab373a11aea0fe35a9010d29b88a0f.zip
Rename KWallet to TDEWallet
-rw-r--r--CVSNEWS2
-rw-r--r--krusader/VFS/krarchandler.cpp22
-rw-r--r--krusader/VFS/krarchandler.h2
3 files changed, 13 insertions, 13 deletions
diff --git a/CVSNEWS b/CVSNEWS
index bd23928..5796d08 100644
--- a/CVSNEWS
+++ b/CVSNEWS
@@ -95,7 +95,7 @@ New archive handling:
supports passworded arj, ace, rar, zip
step into hidden archives by pressing <RIGHT> on the archive
decompressing debian packages by Alt+U
- using KWallet to store the passwords
+ using TDEWallet to store the passwords
writes out the error messages of the archiver
archive type autodetection by its header (first 512 byte)
diff --git a/krusader/VFS/krarchandler.cpp b/krusader/VFS/krarchandler.cpp
index 4d5952a..5431a0c 100644
--- a/krusader/VFS/krarchandler.cpp
+++ b/krusader/VFS/krarchandler.cpp
@@ -48,7 +48,7 @@
static TQStringList arcProtocols = TQStringList::split(";", "tar;bzip;bzip2;gzip;krarc;zip");
-KWallet::Wallet * KRarcHandler::wallet = 0;
+TDEWallet::Wallet * KRarcHandler::wallet = 0;
TQStringList KRarcHandler::supportedPackers() {
TQStringList packers;
@@ -525,15 +525,15 @@ TQString KRarcHandler::getPassword( TQString path ) {
TQString key = "krarc-" + path;
- if( !KWallet::Wallet::keyDoesNotExist(KWallet::Wallet::NetworkWallet(), KWallet::Wallet::PasswordFolder(), key ) ) {
- if( !KWallet::Wallet::isOpen( KWallet::Wallet::NetworkWallet() ) && wallet != 0 ) {
+ if( !TDEWallet::Wallet::keyDoesNotExist(TDEWallet::Wallet::NetworkWallet(), TDEWallet::Wallet::PasswordFolder(), key ) ) {
+ if( !TDEWallet::Wallet::isOpen( TDEWallet::Wallet::NetworkWallet() ) && wallet != 0 ) {
delete wallet;
wallet = 0;
}
if( wallet == 0 )
- wallet = KWallet::Wallet::openWallet( KWallet::Wallet::NetworkWallet() );
- if ( wallet && wallet->hasFolder( KWallet::Wallet::PasswordFolder() ) ) {
- wallet->setFolder( KWallet::Wallet::PasswordFolder() );
+ wallet = TDEWallet::Wallet::openWallet( TDEWallet::Wallet::NetworkWallet() );
+ if ( wallet && wallet->hasFolder( TDEWallet::Wallet::PasswordFolder() ) ) {
+ wallet->setFolder( TDEWallet::Wallet::PasswordFolder() );
TQMap<TQString,TQString> map;
if ( wallet->readMap( key, map ) == 0 ) {
TQMap<TQString, TQString>::ConstIterator it = map.find( "password" );
@@ -551,18 +551,18 @@ TQString KRarcHandler::getPassword( TQString path ) {
if (passDlg.exec() == TDEIO::PasswordDialog::Accepted) {
password = passDlg.password();
if ( keep ) {
- if( !KWallet::Wallet::isOpen( KWallet::Wallet::NetworkWallet() ) && wallet != 0 ) {
+ if( !TDEWallet::Wallet::isOpen( TDEWallet::Wallet::NetworkWallet() ) && wallet != 0 ) {
delete wallet;
wallet = 0;
}
if ( !wallet )
- wallet = KWallet::Wallet::openWallet( KWallet::Wallet::NetworkWallet() );
+ wallet = TDEWallet::Wallet::openWallet( TDEWallet::Wallet::NetworkWallet() );
if ( wallet ) {
bool ok = true;
- if ( !wallet->hasFolder( KWallet::Wallet::PasswordFolder() ) )
- ok = wallet->createFolder( KWallet::Wallet::PasswordFolder() );
+ if ( !wallet->hasFolder( TDEWallet::Wallet::PasswordFolder() ) )
+ ok = wallet->createFolder( TDEWallet::Wallet::PasswordFolder() );
if ( ok ) {
- wallet->setFolder( KWallet::Wallet::PasswordFolder() );
+ wallet->setFolder( TDEWallet::Wallet::PasswordFolder() );
TQMap<TQString,TQString> map;
map.insert( "login", "archive" );
map.insert( "password", password );
diff --git a/krusader/VFS/krarchandler.h b/krusader/VFS/krarchandler.h
index e4b4e71..dee4503 100644
--- a/krusader/VFS/krarchandler.h
+++ b/krusader/VFS/krarchandler.h
@@ -66,7 +66,7 @@ private:
// checks if the returned status is correct
static bool checkStatus( TQString type, int exitCode );
- static KWallet::Wallet * wallet;
+ static TDEWallet::Wallet * wallet;
};
class KrShellProcess : public KShellProcess {