diff options
Diffstat (limited to 'src/kernel/qnetworkprotocol.cpp')
-rw-r--r-- | src/kernel/qnetworkprotocol.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/kernel/qnetworkprotocol.cpp b/src/kernel/qnetworkprotocol.cpp index c53649119..021636c68 100644 --- a/src/kernel/qnetworkprotocol.cpp +++ b/src/kernel/qnetworkprotocol.cpp @@ -51,9 +51,9 @@ //#define TQNETWORKPROTOCOL_DEBUG #define NETWORK_OP_DELAY 1000 -extern Q_EXPORT TQNetworkProtocolDict *qNetworkProtocolRegister; +extern Q_EXPORT TQNetworkProtocolDict *tqNetworkProtocolRegister; -TQNetworkProtocolDict *qNetworkProtocolRegister = 0; +TQNetworkProtocolDict *tqNetworkProtocolRegister = 0; class TQNetworkProtocolPrivate { @@ -542,7 +542,7 @@ int TQNetworkProtocol::supportedOperations() const void TQNetworkProtocol::addOperation( TQNetworkOperation *op ) { #ifdef TQNETWORKPROTOCOL_DEBUG - qDebug( "TQNetworkOperation: addOperation: %p %d", op, op->operation() ); + tqDebug( "TQNetworkOperation: addOperation: %p %d", op, op->operation() ); #endif d->operationQueue.enqueue( op ); if ( !d->opInProgress ) @@ -566,12 +566,12 @@ void TQNetworkProtocol::addOperation( TQNetworkOperation *op ) void TQNetworkProtocol::registerNetworkProtocol( const TQString &protocol, TQNetworkProtocolFactoryBase *protocolFactory ) { - if ( !qNetworkProtocolRegister ) { - qNetworkProtocolRegister = new TQNetworkProtocolDict; + if ( !tqNetworkProtocolRegister ) { + tqNetworkProtocolRegister = new TQNetworkProtocolDict; TQNetworkProtocol::registerNetworkProtocol( "file", new TQNetworkProtocolFactory< TQLocalFs > ); } - qNetworkProtocolRegister->insert( protocol, protocolFactory ); + tqNetworkProtocolRegister->insert( protocol, protocolFactory ); } /*! @@ -596,15 +596,15 @@ void TQNetworkProtocol::registerNetworkProtocol( const TQString &protocol, TQNetworkProtocol *TQNetworkProtocol::getNetworkProtocol( const TQString &protocol ) { - if ( !qNetworkProtocolRegister ) { - qNetworkProtocolRegister = new TQNetworkProtocolDict; + if ( !tqNetworkProtocolRegister ) { + tqNetworkProtocolRegister = new TQNetworkProtocolDict; TQNetworkProtocol::registerNetworkProtocol( "file", new TQNetworkProtocolFactory< TQLocalFs > ); } if ( protocol.isNull() ) return 0; - TQNetworkProtocolFactoryBase *factory = qNetworkProtocolRegister->find( protocol ); + TQNetworkProtocolFactoryBase *factory = tqNetworkProtocolRegister->find( protocol ); if ( factory ) return factory->createObject(); @@ -619,10 +619,10 @@ TQNetworkProtocol *TQNetworkProtocol::getNetworkProtocol( const TQString &protoc bool TQNetworkProtocol::hasOnlyLocalFileSystem() { - if ( !qNetworkProtocolRegister ) + if ( !tqNetworkProtocolRegister ) return FALSE; - TQDictIterator< TQNetworkProtocolFactoryBase > it( *qNetworkProtocolRegister ); + TQDictIterator< TQNetworkProtocolFactoryBase > it( *tqNetworkProtocolRegister ); for ( ; it.current(); ++it ) if ( it.currentKey() != "file" ) return FALSE; @@ -637,7 +637,7 @@ bool TQNetworkProtocol::hasOnlyLocalFileSystem() void TQNetworkProtocol::startOps() { #ifdef TQNETWORKPROTOCOL_DEBUG - qDebug( "TQNetworkOperation: start processing operations" ); + tqDebug( "TQNetworkOperation: start processing operations" ); #endif processNextOperation( 0 ); } @@ -826,7 +826,7 @@ void TQNetworkProtocol::operationPutChunk( TQNetworkOperation * ) void TQNetworkProtocol::processNextOperation( TQNetworkOperation *old ) { #ifdef TQNETWORKPROTOCOL_DEBUG - qDebug( "TQNetworkOperation: process next operation, old: %p", old ); + tqDebug( "TQNetworkOperation: process next operation, old: %p", old ); #endif d->removeTimer->stop(); @@ -949,7 +949,7 @@ void TQNetworkProtocol::removeMe() { if ( d->autoDelete ) { #ifdef TQNETWORKPROTOCOL_DEBUG - qDebug( "TQNetworkOperation: autodelete of TQNetworkProtocol %p", this ); + tqDebug( "TQNetworkOperation: autodelete of TQNetworkProtocol %p", this ); #endif delete d->url; // destructor deletes the network protocol } |