summaryrefslogtreecommitdiffstats
path: root/kdeprint/cups/cupsinfos.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
commitffe8a83e053396df448e9413828527613ca3bd46 (patch)
treea73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /kdeprint/cups/cupsinfos.cpp
parent682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff)
downloadtdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz
tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdeprint/cups/cupsinfos.cpp')
-rw-r--r--kdeprint/cups/cupsinfos.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/kdeprint/cups/cupsinfos.cpp b/kdeprint/cups/cupsinfos.cpp
index f96451d76..839f83612 100644
--- a/kdeprint/cups/cupsinfos.cpp
+++ b/kdeprint/cups/cupsinfos.cpp
@@ -58,9 +58,9 @@ CupsInfos::CupsInfos()
load();
/* host_ = cupsServer();
login_ = cupsUser();
- if (login_.isEmpty()) login_ = QString::null;
+ if (login_.isEmpty()) login_ = TQString::null;
port_ = ippPort();
- password_ = QString::null;*/
+ password_ = TQString::null;*/
cupsSetPasswordCB(cupsGetPasswordCB);
}
@@ -69,14 +69,14 @@ CupsInfos::~CupsInfos()
{
}
-QString CupsInfos::hostaddr() const
+TQString CupsInfos::hostaddr() const
{
if (host_[0] != '/')
- return host_ + ":" + QString::number(port_);
+ return host_ + ":" + TQString::number(port_);
return "localhost";
}
-void CupsInfos::setHost(const QString& s)
+void CupsInfos::setHost(const TQString& s)
{
host_ = s;
cupsSetServer(s.latin1());
@@ -88,13 +88,13 @@ void CupsInfos::setPort(int p)
ippSetPort(p);
}
-void CupsInfos::setLogin(const QString& s)
+void CupsInfos::setLogin(const TQString& s)
{
login_ = s;
cupsSetUser(s.latin1());
}
-void CupsInfos::setPassword(const QString& s)
+void CupsInfos::setPassword(const TQString& s)
{
password_ = s;
}
@@ -106,7 +106,7 @@ void CupsInfos::setSavePassword( bool on )
const char* CupsInfos::getPasswordCB()
{
- QPair<QString,QString> pwd = KMFactory::self()->requestPassword( count_, login_, host_, port_ );
+ QPair<TQString,TQString> pwd = KMFactory::self()->requestPassword( count_, login_, host_, port_ );
if ( pwd.first.isEmpty() && pwd.second.isEmpty() )
return NULL;
@@ -119,9 +119,9 @@ void CupsInfos::load()
{
KConfig *conf_ = KMFactory::self()->printConfig();
conf_->setGroup("CUPS");
- host_ = conf_->readEntry("Host",QString::fromLatin1(cupsServer()));
+ host_ = conf_->readEntry("Host",TQString::fromLatin1(cupsServer()));
port_ = conf_->readNumEntry("Port",ippPort());
- login_ = conf_->readEntry("Login",QString::fromLatin1(cupsUser()));
+ login_ = conf_->readEntry("Login",TQString::fromLatin1(cupsUser()));
savepwd_ = conf_->readBoolEntry( "SavePassword", false );
if ( savepwd_ )
{
@@ -129,8 +129,8 @@ void CupsInfos::load()
KMFactory::self()->initPassword( login_, password_, host_, port_ );
}
else
- password_ = QString::null;
- if (login_.isEmpty()) login_ = QString::null;
+ password_ = TQString::null;
+ if (login_.isEmpty()) login_ = TQString::null;
reallogin_ = cupsUser();
// synchronize with CUPS