summaryrefslogtreecommitdiffstats
path: root/lanbrowsing/kcmlisa/findnic.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
commit47c8a359c5276062c4bc17f0e82410f29081b502 (patch)
tree2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /lanbrowsing/kcmlisa/findnic.cpp
parent6f82532777a35e0e60bbd2b290b2e93e646f349b (diff)
downloadtdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.tar.gz
tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'lanbrowsing/kcmlisa/findnic.cpp')
-rw-r--r--lanbrowsing/kcmlisa/findnic.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/lanbrowsing/kcmlisa/findnic.cpp b/lanbrowsing/kcmlisa/findnic.cpp
index 6e8b025e..721834c9 100644
--- a/lanbrowsing/kcmlisa/findnic.cpp
+++ b/lanbrowsing/kcmlisa/findnic.cpp
@@ -52,9 +52,9 @@
#if defined(HAVE_GETNAMEINFO) && defined(HAVE_GETIFADDRS)
#include <ifaddrs.h>
#include <netdb.h>
- #include <qstring.h>
+ #include <tqstring.h>
- QString flags_tos (unsigned int flags);
+ TQString flags_tos (unsigned int flags);
#endif
#include "findnic.h"
@@ -190,10 +190,10 @@ NICList* findNICs()
return nl;
}
-void suggestSettingsForAddress(const QString& addrMask, LisaConfigInfo& lci)
+void suggestSettingsForAddress(const TQString& addrMask, LisaConfigInfo& lci)
{
- QString ip=addrMask.left(addrMask.find("/"));
- QString mask=addrMask.mid(addrMask.find("/")+1);
+ TQString ip=addrMask.left(addrMask.find("/"));
+ TQString mask=addrMask.mid(addrMask.find("/")+1);
if (mask[mask.length()-1]==';')
mask=mask.left(mask.length()-1);
@@ -208,10 +208,10 @@ void suggestSettingsForNic(MyNIC* nic, LisaConfigInfo& lci)
lci.clear();
if (nic==0)
return;
- QString address = nic->addr;
- QString netmask = nic->netmask;
+ TQString address = nic->addr;
+ TQString netmask = nic->netmask;
- QString addrMask(address+"/"+netmask+";");
+ TQString addrMask(address+"/"+netmask+";");
struct in_addr tmpaddr;
inet_aton(nic->netmask.latin1(), &tmpaddr);
unsigned int tmp= ntohl(tmpaddr.s_addr);
@@ -266,30 +266,30 @@ void LisaConfigInfo::clear()
}
#if defined(HAVE_GETNAMEINFO) && defined(HAVE_GETIFADDRS)
-QString flags_tos (unsigned int flags)
+TQString flags_tos (unsigned int flags)
{
- QString tmp;
+ TQString tmp;
if (flags & IFF_POINTOPOINT) {
tmp += i18n("Point to Point");
}
if (flags & IFF_BROADCAST) {
if (tmp.length()) {
- tmp += QString::fromLatin1(", ");
+ tmp += TQString::fromLatin1(", ");
}
tmp += i18n("Broadcast");
}
if (flags & IFF_MULTICAST) {
if (tmp.length()) {
- tmp += QString::fromLatin1(", ");
+ tmp += TQString::fromLatin1(", ");
}
tmp += i18n("Multicast");
}
if (flags & IFF_LOOPBACK) {
if (tmp.length()) {
- tmp += QString::fromLatin1(", ");
+ tmp += TQString::fromLatin1(", ");
}
tmp += i18n("Loopback");
}