summaryrefslogtreecommitdiffstats
path: root/krdc/vnc/vnchostpref.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-08-27 23:21:05 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-08-27 23:21:05 -0500
commitcce87d87ca74d317dd4102d64ff0a8e784f539a2 (patch)
treea4c7ce926dc52a9b36769b2b1551f9a5861b72b6 /krdc/vnc/vnchostpref.cpp
parent01fd5fb452ff67b8c31853c9a3bf181a74d44883 (diff)
downloadtdenetwork-cce87d87ca74d317dd4102d64ff0a8e784f539a2.tar.gz
tdenetwork-cce87d87ca74d317dd4102d64ff0a8e784f539a2.zip
Rename KWallet to TDEWallet
Diffstat (limited to 'krdc/vnc/vnchostpref.cpp')
-rw-r--r--krdc/vnc/vnchostpref.cpp22
1 files changed, 11 insertions, 11 deletions
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;
}