Rename KServer, KSocket, KIO_EXPORT, KIOInput, KIOJob, KIOConfig, KIOBuffer, and KBuffer to avoid conflicts with KDE4

pull/1/head
Timothy Pearson 12 years ago
parent f21aaec952
commit 4816c4a735

@ -33,7 +33,7 @@ KNetworkByteStream::KNetworkByteStream ( TQObject *parent, const char */*name*/
// reset close tracking flag
mClosing = false;
mSocket = new KNetwork::KBufferedSocket;
mSocket = new KNetwork::TDEBufferedSocket;
// make sure we get a signal whenever there's data to be read
mSocket->enableRead ( true );
@ -84,7 +84,7 @@ int KNetworkByteStream::tryWrite ()
}
KNetwork::KBufferedSocket *KNetworkByteStream::socket () const
KNetwork::TDEBufferedSocket *KNetworkByteStream::socket () const
{
return mSocket;

@ -46,7 +46,7 @@ public:
virtual bool isOpen () const;
virtual void close ();
KNetwork::KBufferedSocket *socket () const;
KNetwork::TDEBufferedSocket *socket () const;
signals:
void connected ();
@ -62,7 +62,7 @@ private slots:
void slotError ( int );
private:
KNetwork::KBufferedSocket *mSocket;
KNetwork::TDEBufferedSocket *mSocket;
bool mClosing;
};

@ -116,7 +116,7 @@ int KSSLSocket::bytesAvailable() const
return -2;
//Re-implemented because KExtSocket doesn't use this when not in buffered mode
return KBufferedIO::bytesAvailable();
return TDEBufferedIO::bytesAvailable();
}
void KSSLSocket::slotReadData()

@ -32,7 +32,7 @@ JabberByteStream::JabberByteStream ( TQObject *parent, const char */*name*/ )
// reset close tracking flag
mClosing = false;
mSocket = new KNetwork::KBufferedSocket;
mSocket = new KNetwork::TDEBufferedSocket;
// make sure we get a signal whenever there's data to be read
mSocket->enableRead ( true );
@ -85,7 +85,7 @@ int JabberByteStream::tryWrite ()
}
KNetwork::KBufferedSocket *JabberByteStream::socket () const
KNetwork::TDEBufferedSocket *JabberByteStream::socket () const
{
return mSocket;

@ -42,7 +42,7 @@ public:
virtual bool isOpen () const;
virtual void close ();
KNetwork::KBufferedSocket *socket () const;
KNetwork::TDEBufferedSocket *socket () const;
signals:
void connected ();
@ -58,7 +58,7 @@ private slots:
void slotError ( int );
private:
KNetwork::KBufferedSocket *mSocket;
KNetwork::TDEBufferedSocket *mSocket;
bool mClosing;
};

@ -326,7 +326,7 @@ void IncomingTransfer::slotListenError(int /*errorCode*/)
void IncomingTransfer::slotAccept()
{
// Try to accept an incoming connection from the sending client.
m_socket = static_cast<KBufferedSocket*>(m_listener->accept());
m_socket = static_cast<TDEBufferedSocket*>(m_listener->accept());
if(!m_socket)
{
// NOTE If direct connection fails, the sending

@ -101,9 +101,9 @@ void MSNSocket::connect( const TQString &server, uint port )
m_port = port;
if(!m_useHttp)
m_socket = new KBufferedSocket( server, TQString::number(port) );
m_socket = new TDEBufferedSocket( server, TQString::number(port) );
else {
m_socket = new KBufferedSocket( m_gateway, "80" );
m_socket = new TDEBufferedSocket( m_gateway, "80" );
}
m_socket->enableRead( true );
@ -918,7 +918,7 @@ bool MSNSocket::accept( TDEServerSocket *server )
return false;
}
m_socket = static_cast<KBufferedSocket*>(server->accept());
m_socket = static_cast<TDEBufferedSocket*>(server->accept());
if ( !m_socket )
{

@ -31,7 +31,7 @@
#include "kopete_export.h"
namespace KNetwork {
class KBufferedSocket;
class TDEBufferedSocket;
class TDEServerSocket;
}
@ -278,7 +278,7 @@ private:
*/
void parseLine( const TQString &str );
KNetwork::KBufferedSocket *m_socket;
KNetwork::TDEBufferedSocket *m_socket;
OnlineStatus m_onlineStatus;
TQString m_server;

@ -338,7 +338,7 @@ void OutgoingTransfer::readyToSend()
void OutgoingTransfer::connectToEndpoint(const TQString& hostName)
{
m_socket = new KBufferedSocket(hostName, m_remotePort);
m_socket = new TDEBufferedSocket(hostName, m_remotePort);
m_socket->setBlocking(false);
m_socket->enableRead(true);
// Disable write signal for now. Only enable

@ -28,7 +28,7 @@
namespace Kopete { class Transfer; }
namespace Kopete { struct FileTransferInfo; }
namespace P2P { class Dispatcher; }
namespace KNetwork { class KBufferedSocket; }
namespace KNetwork { class TDEBufferedSocket; }
class TQFile;
class KTempFile;
@ -139,7 +139,7 @@ namespace P2P{
P2P::MessageFormatter m_messageFormatter;
TQString m_recipient;
TQString m_sender;
KNetwork::KBufferedSocket *m_socket;
KNetwork::TDEBufferedSocket *m_socket;
CommunicationState m_state;
TransferType m_type;
};

@ -381,7 +381,7 @@ void Webcam::processMessage(const Message& message)
if(!port1.isNull())
{
kdDebug(14140) << k_funcinfo << "trying to connect on " << ip <<":" << port1 << endl;
KBufferedSocket *sock=new KBufferedSocket( ip, port1, this );
TDEBufferedSocket *sock=new TDEBufferedSocket( ip, port1, this );
m_allSockets.append(sock);
TQObject::connect( sock, TQT_SIGNAL( connected( const KResolverEntry&) ), this, TQT_SLOT( slotSocketConnected() ) );
TQObject::connect( sock, TQT_SIGNAL( gotError(int)), this, TQT_SLOT(slotSocketError(int)));
@ -391,7 +391,7 @@ void Webcam::processMessage(const Message& message)
if(!port2.isNull())
{
kdDebug(14140) << k_funcinfo << "trying to connect on " << ip <<":" << port2 << endl;
KBufferedSocket *sock=new KBufferedSocket( ip, port2, this );
TDEBufferedSocket *sock=new TDEBufferedSocket( ip, port2, this );
m_allSockets.append(sock);
TQObject::connect( sock, TQT_SIGNAL( connected( const KResolverEntry&) ), this, TQT_SLOT( slotSocketConnected() ) );
TQObject::connect( sock, TQT_SIGNAL( gotError(int)), this, TQT_SLOT(slotSocketError(int)));
@ -400,17 +400,17 @@ void Webcam::processMessage(const Message& message)
if(!port3.isNull())
{
kdDebug(14140) << k_funcinfo << "trying to connect on " << ip <<":" << port3 << endl;
KBufferedSocket *sock=new KBufferedSocket( ip, port3, this );
TDEBufferedSocket *sock=new TDEBufferedSocket( ip, port3, this );
m_allSockets.append(sock);
TQObject::connect( sock, TQT_SIGNAL( connected( const KResolverEntry&) ), this, TQT_SLOT( slotSocketConnected() ) );
TQObject::connect( sock, TQT_SIGNAL( gotError(int)), this, TQT_SLOT(slotSocketError(int)));
sock->connect(ip, port3);
}
}
TQValueList<KBufferedSocket*>::iterator it;
TQValueList<TDEBufferedSocket*>::iterator it;
for ( it = m_allSockets.begin(); it != m_allSockets.end(); ++it )
{
KBufferedSocket *sock=(*it);
TDEBufferedSocket *sock=(*it);
//sock->enableRead( false );
kdDebug(14140) << k_funcinfo << "connect to " << sock << " - "<< sock->peerAddress().toString() << " ; " << sock->localAddress().toString() << endl;
@ -557,7 +557,7 @@ void Webcam::slotSocketConnected()
{
kdDebug(14140) << k_funcinfo <<"##########################" << endl;
m_webcamSocket=const_cast<KBufferedSocket*>(static_cast<const KBufferedSocket*>(sender()));
m_webcamSocket=const_cast<TDEBufferedSocket*>(static_cast<const TDEBufferedSocket*>(sender()));
if(!m_webcamSocket)
return;
@ -585,7 +585,7 @@ void Webcam::slotSocketConnected()
void Webcam::slotAccept()
{
// Try to accept an incoming connection from the sending client.
m_webcamSocket = static_cast<KBufferedSocket*>(m_listener->accept());
m_webcamSocket = static_cast<TDEBufferedSocket*>(m_listener->accept());
if(!m_webcamSocket)
{
// NOTE If direct connection fails, the sending
@ -620,7 +620,7 @@ void Webcam::slotAccept()
void Webcam::slotSocketRead()
{
m_webcamSocket=const_cast<KBufferedSocket*>(static_cast<const KBufferedSocket*>(sender()));
m_webcamSocket=const_cast<TDEBufferedSocket*>(static_cast<const TDEBufferedSocket*>(sender()));
uint available = m_webcamSocket->bytesAvailable();
kdDebug(14140) << k_funcinfo << m_webcamSocket << "############# " << available << " bytes available." << endl;
@ -786,7 +786,7 @@ void Webcam::slotSocketClosed()
if(!m_dispatcher) //we are in this destructor
return;
KBufferedSocket *m_webcamSocket=const_cast<KBufferedSocket*>(static_cast<const KBufferedSocket*>(sender()));
TDEBufferedSocket *m_webcamSocket=const_cast<TDEBufferedSocket*>(static_cast<const TDEBufferedSocket*>(sender()));
kdDebug(14140) << k_funcinfo << m_webcamSocket << endl;
@ -804,7 +804,7 @@ void Webcam::slotSocketClosed()
void Webcam::slotSocketError(int errorCode)
{
KBufferedSocket *socket=const_cast<KBufferedSocket*>(static_cast<const KBufferedSocket*>(sender()));
TDEBufferedSocket *socket=const_cast<TDEBufferedSocket*>(static_cast<const TDEBufferedSocket*>(sender()));
kdDebug(14140) << k_funcinfo << socket << " - " << errorCode << " : " << socket->TDESocketBase::errorString() << endl;
//sendBYEMessage();
}
@ -815,10 +815,10 @@ void Webcam::closeAllOtherSockets()
delete m_listener;
m_listener=0l;
TQValueList<KBufferedSocket*>::iterator it;
TQValueList<TDEBufferedSocket*>::iterator it;
for ( it = m_allSockets.begin(); it != m_allSockets.end(); ++it )
{
KBufferedSocket *sock=(*it);
TDEBufferedSocket *sock=(*it);
if(sock != m_webcamSocket)
delete sock;
}

@ -18,7 +18,7 @@
#if MSN_WEBCAM
namespace KNetwork{ class TDEServerSocket; class KBufferedSocket; }
namespace KNetwork{ class TDEServerSocket; class TDEBufferedSocket; }
class MimicWrapper;
class TQLabel;
@ -55,7 +55,7 @@ class Webcam : public TransferContext
KNetwork::TDEServerSocket *m_listener;
KNetwork::KBufferedSocket *m_webcamSocket;
KNetwork::TDEBufferedSocket *m_webcamSocket;
enum WebcamStatus { wsNegotiating , wsConnecting, wsConnected, wsTransfer } ;
@ -67,8 +67,8 @@ class Webcam : public TransferContext
MimicWrapper *m_mimic;
MSNWebcamDialog *m_widget;
TQValueList<KNetwork::KBufferedSocket* > m_allSockets;
TQMap<KNetwork::KBufferedSocket*, WebcamStatus> m_webcamStates;
TQValueList<KNetwork::TDEBufferedSocket* > m_allSockets;
TQMap<KNetwork::TDEBufferedSocket*, WebcamStatus> m_webcamStates;
int m_timerId;
int m_timerFps;

@ -32,7 +32,7 @@ KNetworkByteStream::KNetworkByteStream( TQObject *parent, const char */*name*/ )
// reset close tracking flag
mClosing = false;
mSocket = new KNetwork::KBufferedSocket;
mSocket = new KNetwork::TDEBufferedSocket;
// make sure we get a signal whenever there's data to be read
mSocket->enableRead( true );
@ -79,7 +79,7 @@ int KNetworkByteStream::tryWrite ()
return writeData.size();
}
KNetwork::KBufferedSocket *KNetworkByteStream::socket() const
KNetwork::TDEBufferedSocket *KNetworkByteStream::socket() const
{
return mSocket;
}

@ -46,7 +46,7 @@ public:
virtual bool isOpen () const;
virtual void close ();
KNetwork::KBufferedSocket *socket () const;
KNetwork::TDEBufferedSocket *socket () const;
signals:
void connected ();
@ -62,7 +62,7 @@ private slots:
void slotError ( int );
private:
KNetwork::KBufferedSocket *mSocket;
KNetwork::TDEBufferedSocket *mSocket;
bool mClosing;
};

@ -45,7 +45,7 @@ ModifyYABTask::~ModifyYABTask()
void ModifyYABTask::onGo()
{
kdDebug(YAHOO_RAW_DEBUG) ;
m_socket = new KBufferedSocket( "address.yahoo.com", TQString::number(80) );
m_socket = new TDEBufferedSocket( "address.yahoo.com", TQString::number(80) );
connect( m_socket, TQT_SIGNAL( connected( const KResolverEntry& ) ), this, TQT_SLOT( connectSucceeded() ) );
connect( m_socket, TQT_SIGNAL( gotError(int) ), this, TQT_SLOT( connectFailed(int) ) );
@ -91,13 +91,13 @@ void ModifyYABTask::connectFailed( int i)
{
m_socket->close();
client()->notifyError( i18n( "An error occurred while saving the address book entry." ),
TQString( "%1 - %2").arg(i).arg(static_cast<const KBufferedSocket*>( sender() )->TDESocketBase::errorString()), Client::Error );
TQString( "%1 - %2").arg(i).arg(static_cast<const TDEBufferedSocket*>( sender() )->TDESocketBase::errorString()), Client::Error );
}
void ModifyYABTask::connectSucceeded()
{
kdDebug(YAHOO_RAW_DEBUG) ;
KBufferedSocket* socket = const_cast<KBufferedSocket*>( static_cast<const KBufferedSocket*>( sender() ) );
TDEBufferedSocket* socket = const_cast<TDEBufferedSocket*>( static_cast<const TDEBufferedSocket*>( sender() ) );
TQString header = TQString::fromLatin1("POST /yab/us?v=XM&prog=ymsgr&.intl=us&sync=1&tags=short&noclear=1& HTTP/1.1\r\n"
"Cookie: Y=%1; T=%2; C=%3 ;B=fckeert1kk1nl&b=2\r\n"
@ -128,7 +128,7 @@ void ModifyYABTask::connectSucceeded()
void ModifyYABTask::slotRead()
{
KBufferedSocket* socket = const_cast<KBufferedSocket*>( static_cast<const KBufferedSocket*>( sender() ) );
TDEBufferedSocket* socket = const_cast<TDEBufferedSocket*>( static_cast<const TDEBufferedSocket*>( sender() ) );
TQByteArray ar( socket->bytesAvailable() );
socket->readBlock( ar.data (), ar.size () );
TQString data( ar );

@ -26,7 +26,7 @@ namespace TDEIO {
class TransferJob;
}
namespace KNetwork {
class KBufferedSocket;
class TDEBufferedSocket;
}
/**
@ -54,7 +54,7 @@ private slots:
void slotRead();
private:
TDEIO::TransferJob *m_transferJob;
KNetwork::KBufferedSocket *m_socket;
KNetwork::TDEBufferedSocket *m_socket;
TQString m_postData;
TQString m_data;
Action m_action;

@ -64,7 +64,7 @@ void SendPictureTask::onGo()
void SendPictureTask::initiateUpload()
{
kdDebug(YAHOO_GEN_DEBUG) << k_funcinfo << endl;
m_socket = new KBufferedSocket( "filetransfer.msg.yahoo.com", TQString::number(80) );
m_socket = new TDEBufferedSocket( "filetransfer.msg.yahoo.com", TQString::number(80) );
connect( m_socket, TQT_SIGNAL( connected( const KResolverEntry& ) ), this, TQT_SLOT( connectSucceeded() ) );
connect( m_socket, TQT_SIGNAL( gotError(int) ), this, TQT_SLOT( connectFailed(int) ) );
connect( m_socket, TQT_SIGNAL( readyRead() ), this, TQT_SLOT( readResult() ) );
@ -74,9 +74,9 @@ void SendPictureTask::initiateUpload()
void SendPictureTask::connectFailed( int i)
{
kdDebug(YAHOO_RAW_DEBUG) << i << ": " << static_cast<const KBufferedSocket*>( sender() )->TDESocketBase::errorString() << endl;
kdDebug(YAHOO_RAW_DEBUG) << i << ": " << static_cast<const TDEBufferedSocket*>( sender() )->TDESocketBase::errorString() << endl;
client()->notifyError(i18n("The picture was not successfully uploaded"), TQString("%1 - %2").arg(i).arg(static_cast<const KBufferedSocket*>( sender() )->TDESocketBase::errorString()), Client::Error );
client()->notifyError(i18n("The picture was not successfully uploaded"), TQString("%1 - %2").arg(i).arg(static_cast<const TDEBufferedSocket*>( sender() )->TDESocketBase::errorString()), Client::Error );
setError();
}

@ -26,7 +26,7 @@ namespace TDEIO {
class TransferJob;
}
namespace KNetwork {
class KBufferedSocket;
class TDEBufferedSocket;
}
/**
@ -72,7 +72,7 @@ private:
TQString m_url;
int m_transmitted;
TQFile *m_file;
KNetwork::KBufferedSocket *m_socket;
KNetwork::TDEBufferedSocket *m_socket;
};
#endif

@ -30,7 +30,7 @@ KNetworkByteStream::KNetworkByteStream( TQObject *parent )
// reset close tracking flag
mClosing = false;
mSocket = new KNetwork::KBufferedSocket;
mSocket = new KNetwork::TDEBufferedSocket;
// make sure we get a signal whenever there's data to be read
mSocket->enableRead( true );
@ -76,7 +76,7 @@ int KNetworkByteStream::tryWrite ()
return writeData.size();
}
KNetwork::KBufferedSocket *KNetworkByteStream::socket() const
KNetwork::TDEBufferedSocket *KNetworkByteStream::socket() const
{
return mSocket;
}

@ -43,7 +43,7 @@ public:
virtual bool isOpen () const;
virtual void close ();
KNetwork::KBufferedSocket *socket () const;
KNetwork::TDEBufferedSocket *socket () const;
signals:
void connected ();
@ -59,7 +59,7 @@ private slots:
void slotError ( int );
private:
KNetwork::KBufferedSocket *mSocket;
KNetwork::TDEBufferedSocket *mSocket;
bool mClosing;
};

Loading…
Cancel
Save