diff options
Diffstat (limited to 'krdc/vnc/vnchostpref.cpp')
-rw-r--r-- | krdc/vnc/vnchostpref.cpp | 22 |
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; } |