diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /kresources/carddav/preferences.cpp | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kresources/carddav/preferences.cpp')
-rw-r--r-- | kresources/carddav/preferences.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/kresources/carddav/preferences.cpp b/kresources/carddav/preferences.cpp index e95041195..cf2cdbc5a 100644 --- a/kresources/carddav/preferences.cpp +++ b/kresources/carddav/preferences.cpp @@ -16,8 +16,8 @@ #include "preferences.h" #include <kwallet.h> -#include <qstring.h> -#include <qurl.h> +#include <tqstring.h> +#include <tqurl.h> #include <kdebug.h> /*========================================================================= @@ -31,15 +31,15 @@ using namespace KWallet; | CONSTANTS ========================================================================*/ -const QString CardDavPrefs::NO_PASSWORD = ""; -const QString CardDavPrefs::WALLET_FOLDER = "CardDAV resource"; -const QString CardDavPrefs::WALLET_PWD_SUFFIX = ":carddav_password"; +const TQString CardDavPrefs::NO_PASSWORD = ""; +const TQString CardDavPrefs::WALLET_FOLDER = "CardDAV resource"; +const TQString CardDavPrefs::WALLET_PWD_SUFFIX = ":carddav_password"; /*========================================================================= | METHODS ========================================================================*/ -bool CardDavPrefs::setWalletFolder(const QString& folder) { +bool CardDavPrefs::setWalletFolder(const TQString& folder) { bool ret = true; if (!mNoWallet && NULL != mWallet) { @@ -97,7 +97,7 @@ void CardDavPrefs::removeWallet(bool noWallet) { mNoWallet = noWallet; } -void CardDavPrefs::addPrefix(const QString& prefix) { +void CardDavPrefs::addPrefix(const TQString& prefix) { KConfigSkeletonItem::List itemList = items(); KConfigSkeletonItem::List::Iterator it; @@ -106,7 +106,7 @@ void CardDavPrefs::addPrefix(const QString& prefix) { } } -bool CardDavPrefs::writePasswordToWallet(const QString& password) { +bool CardDavPrefs::writePasswordToWallet(const TQString& password) { Wallet* w = getWallet(); @@ -123,12 +123,12 @@ bool CardDavPrefs::writePasswordToWallet(const QString& password) { return ret; } -bool CardDavPrefs::readPasswordFromWallet(QString& password) { +bool CardDavPrefs::readPasswordFromWallet(TQString& password) { Wallet* w = getWallet(); bool ret = false; if (NULL != w) { - QString p; + TQString p; int rc = w->readPassword(mPrefix + WALLET_PWD_SUFFIX, p); if (0 == rc) { //CardDavPrefsSkel::setPassword(p); @@ -160,7 +160,7 @@ bool CardDavPrefs::removePasswordFromWallet() { return ret; } -void CardDavPrefs::setPassword(const QString& p) { +void CardDavPrefs::setPassword(const TQString& p) { mPassword = p; @@ -169,14 +169,14 @@ void CardDavPrefs::setPassword(const QString& p) { } } -QString CardDavPrefs::password() { +TQString CardDavPrefs::password() { if (NO_PASSWORD == mPassword) { readPasswordFromWallet(mPassword); } return mPassword; } -QString CardDavPrefs::getusername() { +TQString CardDavPrefs::getusername() { return username(); } @@ -210,10 +210,10 @@ bool CardDavPrefs::getUseURI() { return useURI(); } -QString CardDavPrefs::getFullUrl() { +TQString CardDavPrefs::getFullUrl() { - QUrl t(url()); - QString safeURL; + TQUrl t(url()); + TQString safeURL; int firstAt; t.setUser(username()); |