summaryrefslogtreecommitdiffstats
path: root/krfb/kinetd/kinetd.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-25 00:36:20 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-25 00:36:20 -0600
commitf21aaec952493cb5688c73de6e82a569ddbd7fb2 (patch)
tree78ccb5117063da3e08e3277e11054b912a9f2ae7 /krfb/kinetd/kinetd.cpp
parentc48e769eb275917717e2b55eb869f7e559293ac8 (diff)
downloadtdenetwork-f21aaec952493cb5688c73de6e82a569ddbd7fb2.tar.gz
tdenetwork-f21aaec952493cb5688c73de6e82a569ddbd7fb2.zip
Rename KCModule, KConfig, KIO, KServer, and KSocket to avoid conflicts with KDE4
Diffstat (limited to 'krfb/kinetd/kinetd.cpp')
-rw-r--r--krfb/kinetd/kinetd.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/krfb/kinetd/kinetd.cpp b/krfb/kinetd/kinetd.cpp
index 42a7f053..369b1549 100644
--- a/krfb/kinetd/kinetd.cpp
+++ b/krfb/kinetd/kinetd.cpp
@@ -36,7 +36,7 @@
#include <fcntl.h>
PortListener::PortListener(KService::Ptr s,
- KConfig *config,
+ TDEConfig *config,
KServiceRegistry *srvreg) :
m_port(-1),
m_serviceRegistered(false),
@@ -63,7 +63,7 @@ bool PortListener::acquirePort() {
delete m_socket;
}
m_port = m_portBase;
- m_socket = new KServerSocket(m_port, false);
+ m_socket = new TDEServerSocket(m_port, false);
while (!m_socket->bindAndListen()) {
m_port++;
if (m_port >= (m_portBase+m_autoPortRange)) {
@@ -75,10 +75,10 @@ bool PortListener::acquirePort() {
return false;
}
delete m_socket;
- m_socket = new KServerSocket(m_port, false);
+ m_socket = new TDEServerSocket(m_port, false);
}
- connect(m_socket, TQT_SIGNAL(accepted(KSocket*)),
- TQT_SLOT(accepted(KSocket*)));
+ connect(m_socket, TQT_SIGNAL(accepted(TDESocket*)),
+ TQT_SLOT(accepted(TDESocket*)));
bool s = m_registerService;
bool sd =m_dnssdRegister;
@@ -201,9 +201,9 @@ void PortListener::loadConfig(KService::Ptr s) {
m_registerService);
}
-void PortListener::accepted(KSocket *sock) {
+void PortListener::accepted(TDESocket *sock) {
TQString host, port;
- KSocketAddress *ksa = KExtendedSocket::peerAddress(sock->socket());
+ TDESocketAddress *ksa = KExtendedSocket::peerAddress(sock->socket());
if ((!ksa) || !ksa->address()) {
delete sock;
return;
@@ -413,7 +413,7 @@ PortListener::~PortListener() {
KInetD::KInetD(TQCString &n) :
KDEDModule(n)
{
- m_config = new KConfig("kinetdrc");
+ m_config = new TDEConfig("kinetdrc");
m_srvreg = new KServiceRegistry();
if (!m_srvreg->available()) {
kdDebug(7021) << "SLP not available"<< endl;