summaryrefslogtreecommitdiffstats
path: root/tdeio/kpasswdserver
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-08-27 23:20:50 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-08-27 23:20:50 -0500
commitbab94d83782bbc76f3a02a415576ce4cdc56aec5 (patch)
tree0f69fbb70892829d42a523c84efd80c0e7c98f99 /tdeio/kpasswdserver
parent9b6f2dec92823d77af0bafe928660694d9b791f5 (diff)
downloadtdelibs-bab94d83782bbc76f3a02a415576ce4cdc56aec5.tar.gz
tdelibs-bab94d83782bbc76f3a02a415576ce4cdc56aec5.zip
Rename KWallet to TDEWallet
Diffstat (limited to 'tdeio/kpasswdserver')
-rw-r--r--tdeio/kpasswdserver/kpasswdserver.cpp24
-rw-r--r--tdeio/kpasswdserver/kpasswdserver.h4
2 files changed, 14 insertions, 14 deletions
diff --git a/tdeio/kpasswdserver/kpasswdserver.cpp b/tdeio/kpasswdserver/kpasswdserver.cpp
index cf4e0530c..075843259 100644
--- a/tdeio/kpasswdserver/kpasswdserver.cpp
+++ b/tdeio/kpasswdserver/kpasswdserver.cpp
@@ -100,12 +100,12 @@ static TQString makeMapKey( const char* key, int entryNumber )
return str;
}
-static bool storeInWallet( KWallet::Wallet* wallet, const TQString& key, const TDEIO::AuthInfo &info )
+static bool storeInWallet( TDEWallet::Wallet* wallet, const TQString& key, const TDEIO::AuthInfo &info )
{
- if ( !wallet->hasFolder( KWallet::Wallet::PasswordFolder() ) )
- if ( !wallet->createFolder( KWallet::Wallet::PasswordFolder() ) )
+ if ( !wallet->hasFolder( TDEWallet::Wallet::PasswordFolder() ) )
+ if ( !wallet->createFolder( TDEWallet::Wallet::PasswordFolder() ) )
return false;
- wallet->setFolder( KWallet::Wallet::PasswordFolder() );
+ wallet->setFolder( TDEWallet::Wallet::PasswordFolder() );
// Before saving, check if there's already an entry with this login.
// If so, replace it (with the new password). Otherwise, add a new entry.
typedef TQMap<TQString,TQString> Map;
@@ -135,12 +135,12 @@ static bool storeInWallet( KWallet::Wallet* wallet, const TQString& key, const T
}
-static bool readFromWallet( KWallet::Wallet* wallet, const TQString& key, const TQString& realm, TQString& username, TQString& password, bool userReadOnly, TQMap<TQString,TQString>& knownLogins )
+static bool readFromWallet( TDEWallet::Wallet* wallet, const TQString& key, const TQString& realm, TQString& username, TQString& password, bool userReadOnly, TQMap<TQString,TQString>& knownLogins )
{
//kdDebug(130) << "readFromWallet: key=" << key << " username=" << username << " password=" /*<< password*/ << " userReadOnly=" << userReadOnly << " realm=" << realm << endl;
- if ( wallet->hasFolder( KWallet::Wallet::PasswordFolder() ) )
+ if ( wallet->hasFolder( TDEWallet::Wallet::PasswordFolder() ) )
{
- wallet->setFolder( KWallet::Wallet::PasswordFolder() );
+ wallet->setFolder( TDEWallet::Wallet::PasswordFolder() );
TQMap<TQString,TQString> map;
if ( wallet->readMap( makeWalletKey( key, realm ), map ) == 0 )
@@ -219,8 +219,8 @@ KPasswdServer::checkAuthInfo(TDEIO::AuthInfo info, long windowId, unsigned long
{
if (!result &&
(info.username.isEmpty() || info.password.isEmpty()) &&
- !KWallet::Wallet::keyDoesNotExist(KWallet::Wallet::NetworkWallet(),
- KWallet::Wallet::PasswordFolder(), makeWalletKey(key, info.realmValue)))
+ !TDEWallet::Wallet::keyDoesNotExist(TDEWallet::Wallet::NetworkWallet(),
+ TDEWallet::Wallet::PasswordFolder(), makeWalletKey(key, info.realmValue)))
{
TQMap<TQString, TQString> knownLogins;
if (openWallet(windowId)) {
@@ -304,8 +304,8 @@ KPasswdServer::openWallet( WId windowId )
m_wallet = 0;
}
if ( !m_wallet )
- m_wallet = KWallet::Wallet::openWallet(
- KWallet::Wallet::NetworkWallet(), windowId );
+ m_wallet = TDEWallet::Wallet::openWallet(
+ TDEWallet::Wallet::NetworkWallet(), windowId );
return m_wallet != 0;
}
@@ -359,7 +359,7 @@ KPasswdServer::processRequest()
TQMap<TQString, TQString> knownLogins;
if ( ( username.isEmpty() || password.isEmpty() )
- && !KWallet::Wallet::keyDoesNotExist(KWallet::Wallet::NetworkWallet(), KWallet::Wallet::PasswordFolder(), makeWalletKey( request->key, info.realmValue )) )
+ && !TDEWallet::Wallet::keyDoesNotExist(TDEWallet::Wallet::NetworkWallet(), TDEWallet::Wallet::PasswordFolder(), makeWalletKey( request->key, info.realmValue )) )
{
// no login+pass provided, check if tdewallet has one
if ( openWallet( request->windowId ) )
diff --git a/tdeio/kpasswdserver/kpasswdserver.h b/tdeio/kpasswdserver/kpasswdserver.h
index ce6d0386e..71aab3859 100644
--- a/tdeio/kpasswdserver/kpasswdserver.h
+++ b/tdeio/kpasswdserver/kpasswdserver.h
@@ -32,7 +32,7 @@
#include <tdeio/authinfo.h>
#include <kded/kdedmodule.h>
-namespace KWallet {
+namespace TDEWallet {
class Wallet;
}
@@ -111,7 +111,7 @@ protected:
TQPtrList< Request > m_authWait;
TQIntDict<TQStringList> mWindowIdList;
DCOPClient *m_dcopClient;
- KWallet::Wallet* m_wallet;
+ TDEWallet::Wallet* m_wallet;
long m_seqNr;
};