summaryrefslogtreecommitdiffstats
path: root/kdeprint/cups/ipprequest.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-16 02:40:35 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-16 02:40:35 +0000
commitbab40890696ec68c337dc290880423a0602b83c7 (patch)
tree6ba03f720b1fa88235ba339e7aedb4455430357e /kdeprint/cups/ipprequest.cpp
parentf7e71d47719ab6094cf4a9fafffa5ea351973522 (diff)
downloadtdelibs-bab40890696ec68c337dc290880423a0602b83c7.tar.gz
tdelibs-bab40890696ec68c337dc290880423a0602b83c7.zip
Finished remaining porting to new TQt API
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1214736 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdeprint/cups/ipprequest.cpp')
-rw-r--r--kdeprint/cups/ipprequest.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kdeprint/cups/ipprequest.cpp b/kdeprint/cups/ipprequest.cpp
index 0f6c8cbc6..354d46cf6 100644
--- a/kdeprint/cups/ipprequest.cpp
+++ b/kdeprint/cups/ipprequest.cpp
@@ -103,7 +103,7 @@ void dumpRequest(ipp_t *req, bool answer = false, const TQString& s = TQString::
TQString errorString(int status)
{
- QString str;
+ TQString str;
switch (status)
{
case IPP_FORBIDDEN:
@@ -134,7 +134,7 @@ IppRequest::IppRequest()
{
request_ = 0;
port_ = -1;
- host_ = TQString::null;
+ host_ = TQString();
dump_ = 0;
init();
}
@@ -226,7 +226,7 @@ int IppRequest::status()
TQString IppRequest::statusMessage()
{
- QString msg;
+ TQString msg;
switch (status())
{
case -2:
@@ -294,7 +294,7 @@ bool IppRequest::boolean(const TQString& name, bool& value)
bool IppRequest::doFileRequest(const TQString& res, const TQString& filename)
{
- QString myHost = host_;
+ TQString myHost = host_;
int myPort = port_;
if (myHost.isEmpty()) myHost = CupsInfos::self()->host();
if (myPort <= 0) myPort = CupsInfos::self()->port();
@@ -361,8 +361,8 @@ bool IppRequest::htmlReport(int group, TQTextStream& output)
attr = attr->next;
// print each attribute
ipp_uchar_t *d;
- QCString dateStr;
- QDateTime dt;
+ TQCString dateStr;
+ TQDateTime dt;
bool bg(false);
while (attr && attr->group_tag == group)
{
@@ -443,7 +443,7 @@ TQMap<TQString,TQString> IppRequest::toMap(int group)
attr = attr->next;
continue;
}
- QString value;
+ TQString value;
for (int i=0; i<attr->num_values; i++)
{
switch (attr->value_tag)
@@ -496,14 +496,14 @@ void IppRequest::setMap(const TQMap<TQString,TQString>& opts)
if (!request_)
return;
- QRegExp re("^\"|\"$");
+ TQRegExp re("^\"|\"$");
cups_option_t *options = NULL;
int n = 0;
for (TQMap<TQString,TQString>::ConstIterator it=opts.begin(); it!=opts.end(); ++it)
{
if (it.key().startsWith("kde-") || it.key().startsWith("app-"))
continue;
- QString value = it.data().stripWhiteSpace(), lovalue;
+ TQString value = it.data().stripWhiteSpace(), lovalue;
value.replace(re, "");
lovalue = value.lower();