summaryrefslogtreecommitdiffstats
path: root/plugins/upnp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/upnp')
-rw-r--r--plugins/upnp/upnpmcastsocket.cpp18
-rw-r--r--plugins/upnp/upnpmcastsocket.h2
-rw-r--r--plugins/upnp/upnpprefwidget.cpp2
3 files changed, 11 insertions, 11 deletions
diff --git a/plugins/upnp/upnpmcastsocket.cpp b/plugins/upnp/upnpmcastsocket.cpp
index 6395752..facf207 100644
--- a/plugins/upnp/upnpmcastsocket.cpp
+++ b/plugins/upnp/upnpmcastsocket.cpp
@@ -103,7 +103,7 @@ namespace kt
else
{
// add it to the list and emit the signal
- if (!routers.tqcontains(r->getServer()))
+ if (!routers.contains(r->getServer()))
{
routers.insert(r->getServer(),r);
discovered(r);
@@ -164,13 +164,13 @@ namespace kt
// first read first line and see if contains a HTTP 200 OK message
TQString line = lines.first();
- if (!line.tqcontains("HTTP"))
+ if (!line.contains("HTTP"))
{
// it is either a 200 OK or a NOTIFY
- if (!line.tqcontains("NOTIFY") && !line.tqcontains("200"))
+ if (!line.contains("NOTIFY") && !line.contains("200"))
return 0;
}
- else if (line.tqcontains("M-SEARCH")) // ignore M-SEARCH
+ else if (line.contains("M-SEARCH")) // ignore M-SEARCH
return 0;
// quick check that the response being parsed is valid
@@ -178,7 +178,7 @@ namespace kt
for (Uint32 idx = 0;idx < lines.count() && !validDevice; idx++)
{
line = lines[idx];
- if ((line.tqcontains("ST:") || line.tqcontains("NT:")) && line.tqcontains("InternetGatewayDevice"))
+ if ((line.contains("ST:") || line.contains("NT:")) && line.contains("InternetGatewayDevice"))
{
validDevice = true;
}
@@ -195,20 +195,20 @@ namespace kt
line = lines[i];
if (line.startsWith("Location") || line.startsWith("LOCATION") || line.startsWith("location"))
{
- location = line.mid(line.tqfind(':') + 1).stripWhiteSpace();
+ location = line.mid(line.find(':') + 1).stripWhiteSpace();
if (!location.isValid())
return 0;
}
else if (line.startsWith("Server") || line.startsWith("server") || line.startsWith("SERVER"))
{
- server = line.mid(line.tqfind(':') + 1).stripWhiteSpace();
+ server = line.mid(line.find(':') + 1).stripWhiteSpace();
if (server.length() == 0)
return 0;
}
}
- if (routers.tqcontains(server))
+ if (routers.contains(server))
{
return 0;
}
@@ -265,7 +265,7 @@ namespace kt
TQString server, location;
server = fin.readLine();
location = fin.readLine();
- if (!routers.tqcontains(server))
+ if (!routers.contains(server))
{
UPnPRouter* r = new UPnPRouter(server,location);
// download it's xml file
diff --git a/plugins/upnp/upnpmcastsocket.h b/plugins/upnp/upnpmcastsocket.h
index 86688a2..cc7a134 100644
--- a/plugins/upnp/upnpmcastsocket.h
+++ b/plugins/upnp/upnpmcastsocket.h
@@ -49,7 +49,7 @@ namespace kt
Uint32 getNumDevicesDiscovered() const {return routers.count();}
/// Find a router using it's server name
- UPnPRouter* findDevice(const TQString & name) {return routers.tqfind(name);}
+ UPnPRouter* findDevice(const TQString & name) {return routers.find(name);}
/// Save all routers to a file (for convenience at startup)
void saveRouters(const TQString & file);
diff --git a/plugins/upnp/upnpprefwidget.cpp b/plugins/upnp/upnpprefwidget.cpp
index bd4e593..bc05ad4 100644
--- a/plugins/upnp/upnpprefwidget.cpp
+++ b/plugins/upnp/upnpprefwidget.cpp
@@ -201,7 +201,7 @@ namespace kt
msg += TQString::number(f.port.number) + " (";
TQString prot = (f.port.proto == net::UDP ? "UDP" : "TCP");
msg += prot + ")";
- if (f.service->servicetype.tqcontains("WANPPPConnection"))
+ if (f.service->servicetype.contains("WANPPPConnection"))
services += "PPP";
else
services += "IP";