summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2013-08-27 23:21:05 -0500
committerTimothy Pearson <[email protected]>2013-08-27 23:21:05 -0500
commitcce87d87ca74d317dd4102d64ff0a8e784f539a2 (patch)
treea4c7ce926dc52a9b36769b2b1551f9a5861b72b6
parent01fd5fb452ff67b8c31853c9a3bf181a74d44883 (diff)
downloadtdenetwork-cce87d87ca74d317dd4102d64ff0a8e784f539a2.tar.gz
tdenetwork-cce87d87ca74d317dd4102d64ff0a8e784f539a2.zip
Rename KWallet to TDEWallet
-rw-r--r--kopete/libkopete/kopetepassword.cpp14
-rw-r--r--kopete/libkopete/kopetepassword.h6
-rw-r--r--kopete/libkopete/kopetewalletmanager.cpp12
-rw-r--r--kopete/libkopete/kopetewalletmanager.h12
-rw-r--r--kopete/libkopete/tests/kopetewallettest_program.cpp4
-rw-r--r--kopete/libkopete/tests/kopetewallettest_program.h4
-rw-r--r--krdc/main.cpp2
-rw-r--r--krdc/preferencesdialog.cpp8
-rw-r--r--krdc/rdp/krdpview.cpp18
-rw-r--r--krdc/rdp/rdphostpref.cpp24
-rw-r--r--krdc/rdp/rdphostpref.h6
-rw-r--r--krdc/rdp/rdpprefs.ui8
-rw-r--r--krdc/rdp/rdpprefs.ui.h8
-rw-r--r--krdc/vnc/kvncview.cpp26
-rw-r--r--krdc/vnc/vnchostpref.cpp22
-rw-r--r--krdc/vnc/vnchostpref.h6
-rw-r--r--krdc/vnc/vncprefs.ui8
-rw-r--r--krdc/vnc/vncprefs.ui.h8
18 files changed, 98 insertions, 98 deletions
diff --git a/kopete/libkopete/kopetepassword.cpp b/kopete/libkopete/kopetepassword.cpp
index 875e2edf..5fd729a7 100644
--- a/kopete/libkopete/kopetepassword.cpp
+++ b/kopete/libkopete/kopetepassword.cpp
@@ -57,7 +57,7 @@ public:
}
/** Reference count */
int refCount;
- /** Group to use for TDEConfig and KWallet */
+ /** Group to use for TDEConfig and TDEWallet */
const TQString configGroup;
/** Is the password being remembered? */
bool remembered;
@@ -92,10 +92,10 @@ public:
void begin()
{
kdDebug( 14010 ) << k_funcinfo << endl;
- Kopete::WalletManager::self()->openWallet( this, TQT_SLOT( walletReceived( KWallet::Wallet* ) ) );
+ Kopete::WalletManager::self()->openWallet( this, TQT_SLOT( walletReceived( TDEWallet::Wallet* ) ) );
}
- void walletReceived( KWallet::Wallet *wallet )
+ void walletReceived( TDEWallet::Wallet *wallet )
{
kdDebug( 14010 ) << k_funcinfo << endl;
mWallet = wallet;
@@ -112,7 +112,7 @@ public:
protected:
Kopete::Password mPassword;
- KWallet::Wallet *mWallet;
+ TDEWallet::Wallet *mWallet;
};
/**
@@ -131,7 +131,7 @@ public:
TQString grabPassword()
{
// Before trying to read from the wallet, check if the config file holds a password.
- // If so, remove it from the config and set it through KWallet instead.
+ // If so, remove it from the config and set it through TDEWallet instead.
TQString pwd;
if ( mPassword.d->remembered && !mPassword.d->passwordFromTDEConfig.isNull() )
{
@@ -281,7 +281,7 @@ public:
return true;
}
- if ( KWallet::Wallet::isEnabled() )
+ if ( TDEWallet::Wallet::isEnabled() )
{
// If we end up here, the wallet is enabled, but failed somehow.
// Ask the user what to do now.
@@ -294,7 +294,7 @@ public:
"do you want to save the password in the <b>unsafe</b> configuration file instead?</qt>" ),
i18n( "Unable to Store Secure Password" ),
KGuiItem( i18n( "Store &Unsafe" ), TQString::fromLatin1( "unlock" ) ),
- TQString::fromLatin1( "KWalletFallbackToTDEConfig" ) ) != KMessageBox::Continue )
+ TQString::fromLatin1( "TDEWalletFallbackToTDEConfig" ) ) != KMessageBox::Continue )
{
return false;
}
diff --git a/kopete/libkopete/kopetepassword.h b/kopete/libkopete/kopetepassword.h
index bd6826b9..d2ed5aa2 100644
--- a/kopete/libkopete/kopetepassword.h
+++ b/kopete/libkopete/kopetepassword.h
@@ -20,7 +20,7 @@
#include <tqobject.h>
#include "kopete_export.h"
-namespace KWallet { class Wallet; }
+namespace TDEWallet { class Wallet; }
class TQPixmap;
@@ -40,7 +40,7 @@ namespace Kopete
* The Kopete::Password object is responsible for storing and retrieving a
* password for a plugin or account object.
*
- * If the KWallet is active, passwords will be stored in it, otherwise, they
+ * If the TDEWallet is active, passwords will be stored in it, otherwise, they
* will be stored in the TDEConfig, in a slightly mangled form.
*/
class KOPETE_EXPORT Password : public TQObject
@@ -212,7 +212,7 @@ class KopetePasswordRequestBase : public virtual TQObject
signals:
void requestFinished( const TQString &password );
public slots:
- virtual void walletReceived( KWallet::Wallet *wallet ) = 0;
+ virtual void walletReceived( TDEWallet::Wallet *wallet ) = 0;
virtual void slotOkPressed() = 0;
virtual void slotCancelPressed() = 0;
};
diff --git a/kopete/libkopete/kopetewalletmanager.cpp b/kopete/libkopete/kopetewalletmanager.cpp
index 6ab2a5af..5d886ba9 100644
--- a/kopete/libkopete/kopetewalletmanager.cpp
+++ b/kopete/libkopete/kopetewalletmanager.cpp
@@ -39,7 +39,7 @@ public:
Private() : wallet(0), signal(0) {}
~Private() { delete wallet; delete signal; }
- KWallet::Wallet *wallet;
+ TDEWallet::Wallet *wallet;
// we can't just connect every slot that wants the wallet to the
// walletOpened signal - since we disconnect all the slots immediately
@@ -77,8 +77,8 @@ void Kopete::WalletManager::openWallet( TQObject *object, const char *slot )
if ( !d->signal )
d->signal = new KopeteWalletSignal;
// allow connecting to protected slots by calling object->connect
- connect( d->signal, TQT_SIGNAL( walletOpened( KWallet::Wallet* ) ), object, slot );
- //object->connect( d->signal, TQT_SIGNAL( walletOpened( KWallet::Wallet* ) ), slot );
+ connect( d->signal, TQT_SIGNAL( walletOpened( TDEWallet::Wallet* ) ), object, slot );
+ //object->connect( d->signal, TQT_SIGNAL( walletOpened( TDEWallet::Wallet* ) ), slot );
openWalletInner();
}
@@ -104,8 +104,8 @@ void Kopete::WalletManager::openWalletInner()
kdDebug(14010) << k_funcinfo << " about to open wallet async" << endl;
// we have no wallet: ask for one.
- d->wallet = KWallet::Wallet::openWallet( KWallet::Wallet::NetworkWallet(),
- mainWindowID(), KWallet::Wallet::Asynchronous );
+ d->wallet = TDEWallet::Wallet::openWallet( TDEWallet::Wallet::NetworkWallet(),
+ mainWindowID(), TDEWallet::Wallet::Asynchronous );
connect( d->wallet, TQT_SIGNAL( walletOpened(bool) ), TQT_SLOT( slotWalletChangedStatus() ) );
}
@@ -174,7 +174,7 @@ void Kopete::WalletManager::closeWallet()
emit walletLost();
}
-void Kopete::WalletManager::emitWalletOpened( KWallet::Wallet *wallet )
+void Kopete::WalletManager::emitWalletOpened( TDEWallet::Wallet *wallet )
{
KopeteWalletSignal *signal = d->signal;
d->signal = 0;
diff --git a/kopete/libkopete/kopetewalletmanager.h b/kopete/libkopete/kopetewalletmanager.h
index f12f826c..eef2d24b 100644
--- a/kopete/libkopete/kopetewalletmanager.h
+++ b/kopete/libkopete/kopetewalletmanager.h
@@ -23,7 +23,7 @@
#include "kopete_export.h"
-namespace KWallet { class Wallet; }
+namespace TDEWallet { class Wallet; }
namespace Kopete
{
@@ -32,7 +32,7 @@ namespace Kopete
* @author Richard Smith <[email protected]>
*
* The Kopete::WalletManager class is a singleton, which looks after Kopete's
- * KWallet connection.
+ * TDEWallet connection.
*/
class KOPETE_EXPORT WalletManager : public TQObject
{
@@ -47,11 +47,11 @@ public:
~WalletManager();
/**
- * @brief Attempt to open the KWallet asyncronously, then signal an
+ * @brief Attempt to open the TDEWallet asyncronously, then signal an
* object to indicate the task is complete.
*
* @param object The object to call back to
- * @param slot The slot on object to call; must have signature slot( KWallet::Wallet* )
+ * @param slot The slot on object to call; must have signature slot( TDEWallet::Wallet* )
* The parameter to the slot will be the wallet that was opened if the call
* succeeded, or NULL if the wallet failed to open or the Kopete folder was
* inaccessible.
@@ -90,7 +90,7 @@ private slots:
private:
void openWalletInner();
- void emitWalletOpened( KWallet::Wallet *wallet );
+ void emitWalletOpened( TDEWallet::Wallet *wallet );
class Private;
Private *d;
@@ -109,7 +109,7 @@ class KopeteWalletSignal : public TQObject
friend class Kopete::WalletManager;
signals:
- void walletOpened( KWallet::Wallet *wallet );
+ void walletOpened( TDEWallet::Wallet *wallet );
};
#endif
diff --git a/kopete/libkopete/tests/kopetewallettest_program.cpp b/kopete/libkopete/tests/kopetewallettest_program.cpp
index 58f2370e..f70535ce 100644
--- a/kopete/libkopete/tests/kopetewallettest_program.cpp
+++ b/kopete/libkopete/tests/kopetewallettest_program.cpp
@@ -46,10 +46,10 @@ void openWalletAsync()
{
WalletReciever *r = new WalletReciever;
_out << "[ASYNC] About to open wallet, receiver: " << r << endl;
- Kopete::WalletManager::self()->openWallet( r, TQT_SLOT( gotWallet( KWallet::Wallet* ) ) );
+ Kopete::WalletManager::self()->openWallet( r, TQT_SLOT( gotWallet( TDEWallet::Wallet* ) ) );
}
-void WalletReciever::gotWallet( KWallet::Wallet *w )
+void WalletReciever::gotWallet( TDEWallet::Wallet *w )
{
_out << "[ASYNC] Received wallet pointer: " << w << " for receiver: " << this << endl;
}
diff --git a/kopete/libkopete/tests/kopetewallettest_program.h b/kopete/libkopete/tests/kopetewallettest_program.h
index abea5a23..81f818ed 100644
--- a/kopete/libkopete/tests/kopetewallettest_program.h
+++ b/kopete/libkopete/tests/kopetewallettest_program.h
@@ -3,7 +3,7 @@
#include <tqobject.h>
-namespace KWallet { class Wallet; }
+namespace TDEWallet { class Wallet; }
class WalletReciever : public TQObject
{
@@ -12,7 +12,7 @@ class WalletReciever : public TQObject
public slots:
void timer();
private slots:
- void gotWallet( KWallet::Wallet *w );
+ void gotWallet( TDEWallet::Wallet *w );
};
#endif
diff --git a/krdc/main.cpp b/krdc/main.cpp
index 9252e6a0..1488df43 100644
--- a/krdc/main.cpp
+++ b/krdc/main.cpp
@@ -41,7 +41,7 @@
// opened multiple times.
// 3) MainController is about the only thing that isn't deleted in between connection
// attempts.
-KWallet::Wallet *wallet = 0;
+TDEWallet::Wallet *wallet = 0;
static const char description[] = I18N_NOOP("Remote desktop connection");
diff --git a/krdc/preferencesdialog.cpp b/krdc/preferencesdialog.cpp
index 6ab55205..acb819ba 100644
--- a/krdc/preferencesdialog.cpp
+++ b/krdc/preferencesdialog.cpp
@@ -73,12 +73,12 @@ void PreferencesDialog::load()
m_vncPrefs->setQuality( m_vncDefaults->quality() );
m_vncPrefs->setShowPrefs( m_vncDefaults->askOnConnect() );
- m_vncPrefs->setUseKWallet( m_vncDefaults->useKWallet() );
+ m_vncPrefs->setUseTDEWallet( m_vncDefaults->useTDEWallet() );
m_rdpPrefs->setRdpWidth( m_rdpDefaults->width() );
m_rdpPrefs->setRdpHeight( m_rdpDefaults->height() );
m_rdpPrefs->setShowPrefs( m_rdpDefaults->askOnConnect() );
- m_rdpPrefs->setUseKWallet( m_rdpDefaults->useKWallet() );
+ m_rdpPrefs->setUseTDEWallet( m_rdpDefaults->useTDEWallet() );
m_rdpPrefs->setColorDepth( m_rdpDefaults->colorDepth() );
m_rdpPrefs->setKbLayout( keymap2int( m_rdpDefaults->layout() ));
m_rdpPrefs->setResolution();
@@ -90,13 +90,13 @@ void PreferencesDialog::save()
m_vncDefaults->setQuality( m_vncPrefs->quality() );
m_vncDefaults->setAskOnConnect( m_vncPrefs->showPrefs() );
- m_vncDefaults->setUseKWallet( m_vncPrefs->useKWallet() );
+ m_vncDefaults->setUseTDEWallet( m_vncPrefs->useTDEWallet() );
m_rdpDefaults->setWidth( m_rdpPrefs->rdpWidth() );
m_rdpDefaults->setHeight( m_rdpPrefs->rdpHeight() );
m_rdpDefaults->setLayout( int2keymap( m_rdpPrefs->kbLayout() ));
m_rdpDefaults->setAskOnConnect( m_rdpPrefs->showPrefs() );
- m_rdpDefaults->setUseKWallet( m_rdpPrefs->useKWallet() );
+ m_rdpDefaults->setUseTDEWallet( m_rdpPrefs->useTDEWallet() );
m_rdpDefaults->setColorDepth( m_rdpPrefs->colorDepth() );
HostPreferences *hp = HostPreferences::instance();
diff --git a/krdc/rdp/krdpview.cpp b/krdc/rdp/krdpview.cpp
index e20399df..5188489b 100644
--- a/krdc/rdp/krdpview.cpp
+++ b/krdc/rdp/krdpview.cpp
@@ -41,7 +41,7 @@
bool launch_Fullscreen_rdp = false;
bool rdpAppDataConfigured = false;
-extern KWallet::Wallet *wallet;
+extern TDEWallet::Wallet *wallet;
static KRdpView *krdpview;
@@ -165,7 +165,7 @@ bool KRdpView::editPreferences( HostPrefPtr host )
int hv = hp->height();
int cd = hp->colorDepth();
TQString kl = hp->layout();
- bool tdewallet = hp->useKWallet();
+ bool tdewallet = hp->useTDEWallet();
// show preferences dialog
KDialogBase *dlg = new KDialogBase( 0L, "dlg", true,
@@ -183,7 +183,7 @@ bool KRdpView::editPreferences( HostPrefPtr host )
prefs->setColorDepth(cd);
prefs->setKbLayout( keymap2int( kl ) );
prefs->setShowPrefs( true );
- prefs->setUseKWallet(tdewallet);
+ prefs->setUseTDEWallet(tdewallet);
if ( dlg->exec() == TQDialog::Rejected )
return false;
@@ -197,7 +197,7 @@ bool KRdpView::editPreferences( HostPrefPtr host )
hp->setHeight(hv);
hp->setColorDepth( prefs->colorDepth() );
hp->setLayout(kl);
- hp->setUseKWallet(prefs->useKWallet());
+ hp->setUseTDEWallet(prefs->useTDEWallet());
delete dlg;
return true;
@@ -207,7 +207,7 @@ bool KRdpView::editPreferences( HostPrefPtr host )
bool KRdpView::start()
{
SmartPtr<RdpHostPref> hp, rdpDefaults;
- bool useKWallet = false;
+ bool useTDEWallet = false;
TQWidget *desktop = TQT_TQWIDGET(TQApplication::desktop());
@@ -223,7 +223,7 @@ bool KRdpView::start()
hps->sync();
}
- useKWallet = hp->useKWallet();
+ useTDEWallet = hp->useTDEWallet();
}
m_container->show();
@@ -246,7 +246,7 @@ bool KRdpView::start()
*m_process << "-k" << hp->layout();
if(!m_user.isEmpty()) { *m_process << "-u" << m_user; }
- if(m_password.isEmpty() && useKWallet ) {
+ if(m_password.isEmpty() && useTDEWallet ) {
TQString krdc_folder = "KRDC-RDP";
// Bugfix: Check if wallet has been closed by an outside source
@@ -256,8 +256,8 @@ bool KRdpView::start()
// Do we need to open the wallet?
if ( !wallet ) {
- TQString walletName = KWallet::Wallet::NetworkWallet();
- wallet = KWallet::Wallet::openWallet(walletName);
+ TQString walletName = TDEWallet::Wallet::NetworkWallet();
+ wallet = TDEWallet::Wallet::openWallet(walletName);
}
if (wallet && wallet->isOpen()) {
diff --git a/krdc/rdp/rdphostpref.cpp b/krdc/rdp/rdphostpref.cpp
index e50dc7de..b86ea06a 100644
--- a/krdc/rdp/rdphostpref.cpp
+++ b/krdc/rdp/rdphostpref.cpp
@@ -30,7 +30,7 @@ RdpHostPref::RdpHostPref(TDEConfig *conf, const TQString &host, const TQString &
m_colorDepth(24),
m_layout("en-us"),
m_askOnConnect(true),
- m_useKWallet(true)
+ m_useTDEWallet(true)
{
}
@@ -50,7 +50,7 @@ void RdpHostPref::save()
m_config->writeEntry(p+"colorDepth", m_colorDepth);
m_config->writeEntry(p+"layout", m_layout);
m_config->writeEntry(p+"askOnConnect", m_askOnConnect);
- m_config->writeEntry(p+"useKWallet", m_useKWallet);
+ m_config->writeEntry(p+"useTDEWallet", m_useTDEWallet);
}
else
{
@@ -60,7 +60,7 @@ void RdpHostPref::save()
m_config->writeEntry( "rdpColorDepth", m_colorDepth);
m_config->writeEntry( "rdpKeyboardLayout", m_layout );
m_config->writeEntry( "rdpShowHostPreferences", m_askOnConnect );
- m_config->writeEntry( "rdpUseKWallet", m_useKWallet );
+ m_config->writeEntry( "rdpUseTDEWallet", m_useTDEWallet );
}
}
@@ -75,7 +75,7 @@ void RdpHostPref::load()
m_colorDepth = m_config->readNumEntry(p+"colorDepth", 24);
m_layout = m_config->readEntry(p+"layout", "en-us");
m_askOnConnect = m_config->readBoolEntry(p+"askOnConnect", true);
- m_useKWallet = m_config->readBoolEntry(p+"useKWallet", true);
+ m_useTDEWallet = m_config->readBoolEntry(p+"useTDEWallet", true);
}
else
{
@@ -93,7 +93,7 @@ void RdpHostPref::remove()
m_config->deleteEntry(p+"colorDepth");
m_config->deleteEntry(p+"layout");
m_config->deleteEntry(p+"askOnConnect");
- m_config->deleteEntry(p+"useKWallet");
+ m_config->deleteEntry(p+"useTDEWallet");
}
void RdpHostPref::setDefaults()
@@ -104,14 +104,14 @@ void RdpHostPref::setDefaults()
m_colorDepth = m_config->readNumEntry("rdpColorDepth", 24);
m_layout = m_config->readEntry("rdpKeyboardLayout", "en-us");
m_askOnConnect = m_config->readBoolEntry("rdpShowHostPreferences", true);
- m_useKWallet = m_config->readBoolEntry("rdpUseKWallet", true);
+ m_useTDEWallet = m_config->readBoolEntry("rdpUseTDEWallet", true);
}
TQString RdpHostPref::prefDescription() const
{
- return i18n("Show Preferences: %1, Resolution: %2x%3, Color Depth: %4, Keymap: %5, KWallet: %6")
+ return i18n("Show Preferences: %1, Resolution: %2x%3, Color Depth: %4, Keymap: %5, TDEWallet: %6")
.arg(m_askOnConnect ? i18n("yes") : i18n("no")).arg(m_width).arg(m_height)
- .arg(m_colorDepth).arg(m_layout).arg(m_useKWallet ? i18n("yes") : i18n("no"));
+ .arg(m_colorDepth).arg(m_layout).arg(m_useTDEWallet ? i18n("yes") : i18n("no"));
}
void RdpHostPref::setWidth(int w)
@@ -170,11 +170,11 @@ bool RdpHostPref::askOnConnect() const
return m_askOnConnect;
}
-void RdpHostPref::setUseKWallet(bool use) {
- m_useKWallet = use;
+void RdpHostPref::setUseTDEWallet(bool use) {
+ m_useTDEWallet = use;
save();
}
-bool RdpHostPref::useKWallet() const {
- return m_useKWallet;
+bool RdpHostPref::useTDEWallet() const {
+ return m_useTDEWallet;
}
diff --git a/krdc/rdp/rdphostpref.h b/krdc/rdp/rdphostpref.h
index af8fa8ae..26c77af2 100644
--- a/krdc/rdp/rdphostpref.h
+++ b/krdc/rdp/rdphostpref.h
@@ -95,7 +95,7 @@ class RdpHostPref : public HostPref
int m_colorDepth;
TQString m_layout;
bool m_askOnConnect;
- bool m_useKWallet;
+ bool m_useTDEWallet;
virtual void load();
virtual void setDefaults();
@@ -120,8 +120,8 @@ class RdpHostPref : public HostPref
TQString layout() const;
void setAskOnConnect(bool ask);
bool askOnConnect() const;
- bool useKWallet() const;
- void setUseKWallet(bool);
+ bool useTDEWallet() const;
+ void setUseTDEWallet(bool);
};
#endif
diff --git a/krdc/rdp/rdpprefs.ui b/krdc/rdp/rdpprefs.ui
index 338dff73..eb6d2b90 100644
--- a/krdc/rdp/rdpprefs.ui
+++ b/krdc/rdp/rdpprefs.ui
@@ -362,7 +362,7 @@
</widget>
<widget class="TQCheckBox" row="4" column="0">
<property name="name">
- <cstring>cbUseKWallet</cstring>
+ <cstring>cbUseTDEWallet</cstring>
</property>
<property name="enabled">
<bool>true</bool>
@@ -371,7 +371,7 @@
<string>Use K&amp;Wallet for passwords</string>
</property>
<property name="whatsThis" stdset="0">
- <string>Enable this option to store your passwords with KWallet.</string>
+ <string>Enable this option to store your passwords with TDEWallet.</string>
</property>
</widget>
<widget class="TQLabel" row="0" column="0">
@@ -506,8 +506,8 @@
<function specifier="non virtual" returnType="int">kbLayout()</function>
<function specifier="non virtual">setShowPrefs( bool b )</function>
<function specifier="non virtual" returnType="bool">showPrefs()</function>
- <function specifier="non virtual">setUseKWallet( bool b )</function>
- <function specifier="non virtual" returnType="bool">useKWallet()</function>
+ <function specifier="non virtual">setUseTDEWallet( bool b )</function>
+ <function specifier="non virtual" returnType="bool">useTDEWallet()</function>
</functions>
<layoutdefaults spacing="6" margin="11"/>
<layoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
diff --git a/krdc/rdp/rdpprefs.ui.h b/krdc/rdp/rdpprefs.ui.h
index f6fb7998..384d3b39 100644
--- a/krdc/rdp/rdpprefs.ui.h
+++ b/krdc/rdp/rdpprefs.ui.h
@@ -168,12 +168,12 @@ bool RdpPrefs::showPrefs()
return cbShowPrefs->isChecked();
}
-void RdpPrefs::setUseKWallet( bool b )
+void RdpPrefs::setUseTDEWallet( bool b )
{
- cbUseKWallet->setChecked(b);
+ cbUseTDEWallet->setChecked(b);
}
-bool RdpPrefs::useKWallet()
+bool RdpPrefs::useTDEWallet()
{
- return cbUseKWallet->isChecked();
+ return cbUseTDEWallet->isChecked();
}
diff --git a/krdc/vnc/kvncview.cpp b/krdc/vnc/kvncview.cpp
index c3edc19b..111c13fd 100644
--- a/krdc/vnc/kvncview.cpp
+++ b/krdc/vnc/kvncview.cpp
@@ -54,9 +54,9 @@ Display* dpy;
static KVncView *kvncview;
-//Passwords and KWallet data
-extern KWallet::Wallet *wallet;
-bool useKWallet = false;
+//Passwords and TDEWallet data
+extern TDEWallet::Wallet *wallet;
+bool useTDEWallet = false;
static TQCString password;
static TQMutex passwordLock;
static TQWaitCondition passwordWaiter;
@@ -232,7 +232,7 @@ bool KVncView::editPreferences( HostPrefPtr host )
SmartPtr<VncHostPref> hp( host );
int ci = hp->quality();
- bool tdewallet = hp->useKWallet();
+ bool tdewallet = hp->useTDEWallet();
// show preferences dialog
KDialogBase *dlg = new KDialogBase( 0L, "dlg", true,
@@ -246,7 +246,7 @@ bool KVncView::editPreferences( HostPrefPtr host )
prefs->setQuality( ci );
prefs->setShowPrefs(true);
- prefs->setUseKWallet(tdewallet);
+ prefs->setUseTDEWallet(tdewallet);
if ( dlg->exec() == TQDialog::Rejected )
return false;
@@ -254,7 +254,7 @@ bool KVncView::editPreferences( HostPrefPtr host )
ci = prefs->quality();
hp->setAskOnConnect(prefs->showPrefs());
hp->setQuality(ci);
- hp->setUseKWallet(prefs->useKWallet());
+ hp->setUseTDEWallet(prefs->useTDEWallet());
delete dlg;
return true;
@@ -292,7 +292,7 @@ bool KVncView::start() {
}
configureApp(quality);
- useKWallet = hp->useKWallet();
+ useTDEWallet = hp->useTDEWallet();
}
setStatus(REMOTE_VIEW_CONNECTING);
@@ -403,8 +403,8 @@ void KVncView::customEvent(TQCustomEvent *e)
emit disconnected();
}
else if (m_status == REMOTE_VIEW_PREPARING) {
- //Login was successfull: Write KWallet password if necessary.
- if ( useKWallet && !password.isNull() && wallet && wallet->isOpen() && !wallet->hasEntry(host())) {
+ //Login was successfull: Write TDEWallet password if necessary.
+ if ( useTDEWallet && !password.isNull() && wallet && wallet->isOpen() && !wallet->hasEntry(host())) {
wallet->writePassword(host(), password);
}
delete wallet; wallet=0;
@@ -433,8 +433,8 @@ void KVncView::customEvent(TQCustomEvent *e)
// Do we need to open the wallet?
if ( !wallet ) {
- TQString walletName = KWallet::Wallet::NetworkWallet();
- wallet = KWallet::Wallet::openWallet(walletName);
+ TQString walletName = TDEWallet::Wallet::NetworkWallet();
+ wallet = TDEWallet::Wallet::openWallet(walletName);
}
if (wallet && wallet->isOpen()) {
@@ -494,7 +494,7 @@ void KVncView::customEvent(TQCustomEvent *e)
break;
case ERROR_AUTHENTICATION:
//Login failed: Remove wallet entry if there is one.
- if ( useKWallet && wallet && wallet->isOpen() && wallet->hasEntry(host()) ) {
+ if ( useTDEWallet && wallet && wallet->isOpen() && wallet->hasEntry(host()) ) {
wallet->removeEntry(host());
}
KMessageBox::error(0,
@@ -771,7 +771,7 @@ int getPassword(char *passwd, int pwlen) {
}
//Try #2: Is there something in the wallet?
- if ( !retV && useKWallet ) {
+ if ( !retV && useTDEWallet ) {
TQApplication::postEvent(kvncview, new WalletOpenEvent());
passwordWaiter.wait(&passwordLock); //block
if (!password.isNull()) retV = 1; //got it!
diff --git a/krdc/vnc/vnchostpref.cpp b/krdc/vnc/vnchostpref.cpp
index 05ac4139..1b27dd4e 100644
--- a/krdc/vnc/vnchostpref.cpp
+++ b/krdc/vnc/vnchostpref.cpp
@@ -24,7 +24,7 @@ const TQString VncHostPref::VncType = "VNC";
VncHostPref::VncHostPref(TDEConfig *conf, const TQString &host, const TQString &type) :
HostPref(conf, host, type),
m_quality(0),
- m_useKWallet(true),
+ m_useTDEWallet(true),
m_askOnConnect(true) {
}
@@ -39,14 +39,14 @@ void VncHostPref::save() {
m_config->writeEntry(p+"exists", true);
m_config->writeEntry(p+"quality", m_quality);
m_config->writeEntry(p+"askOnConnect", m_askOnConnect);
- m_config->writeEntry(p+"useKWallet", m_useKWallet);
+ m_config->writeEntry(p+"useTDEWallet", m_useTDEWallet);
}
else
{
m_config->setGroup( "VncDefaultSettings" );
m_config->writeEntry( "vncQuality", m_quality );
m_config->writeEntry( "vncShowHostPreferences", m_askOnConnect );
- m_config->writeEntry( "vncUseKWallet", m_useKWallet );
+ m_config->writeEntry( "vncUseTDEWallet", m_useTDEWallet );
}
}
@@ -57,7 +57,7 @@ void VncHostPref::load() {
TQString p = prefix();
m_quality = m_config->readNumEntry(p+"quality", 0);
m_askOnConnect = m_config->readBoolEntry(p+"askOnConnect", true);
- m_useKWallet = m_config->readBoolEntry(p+"useKWallet", true);
+ m_useTDEWallet = m_config->readBoolEntry(p+"useTDEWallet", true);
}
else
{
@@ -77,7 +77,7 @@ void VncHostPref::setDefaults() {
m_config->setGroup("VncDefaultSettings");
m_quality = m_config->readNumEntry("vncQuality", 0);
m_askOnConnect = m_config->readBoolEntry("vncShowHostPreferences", true);
- m_useKWallet = m_config->readBoolEntry("vncUseKWallet", true);
+ m_useTDEWallet = m_config->readBoolEntry("vncUseTDEWallet", true);
}
TQString VncHostPref::prefDescription() const {
@@ -95,8 +95,8 @@ TQString VncHostPref::prefDescription() const {
default:
Q_ASSERT(true);
}
- return i18n("Show Preferences: %1, Quality: %2, KWallet: %3")
- .arg(m_askOnConnect ? i18n("yes") : i18n("no")).arg(q).arg(m_useKWallet ? i18n("yes") : i18n("no"));
+ return i18n("Show Preferences: %1, Quality: %2, TDEWallet: %3")
+ .arg(m_askOnConnect ? i18n("yes") : i18n("no")).arg(q).arg(m_useTDEWallet ? i18n("yes") : i18n("no"));
}
void VncHostPref::setQuality(int q) {
@@ -117,11 +117,11 @@ bool VncHostPref::askOnConnect() const {
return m_askOnConnect;
}
-void VncHostPref::setUseKWallet(bool use) {
- m_useKWallet = use;
+void VncHostPref::setUseTDEWallet(bool use) {
+ m_useTDEWallet = use;
save();
}
-bool VncHostPref::useKWallet() const {
- return m_useKWallet;
+bool VncHostPref::useTDEWallet() const {
+ return m_useTDEWallet;
}
diff --git a/krdc/vnc/vnchostpref.h b/krdc/vnc/vnchostpref.h
index 77f25208..1ede7bd9 100644
--- a/krdc/vnc/vnchostpref.h
+++ b/krdc/vnc/vnchostpref.h
@@ -26,7 +26,7 @@ protected:
int m_quality;
bool m_askOnConnect;
- bool m_useKWallet;
+ bool m_useTDEWallet;
virtual void load();
virtual void setDefaults();
@@ -45,8 +45,8 @@ public:
int quality() const;
void setAskOnConnect(bool ask);
bool askOnConnect() const;
- void setUseKWallet(bool);
- bool useKWallet() const;
+ void setUseTDEWallet(bool);
+ bool useTDEWallet() const;
};
#endif
diff --git a/krdc/vnc/vncprefs.ui b/krdc/vnc/vncprefs.ui
index ad38431c..42dd2508 100644
--- a/krdc/vnc/vncprefs.ui
+++ b/krdc/vnc/vncprefs.ui
@@ -46,7 +46,7 @@
</widget>
<widget class="TQCheckBox" row="2" column="0" rowspan="1" colspan="3">
<property name="name">
- <cstring>cbUseKWallet</cstring>
+ <cstring>cbUseTDEWallet</cstring>
</property>
<property name="enabled">
<bool>true</bool>
@@ -55,7 +55,7 @@
<string>Use K&amp;Wallet for passwords</string>
</property>
<property name="whatsThis" stdset="0">
- <string>Enable this option to store your passwords with KWallet.</string>
+ <string>Enable this option to store your passwords with TDEWallet.</string>
</property>
</widget>
<widget class="TQLabel" row="0" column="0">
@@ -157,8 +157,8 @@
<function specifier="non virtual" returnType="int">showPrefs()</function>
<function specifier="non virtual">setUseEncryption( bool b )</function>
<function specifier="non virtual" returnType="bool">useEncryption()</function>
- <function specifier="non virtual">setUseKWallet( bool b )</function>
- <function specifier="non virtual" returnType="bool">useKWallet()</function>
+ <function specifier="non virtual">setUseTDEWallet( bool b )</function>
+ <function specifier="non virtual" returnType="bool">useTDEWallet()</function>
</functions>
<layoutdefaults spacing="6" margin="11"/>
<layoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
diff --git a/krdc/vnc/vncprefs.ui.h b/krdc/vnc/vncprefs.ui.h
index e6cc9432..e518db0a 100644
--- a/krdc/vnc/vncprefs.ui.h
+++ b/krdc/vnc/vncprefs.ui.h
@@ -42,12 +42,12 @@ bool VncPrefs::useEncryption()
return cbUseEncryption->isChecked();
}
-void VncPrefs::setUseKWallet( bool b )
+void VncPrefs::setUseTDEWallet( bool b )
{
- cbUseKWallet->setChecked(b);
+ cbUseTDEWallet->setChecked(b);
}
-bool VncPrefs::useKWallet()
+bool VncPrefs::useTDEWallet()
{
- return cbUseKWallet->isChecked();
+ return cbUseTDEWallet->isChecked();
}