diff options
Diffstat (limited to 'krfb/srvloc/kinetinterface.cpp')
-rw-r--r-- | krfb/srvloc/kinetinterface.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/krfb/srvloc/kinetinterface.cpp b/krfb/srvloc/kinetinterface.cpp index 0599dfa7..d1f45652 100644 --- a/krfb/srvloc/kinetinterface.cpp +++ b/krfb/srvloc/kinetinterface.cpp @@ -30,7 +30,7 @@ class KInetInterfacePrivate { public: - QString name; + TQString name; int flags; KInetSocketAddress *address; KInetSocketAddress *netmask; @@ -45,7 +45,7 @@ public: destination(0) { } - KInetInterfacePrivate(const QString _name, + KInetInterfacePrivate(const TQString _name, int _flags, KInetSocketAddress *_address, KInetSocketAddress *_netmask, @@ -99,7 +99,7 @@ KInetInterface::KInetInterface() : d(0) { } -KInetInterface::KInetInterface(const QString &_name, +KInetInterface::KInetInterface(const TQString &_name, int _flags, KInetSocketAddress *_address, KInetSocketAddress *_netmask, @@ -143,11 +143,11 @@ bool KInetInterface::isValid() const { return d == 0; } -QString KInetInterface::displayName() const { +TQString KInetInterface::displayName() const { return d->name; } -QString KInetInterface::name() const { +TQString KInetInterface::name() const { return d->name; } @@ -172,13 +172,13 @@ KInetSocketAddress *KInetInterface::destinationAddress() const { } KInetSocketAddress *KInetInterface::getPublicInetAddress() { - QValueVector<KInetInterface> v = getAllInterfaces(true); + TQValueVector<KInetInterface> v = getAllInterfaces(true); // TODO: first step: take the default route interface // try to find point-2-point interface, because it may be // a dial-up connection. Take it. - QValueVector<KInetInterface>::const_iterator it = v.begin(); + TQValueVector<KInetInterface>::const_iterator it = v.begin(); while (it != v.end()) { if (((*it).flags() & (PointToPoint | Up | Running)) && (!((*it).flags() & Loopback)) && @@ -247,10 +247,10 @@ namespace { } } -QValueVector<KInetInterface> KInetInterface::getAllInterfaces(bool includeLoopback) { +TQValueVector<KInetInterface> KInetInterface::getAllInterfaces(bool includeLoopback) { struct kde_ifaddrs *ads; struct kde_ifaddrs *a; - QValueVector<KInetInterface> r; + TQValueVector<KInetInterface> r; if (kde_getifaddrs(&ads)) return r; @@ -260,7 +260,7 @@ QValueVector<KInetInterface> KInetInterface::getAllInterfaces(bool includeLoopba a = a->ifa_next; continue; } - r.push_back(KInetInterface(QString::fromUtf8(a->ifa_name), + r.push_back(KInetInterface(TQString::fromUtf8(a->ifa_name), convertFlags(a->ifa_flags), createAddress(a->ifa_addr), createAddress(a->ifa_netmask), |