Rename KWallet to TDEWallet

pull/21/head
Timothy Pearson 11 years ago
parent 3c297a53e9
commit a637b08775

@ -179,7 +179,7 @@ namespace KMail {
{ "Christoph Kl\303\274nter", 0, 0, 0 }, // fix for bug:88216 (drag&drop from KAddressBook to the To: field) { "Christoph Kl\303\274nter", 0, 0, 0 }, // fix for bug:88216 (drag&drop from KAddressBook to the To: field)
{ "Martin Koller", 0, 0, 0 }, // optional columns in the message list { "Martin Koller", 0, 0, 0 }, // optional columns in the message list
{ "Tobias K\303\266nig", 0, 0, 0 }, // edit recent addresses, store email<->OpenPGP key association in address book { "Tobias K\303\266nig", 0, 0, 0 }, // edit recent addresses, store email<->OpenPGP key association in address book
{ "Volker Krause", 0, 0, 0 }, // implemented KWallet support, fixed multiple bugs { "Volker Krause", 0, 0, 0 }, // implemented TDEWallet support, fixed multiple bugs
{ "Francois Kritzinger", 0, 0, 0 }, // fix bug in configuration dialog { "Francois Kritzinger", 0, 0, 0 }, // fix bug in configuration dialog
{ "Danny Kukawka", 0, 0, 0 }, // DCOP enhancements for better message importing { "Danny Kukawka", 0, 0, 0 }, // DCOP enhancements for better message importing
{ "Roger Larsson", 0, 0, 0 }, // add name of checked account to status bar message { "Roger Larsson", 0, 0, 0 }, // add name of checked account to status bar message

@ -626,9 +626,9 @@ void AccountDialog::makePopAccountPage()
new TQCheckBox( i18n("Sto&re POP password"), page1 ); new TQCheckBox( i18n("Sto&re POP password"), page1 );
TQWhatsThis::add( mPop.storePasswordCheck, TQWhatsThis::add( mPop.storePasswordCheck,
i18n("Check this option to have KMail store " i18n("Check this option to have KMail store "
"the password.\nIf KWallet is available " "the password.\nIf TDEWallet is available "
"the password will be stored there which is considered " "the password will be stored there which is considered "
"safe.\nHowever, if KWallet is not available, " "safe.\nHowever, if TDEWallet is not available, "
"the password will be stored in KMail's configuration " "the password will be stored in KMail's configuration "
"file. The password is stored in an " "file. The password is stored in an "
"obfuscated format, but should not be " "obfuscated format, but should not be "
@ -960,9 +960,9 @@ void AccountDialog::makeImapAccountPage( bool connected )
new TQCheckBox( i18n("Sto&re IMAP password"), page1 ); new TQCheckBox( i18n("Sto&re IMAP password"), page1 );
TQWhatsThis::add( mImap.storePasswordCheck, TQWhatsThis::add( mImap.storePasswordCheck,
i18n("Check this option to have KMail store " i18n("Check this option to have KMail store "
"the password.\nIf KWallet is available " "the password.\nIf TDEWallet is available "
"the password will be stored there which is considered " "the password will be stored there which is considered "
"safe.\nHowever, if KWallet is not available, " "safe.\nHowever, if TDEWallet is not available, "
"the password will be stored in KMail's configuration " "the password will be stored in KMail's configuration "
"file. The password is stored in an " "file. The password is stored in an "
"obfuscated format, but should not be " "obfuscated format, but should not be "

@ -70,7 +70,7 @@ using KMail::FolderIface;
#include <kdebug.h> #include <kdebug.h>
#include <tdeio/netaccess.h> #include <tdeio/netaccess.h>
#include <tdewallet.h> #include <tdewallet.h>
using KWallet::Wallet; using TDEWallet::Wallet;
#include "actionscheduler.h" #include "actionscheduler.h"
#include <qutf7codec.h> #include <qutf7codec.h>

@ -24,7 +24,7 @@
namespace TDEIO { namespace TDEIO {
class Job; class Job;
} }
namespace KWallet { namespace TDEWallet {
class Wallet; class Wallet;
} }
@ -396,7 +396,7 @@ public:
void messageCountChanged(); void messageCountChanged();
/** Open KDE wallet and set it to kmail folder */ /** Open KDE wallet and set it to kmail folder */
KWallet::Wallet *wallet(); TDEWallet::Wallet *wallet();
/** Get first mainwidget */ /** Get first mainwidget */
KMMainWidget *getKMMainWidget(); KMMainWidget *getKMMainWidget();
@ -516,7 +516,7 @@ private:
KPIM::ThreadWeaver::Weaver *the_weaver; KPIM::ThreadWeaver::Weaver *the_weaver;
KPIM::ThreadWeaver::WeaverThreadLogger *the_weaverLogger; KPIM::ThreadWeaver::WeaverThreadLogger *the_weaverLogger;
KWallet::Wallet *mWallet; TDEWallet::Wallet *mWallet;
// variables used by dcopAddMessage() // variables used by dcopAddMessage()
TQStringList mAddMessageMsgIds; TQStringList mAddMessageMsgIds;

@ -39,7 +39,7 @@
#include <kseparator.h> #include <kseparator.h>
#include <kdebug.h> #include <kdebug.h>
#include <tdewallet.h> #include <tdewallet.h>
using KWallet::Wallet; using TDEWallet::Wallet;
#include <kprotocolinfo.h> #include <kprotocolinfo.h>
#include "kmkernel.h" #include "kmkernel.h"
@ -138,15 +138,15 @@ void KMTransportInfo::writeConfig(int id)
} }
// wallet not available, ask the user if we should use the config file instead // wallet not available, ask the user if we should use the config file instead
if ( !passwdStored && ( mStorePasswdInConfig || KMessageBox::warningYesNo( 0, if ( !passwdStored && ( mStorePasswdInConfig || KMessageBox::warningYesNo( 0,
i18n("KWallet is not available. It is strongly recommended to use " i18n("TDEWallet is not available. It is strongly recommended to use "
"KWallet for managing your passwords.\n" "TDEWallet for managing your passwords.\n"
"However, KMail can store the password in its configuration " "However, KMail can store the password in its configuration "
"file instead. The password is stored in an obfuscated format, " "file instead. The password is stored in an obfuscated format, "
"but should not be considered secure from decryption efforts " "but should not be considered secure from decryption efforts "
"if access to the configuration file is obtained.\n" "if access to the configuration file is obtained.\n"
"Do you want to store the password for account '%1' in the " "Do you want to store the password for account '%1' in the "
"configuration file?").arg( name ), "configuration file?").arg( name ),
i18n("KWallet Not Available"), i18n("TDEWallet Not Available"),
KGuiItem( i18n("Store Password") ), KGuiItem( i18n("Store Password") ),
KGuiItem( i18n("Do Not Store Password") ) ) KGuiItem( i18n("Do Not Store Password") ) )
== KMessageBox::Yes ) ) { == KMessageBox::Yes ) ) {
@ -457,9 +457,9 @@ void KMTransportDialog::makeSmtpPage()
new TQCheckBox( i18n("&Store SMTP password"), page1 ); new TQCheckBox( i18n("&Store SMTP password"), page1 );
TQWhatsThis::add(mSmtp.storePasswordCheck, TQWhatsThis::add(mSmtp.storePasswordCheck,
i18n("Check this option to have KMail store " i18n("Check this option to have KMail store "
"the password.\nIf KWallet is available " "the password.\nIf TDEWallet is available "
"the password will be stored there which is considered " "the password will be stored there which is considered "
"safe.\nHowever, if KWallet is not available, " "safe.\nHowever, if TDEWallet is not available, "
"the password will be stored in KMail's configuration " "the password will be stored in KMail's configuration "
"file. The password is stored in an " "file. The password is stored in an "
"obfuscated format, but should not be " "obfuscated format, but should not be "

@ -39,7 +39,7 @@
#include <kdebug.h> #include <kdebug.h>
#include <tdewallet.h> #include <tdewallet.h>
using TDEIO::MetaData; using TDEIO::MetaData;
using KWallet::Wallet; using TDEWallet::Wallet;
#include <climits> #include <climits>
@ -162,7 +162,7 @@ namespace KMail {
if ( !encpasswd.isEmpty() ) { if ( !encpasswd.isEmpty() ) {
setPasswd( decryptStr( encpasswd ), true ); setPasswd( decryptStr( encpasswd ), true );
// migrate to KWallet if available // migrate to TDEWallet if available
if ( Wallet::isEnabled() ) { if ( Wallet::isEnabled() ) {
config.deleteEntry( "pass" ); config.deleteEntry( "pass" );
config.deleteEntry( "passwd" ); config.deleteEntry( "passwd" );
@ -217,15 +217,15 @@ namespace KMail {
// if wallet is not available, write to config file, since the account // if wallet is not available, write to config file, since the account
// manager deletes this group, we need to write it always // manager deletes this group, we need to write it always
if ( !passwdStored && ( mStorePasswdInConfig || KMessageBox::warningYesNo( 0, if ( !passwdStored && ( mStorePasswdInConfig || KMessageBox::warningYesNo( 0,
i18n("KWallet is not available. It is strongly recommended to use " i18n("TDEWallet is not available. It is strongly recommended to use "
"KWallet for managing your passwords.\n" "TDEWallet for managing your passwords.\n"
"However, KMail can store the password in its configuration " "However, KMail can store the password in its configuration "
"file instead. The password is stored in an obfuscated format, " "file instead. The password is stored in an obfuscated format, "
"but should not be considered secure from decryption efforts " "but should not be considered secure from decryption efforts "
"if access to the configuration file is obtained.\n" "if access to the configuration file is obtained.\n"
"Do you want to store the password for account '%1' in the " "Do you want to store the password for account '%1' in the "
"configuration file?").arg( name() ), "configuration file?").arg( name() ),
i18n("KWallet Not Available"), i18n("TDEWallet Not Available"),
KGuiItem( i18n("Store Password") ), KGuiItem( i18n("Store Password") ),
KGuiItem( i18n("Do Not Store Password") ) ) KGuiItem( i18n("Do Not Store Password") ) )
== KMessageBox::Yes ) ) { == KMessageBox::Yes ) ) {

@ -31,7 +31,7 @@
#include "knaccountmanager.h" #include "knaccountmanager.h"
#include "knfoldermanager.h" #include "knfoldermanager.h"
KWallet::Wallet* KNAccountManager::mWallet = 0; TDEWallet::Wallet* KNAccountManager::mWallet = 0;
bool KNAccountManager::mWalletOpenFailed = false; bool KNAccountManager::mWalletOpenFailed = false;
KNAccountManager::KNAccountManager(KNGroupManager *gm, TQObject * parent, const char * name) KNAccountManager::KNAccountManager(KNGroupManager *gm, TQObject * parent, const char * name)
@ -252,7 +252,7 @@ void KNAccountManager::loadPasswords()
} }
KWallet::Wallet* KNAccountManager::wallet() TDEWallet::Wallet* KNAccountManager::wallet()
{ {
if ( mWallet && mWallet->isOpen() ) if ( mWallet && mWallet->isOpen() )
return mWallet; return mWallet;

@ -18,7 +18,7 @@
#include <tqglobal.h> #include <tqglobal.h>
#include <tqvaluelist.h> #include <tqvaluelist.h>
namespace KWallet { namespace TDEWallet {
class Wallet; class Wallet;
} }
@ -61,7 +61,7 @@ class KNAccountManager : public TQObject
void loadPasswordsAsync(); void loadPasswordsAsync();
/** Returns a pointer to an open wallet if available, 0 otherwise */ /** Returns a pointer to an open wallet if available, 0 otherwise */
static KWallet::Wallet* wallet(); static TDEWallet::Wallet* wallet();
protected: protected:
void loadAccounts(); void loadAccounts();
@ -85,7 +85,7 @@ class KNAccountManager : public TQObject
private: private:
TQValueList<KNNntpAccount*> mAccounts; TQValueList<KNNntpAccount*> mAccounts;
static KWallet::Wallet *mWallet; static TDEWallet::Wallet *mWallet;
static bool mWalletOpenFailed; static bool mWalletOpenFailed;
bool mAsyncOpening; bool mAsyncOpening;

@ -102,7 +102,7 @@ void KNNetAccess::addJob(KNJobData *job)
if ( !job->account()->readyForLogin() ) { if ( !job->account()->readyForLogin() ) {
mWalletQueue.append( job ); mWalletQueue.append( job );
knGlobals.accountManager()->loadPasswordsAsync(); knGlobals.accountManager()->loadPasswordsAsync();
job->setStatus( i18n( "Waiting for KWallet..." ) ); job->setStatus( i18n( "Waiting for TDEWallet..." ) );
return; return;
} }

@ -18,7 +18,7 @@
#include <tdelocale.h> #include <tdelocale.h>
#include <kdebug.h> #include <kdebug.h>
#include <tdewallet.h> #include <tdewallet.h>
using namespace KWallet; using namespace TDEWallet;
#include "knglobals.h" #include "knglobals.h"
#include "knserverinfo.h" #include "knserverinfo.h"
@ -67,7 +67,7 @@ void KNServerInfo::readConf(TDEConfig *conf)
u_ser=conf->readEntry("user"); u_ser=conf->readEntry("user");
p_ass = KNHelper::decryptStr(conf->readEntry("pass")); p_ass = KNHelper::decryptStr(conf->readEntry("pass"));
// migration to KWallet // migration to TDEWallet
if (Wallet::isEnabled() && !p_ass.isEmpty()) { if (Wallet::isEnabled() && !p_ass.isEmpty()) {
conf->deleteEntry( "pass" ); conf->deleteEntry( "pass" );
p_assDirty = true; p_assDirty = true;
@ -104,15 +104,15 @@ void KNServerInfo::saveConf(TDEConfig *conf)
Wallet *wallet = KNAccountManager::wallet(); Wallet *wallet = KNAccountManager::wallet();
if (!wallet || wallet->writePassword(TQString::number(i_d), p_ass)) { if (!wallet || wallet->writePassword(TQString::number(i_d), p_ass)) {
if ( KMessageBox::warningYesNo( 0, if ( KMessageBox::warningYesNo( 0,
i18n("KWallet is not available. It is strongly recommended to use " i18n("TDEWallet is not available. It is strongly recommended to use "
"KWallet for managing your passwords.\n" "TDEWallet for managing your passwords.\n"
"However, KNode can store the password in its configuration " "However, KNode can store the password in its configuration "
"file instead. The password is stored in an obfuscated format, " "file instead. The password is stored in an obfuscated format, "
"but should not be considered secure from decryption efforts " "but should not be considered secure from decryption efforts "
"if access to the configuration file is obtained.\n" "if access to the configuration file is obtained.\n"
"Do you want to store the password for server '%1' in the " "Do you want to store the password for server '%1' in the "
"configuration file?").arg( server() ), "configuration file?").arg( server() ),
i18n("KWallet Not Available"), i18n("TDEWallet Not Available"),
KGuiItem( i18n("Store Password") ), KGuiItem( i18n("Store Password") ),
KGuiItem( i18n("Do Not Store Password") ) ) KGuiItem( i18n("Do Not Store Password") ) )
== KMessageBox::Yes ) { == KMessageBox::Yes ) {
@ -182,7 +182,7 @@ void KNServerInfo::readPassword()
return; return;
// finally try to open the wallet and read the password // finally try to open the wallet and read the password
KWallet::Wallet *wallet = KNAccountManager::wallet(); TDEWallet::Wallet *wallet = KNAccountManager::wallet();
if ( wallet ) if ( wallet )
wallet->readPassword( TQString::number(i_d), p_ass ); wallet->readPassword( TQString::number(i_d), p_ass );
} }

@ -18,10 +18,10 @@
#include <tqstring.h> #include <tqstring.h>
class TDEConfig; class TDEConfig;
namespace KWallet { namespace TDEWallet {
class Wallet; class Wallet;
} }
using KWallet::Wallet; using TDEWallet::Wallet;
class KNServerInfo { class KNServerInfo {
@ -63,7 +63,7 @@ class KNServerInfo {
bool operator==(const KNServerInfo &s); bool operator==(const KNServerInfo &s);
/** Loads the password from KWallet, used for on-demand password loading */ /** Loads the password from TDEWallet, used for on-demand password loading */
void readPassword(); void readPassword();
protected: protected:

@ -64,7 +64,7 @@ public:
* it calculates how the configuration whould have looked in KOrn. * it calculates how the configuration whould have looked in KOrn.
* *
* @param config The configuration group to read the kmailname from. * @param config The configuration group to read the kmailname from.
* @param password The password fetched out of the configuration or KWallet. * @param password The password fetched out of the configuration or TDEWallet.
* @return A mapping containing the configuration if success, and empty mapping otherwise. * @return A mapping containing the configuration if success, and empty mapping otherwise.
*/ */
virtual TQMap< TQString, TQString > * createConfig( TDEConfigGroup* config, const TQString& password ) const; virtual TQMap< TQString, TQString > * createConfig( TDEConfigGroup* config, const TQString& password ) const;

@ -52,7 +52,7 @@
<cstring>chUseWallet</cstring> <cstring>chUseWallet</cstring>
</property> </property>
<property name="text"> <property name="text">
<string>Use &amp;KWallet if possible</string> <string>Use &amp;TDEWallet if possible</string>
</property> </property>
<property name="checked"> <property name="checked">
<bool>true</bool> <bool>true</bool>

@ -220,7 +220,7 @@ void KornCfgImpl::writeConfig()
if( rbDocked->isChecked() ) if( rbDocked->isChecked() )
_config->writeEntry( "layout", "Docked" ); _config->writeEntry( "layout", "Docked" );
//Default is 'false' here, because if no option is set, KWallet isn't used. //Default is 'false' here, because if no option is set, TDEWallet isn't used.
if( _config->readBoolEntry( "usewallet", false ) != chUseWallet->isChecked() ) if( _config->readBoolEntry( "usewallet", false ) != chUseWallet->isChecked() )
//Configuration box changed => setting over configuration //Configuration box changed => setting over configuration
rewritePasswords(); rewritePasswords();

@ -26,7 +26,7 @@
#include <tqstring.h> #include <tqstring.h>
#include <tqstringlist.h> #include <tqstringlist.h>
KWallet::Wallet* KOrnPassword::m_wallet = 0; TDEWallet::Wallet* KOrnPassword::m_wallet = 0;
bool KOrnPassword::m_openFailed = false; bool KOrnPassword::m_openFailed = false;
bool KOrnPassword::m_useWallet = false; //Not default true until moving works bool KOrnPassword::m_useWallet = false; //Not default true until moving works
@ -178,7 +178,7 @@ void KOrnPassword::open()
return; //Not open, and can't be opened return; //Not open, and can't be opened
delete m_wallet; m_wallet = 0; delete m_wallet; m_wallet = 0;
m_wallet = KWallet::Wallet::openWallet( KWallet::Wallet::NetworkWallet(), 0 ); m_wallet = TDEWallet::Wallet::openWallet( TDEWallet::Wallet::NetworkWallet(), 0 );
if( !m_wallet ) if( !m_wallet )
m_openFailed = true; m_openFailed = true;

@ -21,13 +21,13 @@
#define KORNPASSWORD_H #define KORNPASSWORD_H
class TDEConfigBase; class TDEConfigBase;
namespace KWallet { class Wallet; } namespace TDEWallet { class Wallet; }
class TQString; class TQString;
/** /**
* This class can be used to store and retrieve passwords. * This class can be used to store and retrieve passwords.
* It uses KWallet if possible, and the configuartion files otherwise. * It uses TDEWallet if possible, and the configuartion files otherwise.
*/ */
class KOrnPassword class KOrnPassword
{ {
@ -46,15 +46,15 @@ public:
* *
* @param box The boxnumber of the account * @param box The boxnumber of the account
* @param account The accountnumber of the account * @param account The accountnumber of the account
* @param fallbackConfig The configuration file if KWallet cannot be used. * @param fallbackConfig The configuration file if TDEWallet cannot be used.
* @return The password, or TQString() if it failes. * @return The password, or TQString() if it failes.
*/ */
static TQString readKOrnPassword( int box, int account, const TDEConfigBase& fallbackConfig ); static TQString readKOrnPassword( int box, int account, const TDEConfigBase& fallbackConfig );
/** /**
* This function gets a password with is puts in KWallet by KMail * This function gets a password with is puts in TDEWallet by KMail
* *
* @param accountnr The id of the KMail account * @param accountnr The id of the KMail account
* @param fallbackConfig The configuration used if KWallet isn't available. * @param fallbackConfig The configuration used if TDEWallet isn't available.
* @return The password, TQStirng::null if it failes. * @return The password, TQStirng::null if it failes.
*/ */
static TQString readKMailPassword( int accountnr, const TDEConfigBase& fallbackConfig ); static TQString readKMailPassword( int accountnr, const TDEConfigBase& fallbackConfig );
@ -64,22 +64,22 @@ public:
* *
* @param box The boxnumber of the account. * @param box The boxnumber of the account.
* @param account The accountnumber of the account. * @param account The accountnumber of the account.
* @param fallbackConfig The configuration file if KWallet isn't available. * @param fallbackConfig The configuration file if TDEWallet isn't available.
* @param password The password to be stored. * @param password The password to be stored.
*/ */
static void writeKOrnPassword( int box, int account, TDEConfigBase& fallbackConfig, const TQString& password ); static void writeKOrnPassword( int box, int account, TDEConfigBase& fallbackConfig, const TQString& password );
/** /**
* This function deletes a password from both KWallet and the configuration file * This function deletes a password from both TDEWallet and the configuration file
* *
* @param box The boxnumber of the account. * @param box The boxnumber of the account.
* @param account The accountnumber of the account. * @param account The accountnumber of the account.
* @param fallbackConfig The configuration file if KWallet isn't available. * @param fallbackConfig The configuration file if TDEWallet isn't available.
*/ */
static void deleteKOrnPassword( int box, int account, TDEConfigBase& fallbackConfig ); static void deleteKOrnPassword( int box, int account, TDEConfigBase& fallbackConfig );
/** /**
* This function deletes a password from KWallet * This function deletes a password from TDEWallet
* *
* @param box The boxnumber of the account. * @param box The boxnumber of the account.
* @param account The accountnumber of the account. * @param account The accountnumber of the account.
@ -143,7 +143,7 @@ public:
static void rewritePassword( int box, int account, TDEConfigBase &config, bool newUseWalletValue ); static void rewritePassword( int box, int account, TDEConfigBase &config, bool newUseWalletValue );
/** /**
* If set to true, this class will try to use KWallet, * If set to true, this class will try to use TDEWallet,
* if false, it will not. * if false, it will not.
* *
* The default value is true. * The default value is true.
@ -159,7 +159,7 @@ private:
static TQString KMailDecrypt( const TQString& enc ); static TQString KMailDecrypt( const TQString& enc );
static KWallet::Wallet *m_wallet; static TDEWallet::Wallet *m_wallet;
static bool m_openFailed; static bool m_openFailed;
static bool m_useWallet; static bool m_useWallet;
}; };

@ -26,7 +26,7 @@
========================================================================*/ ========================================================================*/
using namespace KCal; using namespace KCal;
using namespace KWallet; using namespace TDEWallet;
/*========================================================================= /*=========================================================================
| CONSTANTS | CONSTANTS

@ -33,7 +33,7 @@ namespace KCal {
/** /**
* This class provides access to ResourceCalDav preferences. * This class provides access to ResourceCalDav preferences.
* It inherits auto-generated CalDavPrefsSkel class to add password-handling code. * It inherits auto-generated CalDavPrefsSkel class to add password-handling code.
* KWallet is used for storing passwords. * TDEWallet is used for storing passwords.
* It also adds code to allow multiple CalDAV resources to store settings in the same * It also adds code to allow multiple CalDAV resources to store settings in the same
* config file. * config file.
*/ */
@ -109,7 +109,7 @@ protected:
/** /**
* Returns the wallet or NULL, if the wallet can't be obtained. * Returns the wallet or NULL, if the wallet can't be obtained.
*/ */
KWallet::Wallet* getWallet(); TDEWallet::Wallet* getWallet();
/** /**
* Tries to set a working folder for the wallet. If the wallet is not configured yet, does nothing. * Tries to set a working folder for the wallet. If the wallet is not configured yet, does nothing.
@ -150,7 +150,7 @@ private:
static const TQString WALLET_FOLDER; static const TQString WALLET_FOLDER;
static const TQString WALLET_PWD_SUFFIX; static const TQString WALLET_PWD_SUFFIX;
KWallet::Wallet* mWallet; TDEWallet::Wallet* mWallet;
bool mNoWallet; bool mNoWallet;
TQString mPrefix; TQString mPrefix;

@ -25,7 +25,7 @@
========================================================================*/ ========================================================================*/
using namespace TDEABC; using namespace TDEABC;
using namespace KWallet; using namespace TDEWallet;
/*========================================================================= /*=========================================================================
| CONSTANTS | CONSTANTS

@ -32,7 +32,7 @@ namespace TDEABC {
/** /**
* This class provides access to ResourceCardDav preferences. * This class provides access to ResourceCardDav preferences.
* It inherits auto-generated CardDavPrefsSkel class to add password-handling code. * It inherits auto-generated CardDavPrefsSkel class to add password-handling code.
* KWallet is used for storing passwords. * TDEWallet is used for storing passwords.
* It also adds code to allow multiple CardDAV resources to store settings in the same * It also adds code to allow multiple CardDAV resources to store settings in the same
* config file. * config file.
*/ */
@ -100,7 +100,7 @@ protected:
/** /**
* Returns the wallet or NULL, if the wallet can't be obtained. * Returns the wallet or NULL, if the wallet can't be obtained.
*/ */
KWallet::Wallet* getWallet(); TDEWallet::Wallet* getWallet();
/** /**
* Tries to set a working folder for the wallet. If the wallet is not configured yet, does nothing. * Tries to set a working folder for the wallet. If the wallet is not configured yet, does nothing.
@ -141,7 +141,7 @@ private:
static const TQString WALLET_FOLDER; static const TQString WALLET_FOLDER;
static const TQString WALLET_PWD_SUFFIX; static const TQString WALLET_PWD_SUFFIX;
KWallet::Wallet* mWallet; TDEWallet::Wallet* mWallet;
bool mNoWallet; bool mNoWallet;
TQString mPrefix; TQString mPrefix;

@ -162,13 +162,13 @@ void PasswordPage::finished( TDEIO::Job* job )
// Save only if the user choose it before // Save only if the user choose it before
bool storePassword = group.readBoolEntry( "store-passwd", false ); bool storePassword = group.readBoolEntry( "store-passwd", false );
if ( storePassword ) { if ( storePassword ) {
// First try to store in KWallet // First try to store in TDEWallet
if ( KWallet::Wallet::isEnabled() ) { if ( TDEWallet::Wallet::isEnabled() ) {
WId window = 0; WId window = 0;
if ( tqApp->activeWindow() ) if ( tqApp->activeWindow() )
window = tqApp->activeWindow()->winId(); window = tqApp->activeWindow()->winId();
KWallet::Wallet *wallet = KWallet::Wallet::openWallet( KWallet::Wallet::NetworkWallet(), window ); TDEWallet::Wallet *wallet = TDEWallet::Wallet::openWallet( TDEWallet::Wallet::NetworkWallet(), window );
if ( wallet ) { if ( wallet ) {
if ( !wallet->hasFolder( "kmail" ) ) if ( !wallet->hasFolder( "kmail" ) )
wallet->createFolder( "kmail" ); wallet->createFolder( "kmail" );

@ -31,7 +31,7 @@
#include <kdebug.h> #include <kdebug.h>
#include <kstringhandler.h> #include <kstringhandler.h>
#include <tdewallet.h> #include <tdewallet.h>
using namespace KWallet; using namespace TDEWallet;
static const char* s_folderContentsType[] = { static const char* s_folderContentsType[] = {
I18N_NOOP( "Calendar" ), I18N_NOOP( "Calendar" ),

@ -25,7 +25,7 @@
#include <tdeconfigpropagator.h> #include <tdeconfigpropagator.h>
#include <tdeconfig.h> #include <tdeconfig.h>
namespace KWallet { namespace TDEWallet {
class Wallet; class Wallet;
} }
@ -107,7 +107,7 @@ class CreateImapAccount : public TDEConfigPropagator::Change
CustomWriter *mCustomWriter; CustomWriter *mCustomWriter;
private: private:
static KWallet::Wallet *mWallet; static TDEWallet::Wallet *mWallet;
}; };
class CreateDisconnectedImapAccount : public CreateImapAccount class CreateDisconnectedImapAccount : public CreateImapAccount

@ -409,7 +409,7 @@ ScalixWizard::ScalixWizard() : TDEConfigWizard( new ScalixPropagator )
mSavePasswordCheck = new TQCheckBox( i18n("Save password"), page ); mSavePasswordCheck = new TQCheckBox( i18n("Save password"), page );
topLayout->addMultiCellWidget( mSavePasswordCheck, 5, 5, 0, 1 ); topLayout->addMultiCellWidget( mSavePasswordCheck, 5, 5, 0, 1 );
TQWhatsThis::add( mSavePasswordCheck, i18n( "Shall the password be saved in KWallet?." ) ); TQWhatsThis::add( mSavePasswordCheck, i18n( "Shall the password be saved in TDEWallet?." ) );
label = new TQLabel( i18n( "Use Secure Connection:" ), page ); label = new TQLabel( i18n( "Use Secure Connection:" ), page );
topLayout->addWidget( label, 6, 0 ); topLayout->addWidget( label, 6, 0 );

Loading…
Cancel
Save