summaryrefslogtreecommitdiffstats
path: root/dnssd/servicebase.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-03 04:12:51 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-03 04:12:51 +0000
commit560378aaca1784ba19806a0414a32b20c744de39 (patch)
treece0dfd7c3febf2a1adc7603d1019a8be2083c415 /dnssd/servicebase.cpp
parentd4d5af1cdbd3cc65d095e0afc5b1f4260091cf5d (diff)
downloadtdelibs-560378aaca1784ba19806a0414a32b20c744de39.tar.gz
tdelibs-560378aaca1784ba19806a0414a32b20c744de39.zip
Automated conversion for enhanced compatibility with TQt for Qt4 3.4.0 TP1
NOTE: This will not compile with Qt4 (yet), however it does compile with Qt3 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1211081 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'dnssd/servicebase.cpp')
-rw-r--r--dnssd/servicebase.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/dnssd/servicebase.cpp b/dnssd/servicebase.cpp
index 52d18cca3..d15b6c0d2 100644
--- a/dnssd/servicebase.cpp
+++ b/dnssd/servicebase.cpp
@@ -34,7 +34,7 @@ ServiceBase::~ServiceBase()
TQString ServiceBase::encode()
{
- return m_serviceName.replace(".","\\.").replace("\\","\\\\") + TQString(".") + m_type +
+ return m_serviceName.tqreplace(".","\\.").tqreplace("\\","\\\\") + TQString(".") + m_type +
TQString(".") + m_domain;
}
@@ -50,15 +50,15 @@ void ServiceBase::decode(const TQString& name)
rest=name;
} else { // normal service or domain
TQString decoded_name=name;
- decoded_name=decoded_name.replace("\\\\","\\");
- int i = decoded_name.find(TQRegExp("[^\\\\]\\."));
- if (i==-1) return; // first find service name
+ decoded_name=decoded_name.tqreplace("\\\\","\\");
+ int i = decoded_name.tqfind(TQRegExp("[^\\\\]\\."));
+ if (i==-1) return; // first tqfind service name
rest = decoded_name.mid(i+2);
- m_serviceName=decoded_name.left(i+1).replace("\\.",".");
+ m_serviceName=decoded_name.left(i+1).tqreplace("\\.",".");
}
m_type = rest.section('.',0,1);
// does it really have a type?
- if (m_type[0]=='_' && m_type[m_type.find('.')+1]=='_')
+ if (m_type[0]=='_' && m_type[m_type.tqfind('.')+1]=='_')
m_domain = rest.section('.',2,-1,TQString::SectionIncludeTrailingSep);
else {
m_type="";
@@ -100,13 +100,13 @@ void ServiceBase::virtual_hook(int, void*)
TQDataStream & operator<< (TQDataStream & s, const ServiceBase & a)
{
- s << a.m_serviceName << a.m_type << a.m_domain << a.m_hostName << Q_INT16(a.m_port) << a.m_textData;
+ s << a.m_serviceName << a.m_type << a.m_domain << a.m_hostName << TQ_INT16(a.m_port) << a.m_textData;
return s;
}
TQDataStream & operator>> (TQDataStream & s, ServiceBase & a)
{
- Q_INT16 port;
+ TQ_INT16 port;
s >> a.m_serviceName >> a.m_type >> a.m_domain >> a.m_hostName >> port >> a.m_textData;
a.m_port = port;
return s;