Rename additional global TQt functions

pull/1/head
Timothy Pearson 12 years ago
parent b251e315b5
commit 6efceb1cf6

@ -73,9 +73,9 @@ void* DictAsyncClient::startThread(void* pseudoThis)
DictAsyncClient* newthis = (DictAsyncClient*) (pseudoThis);
if (0!=pthread_setcanceltype(PTHREAD_CANCEL_ENABLE,NULL))
qWarning("pthread_setcanceltype failed!");
tqWarning("pthread_setcanceltype failed!");
if (0!= pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS,NULL))
qWarning("pthread_setcanceltype failed!");
tqWarning("pthread_setcanceltype failed!");
signal(SIGPIPE,SIG_IGN); // ignore sigpipe

@ -12,7 +12,7 @@ LinkItem::LinkItem( DOM::Element link )
DOM::NamedNodeMap attrs = link.attributes();
DOM::Node href = attrs.getNamedItem( "href" );
// qDebug("*** href: %s", href.nodeValue().string().latin1() );
// tqDebug("*** href: %s", href.nodeValue().string().latin1() );
TQString urlString = link.ownerDocument().completeURL( href.nodeValue() ).string();
if ( urlString.isEmpty() )

@ -292,7 +292,7 @@ bool KAutoConfig::isDefault() const {
TQVariant defaultValue = d->defaultValues[groupWidget];
TQVariant currentValue = propertyMap->property(groupWidget);
if(currentValue != defaultValue){
//qDebug("groupWidget %s, has changed: default: %s new: %s", groupWidget->name(), defaultValue.toString().latin1(), currentValue.toString().latin1());
//tqDebug("groupWidget %s, has changed: default: %s new: %s", groupWidget->name(), defaultValue.toString().latin1(), currentValue.toString().latin1());
return false;
}
}
@ -396,7 +396,7 @@ bool KAutoConfig::parseChildren(const TQWidget *widget,
{
// FOR THOSE WHO ARE LOOKING
// Here is the code were the widget is actually marked to watch.
//qDebug("KAutoConfig: Adding widget(%s)",childWidget->name());
//tqDebug("KAutoConfig: Adding widget(%s)",childWidget->name());
currentGroup.append(childWidget);
d->defaultValues.insert(childWidget, defaultSetting);
}

@ -468,7 +468,7 @@ void Client::debug( const TQString &str )
#ifdef LIBGW_USE_KDEBUG
kdDebug( GROUPWISE_DEBUG_LIBGW ) << "debug: " << str << endl;
#else
qDebug( "CLIENT: %s\n", str.ascii() );
tqDebug( "CLIENT: %s\n", str.ascii() );
#endif
}

@ -122,7 +122,7 @@ void CoreProtocol::debug( const TQString &str )
#ifdef LIBGW_USE_KDEBUG
kdDebug( 14191 ) << "debug: " << str << endl;
#else
qDebug( "GW RAW PROTO: %s\n", str.ascii() );
tqDebug( "GW RAW PROTO: %s\n", str.ascii() );
#endif
}

@ -38,7 +38,7 @@ void InputProtocolBase::debug( const TQString &str )
#ifdef LIBGW_USE_KDEBUG
kdDebug( 14191 ) << "debug: " << str << endl;
#else
qDebug( "GW RAW PROTO: %s\n", str.ascii() );
tqDebug( "GW RAW PROTO: %s\n", str.ascii() );
#endif
}
@ -83,7 +83,7 @@ bool InputProtocolBase::safeReadBytes( TQCString & data, uint & len )
m_bytes += sizeof( TQ_UINT32 );
if ( val > NMFIELD_MAX_STR_LENGTH )
return false;
//qDebug( "EventProtocol::safeReadBytes() - expecting %i bytes", val );
//tqDebug( "EventProtocol::safeReadBytes() - expecting %i bytes", val );
TQCString temp( val );
if ( val != 0 )
{

@ -533,7 +533,7 @@ void SecureStream::writeRawData(const TQByteArray &a)
void SecureStream::incomingData(const TQByteArray &a)
{
appendRead(a);
//qDebug( "SecureStream::incomingData() got %i bytes ", a.size() );
//tqDebug( "SecureStream::incomingData() got %i bytes ", a.size() );
if(bytesAvailable())
readyRead();

@ -37,26 +37,26 @@ void ClientStreamTest::slotDoTest()
dn.dn = "maeuschen";
dn.server = "reiser.suse.de";
// connect to server
qDebug( "connecting to server ");
tqDebug( "connecting to server ");
myTestObject->connectToServer( dn, true ); // fine up to here...
}
void ClientStreamTest::slotConnected()
{
qDebug( "connection is up");
tqDebug( "connection is up");
}
void ClientStreamTest::slotWarning(int warning)
{
qDebug( "warning: %i", warning);
tqDebug( "warning: %i", warning);
}
void ClientStreamTest::slotsend(int layer)
{
qDebug( "security layer is up: %i", layer);
tqDebug( "security layer is up: %i", layer);
RequestFactory testFactory;
// we're not connecting...
qDebug( "sending request" );
tqDebug( "sending request" );
// send a request
TQCString command("login");
Request * firstRequest = testFactory.request( command );
@ -68,23 +68,23 @@ void ClientStreamTest::slotsend(int layer)
lst.append( new Field::SingleField( NM_A_IP_ADDRESS, 0, NMFIELD_TYPE_UTF8, "10.10.11.103" ) );
firstRequest->setFields( lst );
myTestObject->write( firstRequest );
qDebug( "done");
tqDebug( "done");
}
void ClientStreamTest::slotTLSHandshaken()
{
qDebug( "TLS handshake complete" );
tqDebug( "TLS handshake complete" );
int validityResult = myTLS->certificateValidityResult ();
if( validityResult == QCA::TLS::Valid )
{
qDebug( "Certificate is valid, continuing.");
tqDebug( "Certificate is valid, continuing.");
// valid certificate, continue
myTLSHandler->continueAfterHandshake ();
}
else
{
qDebug( "Certificate is not valid, continuing" );
tqDebug( "Certificate is not valid, continuing" );
// certificate is not valid, query the user
/* if(handleTLSWarning (validityResult, server (), myself()->contactId ()) == KMessageBox::Continue)
{*/

@ -59,11 +59,11 @@ TQStringList UserDetailsManager::knownDNs()
void UserDetailsManager::addDetails( const ContactDetails & details )
{
//qDebug( "UserDetailsManager::addContact, got %s, we now know: ", details.dn.ascii() );
//tqDebug( "UserDetailsManager::addContact, got %s, we now know: ", details.dn.ascii() );
m_detailsMap.insert( details.dn, details );
/* TQStringList keys = m_detailsMap.keys();
dump( keys );
qDebug( "UserDetailsManager::addContact, pending: " );
tqDebug( "UserDetailsManager::addContact, pending: " );
dump( m_pendingDNs );*/
}

@ -208,7 +208,7 @@ TQPair<Jid,JabberAccount*> JabberCapabilitiesManager::CapabilitiesInformation::n
}
else if( (*it).second->isConnected() )
{
//qDebug("caps.cpp: Account isn't active");
//tqDebug("caps.cpp: Account isn't active");
kdDebug(JABBER_DEBUG_GLOBAL) << k_funcinfo << "Account isn't connected." << endl;
return TQPair<Jid,JabberAccount*>( (*it).first,(*it).second );

@ -36,8 +36,8 @@
#include "jabberaccount.h"
#include <kdebug.h>
#define qDebug( X ) kdDebug(JABBER_DEBUG_GLOBAL) << k_funcinfo << X << endl
#define qWarning( X ) kdWarning() <<k_funcinfo<< X << endl
#define tqDebug( X ) kdDebug(JABBER_DEBUG_GLOBAL) << k_funcinfo << X << endl
#define tqWarning( X ) kdWarning() <<k_funcinfo<< X << endl
// ----------------------------------------------------------------------------
@ -111,10 +111,10 @@ void JingleClientSlots::callCreated(cricket::Call *call)
void JingleClientSlots::callDestroyed(cricket::Call *call)
{
qDebug("JingleClientSlots: Call destroyed");
tqDebug("JingleClientSlots: Call destroyed");
Jid jid(call->sessions()[0]->remote_address().c_str());
if (voiceCaller_->calling(jid)) {
qDebug(TQString("Removing unterminated call to %1").arg(jid.full()));
tqDebug(TQString("Removing unterminated call to %1").arg(jid.full()));
voiceCaller_->removeCall(jid);
emit voiceCaller_->terminated(jid);
}
@ -138,7 +138,7 @@ void JingleClientSlots::requestSignaling()
void JingleClientSlots::stateChanged(cricket::Call *call, cricket::Session *session, cricket::Session::State state)
{
qDebug(TQString("jinglevoicecaller.cpp: State changed (%1)").arg(state));
tqDebug(TQString("jinglevoicecaller.cpp: State changed (%1)").arg(state));
// Why is c_str() stuff needed to make it compile on OS X ?
Jid jid(session->remote_address().c_str());
@ -156,7 +156,7 @@ void JingleClientSlots::stateChanged(cricket::Call *call, cricket::Session *sess
}
else if (state == cricket::Session::STATE_SENTMODIFY) { }
else if (state == cricket::Session::STATE_RECEIVEDMODIFY) {
qWarning(TQString("jinglevoicecaller.cpp: RECEIVEDMODIFY not implemented yet (was from %1)").arg(jid.full()));
tqWarning(TQString("jinglevoicecaller.cpp: RECEIVEDMODIFY not implemented yet (was from %1)").arg(jid.full()));
}
else if (state == cricket::Session::STATE_SENTREJECT) { }
else if (state == cricket::Session::STATE_RECEIVEDREJECT) {
@ -195,9 +195,9 @@ void JingleVoiceCaller::initialize()
return;
TQString jid = ((ClientStream&) account()->client()->client()->stream()).jid().full();
qDebug(TQString("jinglevoicecaller.cpp: Creating new caller for %1").arg(jid));
tqDebug(TQString("jinglevoicecaller.cpp: Creating new caller for %1").arg(jid));
if (jid.isEmpty()) {
qWarning("jinglevoicecaller.cpp: Empty JID");
tqWarning("jinglevoicecaller.cpp: Empty JID");
return;
}
@ -271,7 +271,7 @@ bool JingleVoiceCaller::calling(const Jid& jid)
void JingleVoiceCaller::call(const Jid& jid)
{
qDebug(TQString("jinglevoicecaller.cpp: Calling %1").arg(jid.full()));
tqDebug(TQString("jinglevoicecaller.cpp: Calling %1").arg(jid.full()));
cricket::Call *c = ((cricket::PhoneSessionClient*)(phone_client_))->CreateCall();
c->InitiateSession(buzz::Jid(jid.full().ascii()));
phone_client_->SetFocus(c);
@ -279,7 +279,7 @@ void JingleVoiceCaller::call(const Jid& jid)
void JingleVoiceCaller::accept(const Jid& j)
{
qDebug("jinglevoicecaller.cpp: Accepting call");
tqDebug("jinglevoicecaller.cpp: Accepting call");
cricket::Call* call = calls_[j.full()];
if (call != NULL) {
call->AcceptSession(call->sessions()[0]);
@ -289,7 +289,7 @@ void JingleVoiceCaller::accept(const Jid& j)
void JingleVoiceCaller::reject(const Jid& j)
{
qDebug("jinglevoicecaller.cpp: Rejecting call");
tqDebug("jinglevoicecaller.cpp: Rejecting call");
cricket::Call* call = calls_[j.full()];
if (call != NULL) {
call->RejectSession(call->sessions()[0]);
@ -299,7 +299,7 @@ void JingleVoiceCaller::reject(const Jid& j)
void JingleVoiceCaller::terminate(const Jid& j)
{
qDebug(TQString("jinglevoicecaller.cpp: Terminating call to %1").arg(j.full()));
tqDebug(TQString("jinglevoicecaller.cpp: Terminating call to %1").arg(j.full()));
cricket::Call* call = calls_[j.full()];
if (call != NULL) {
call->Terminate();
@ -314,20 +314,20 @@ void JingleVoiceCaller::sendStanza(const char* stanza)
void JingleVoiceCaller::registerCall(const Jid& jid, cricket::Call* call)
{
qDebug("jinglevoicecaller.cpp: Registering call\n");
tqDebug("jinglevoicecaller.cpp: Registering call\n");
kdDebug(14000) << k_funcinfo << jid.full() << endl;
if (!calls_.contains(jid.full())) {
calls_[jid.full()] = call;
}
// else {
// qWarning("jinglevoicecaller.cpp: Auto-rejecting call because another call is currently open");
// tqWarning("jinglevoicecaller.cpp: Auto-rejecting call because another call is currently open");
// call->RejectSession(call->sessions()[0]);
// }
}
void JingleVoiceCaller::removeCall(const Jid& j)
{
qDebug(TQString("JingleVoiceCaller: Removing call to %1").arg(j.full()));
tqDebug(TQString("JingleVoiceCaller: Removing call to %1").arg(j.full()));
calls_.remove(j.full());
}
@ -341,7 +341,7 @@ void JingleVoiceCaller::receiveStanza(const TQString& stanza)
Jid from = Jid(doc.documentElement().attribute("from"));
TQString type = doc.documentElement().attribute("type");
if (type == "unavailable" && calls_.contains(from.full())) {
qDebug("JingleVoiceCaller: User went offline without closing a call.");
tqDebug("JingleVoiceCaller: User went offline without closing a call.");
removeCall(from);
emit terminated(from);
}
@ -363,7 +363,7 @@ void JingleVoiceCaller::receiveStanza(const TQString& stanza)
// Spread the word
if (ok) {
qDebug(TQString("jinglevoicecaller.cpp: Handing down %1").arg(stanza));
tqDebug(TQString("jinglevoicecaller.cpp: Handing down %1").arg(stanza));
buzz::XmlElement *e = buzz::XmlElement::ForStr(stanza.ascii());
phone_client_->OnIncomingStanza(e);
}

@ -115,7 +115,7 @@ public:
{}
else if (state == cricket::Session::STATE_RECEIVEDMODIFY)
{
//qWarning(TQString("jinglevoicecaller.cpp: RECEIVEDMODIFY not implemented yet (was from %1)").arg(jid.full()));
//tqWarning(TQString("jinglevoicecaller.cpp: RECEIVEDMODIFY not implemented yet (was from %1)").arg(jid.full()));
}
else if (state == cricket::Session::STATE_SENTREJECT)
{}
@ -299,7 +299,7 @@ void JingleVoiceSession::receiveStanza(const TQString &stanza)
TQString type = doc.documentElement().attribute("type");
if( type == "unavailable" && hasPeer(peers(), from) )
{
//qDebug("JingleVoiceCaller: User went offline without closing a call.");
//tqDebug("JingleVoiceCaller: User went offline without closing a call.");
kdDebug(JABBER_DEBUG_GLOBAL) << k_funcinfo << "User went offline without closing a call." << endl;
emit terminated();
}

@ -41,7 +41,7 @@ SHA1::SHA1()
{
int wordSize;
qSysInfo(&wordSize, &bigEndian);
tqSysInfo(&wordSize, &bigEndian);
}
unsigned long SHA1::blk0(TQ_UINT32 i)

@ -31,7 +31,7 @@ static void ensureEndian()
if(!haveEndian) {
haveEndian = true;
int wordSize;
qSysInfo(&wordSize, &bigEndian);
tqSysInfo(&wordSize, &bigEndian);
}
}

@ -111,7 +111,7 @@ static TQString image2type(const TQByteArray &ba)
if ( format == "JPEG" )
return "image/jpeg";
qWarning("WARNING! VCard::image2type: unknown format = '%s'", format.latin1());
tqWarning("WARNING! VCard::image2type: unknown format = '%s'", format.latin1());
return "image/unknown";
}

@ -39,7 +39,7 @@ SHA1::SHA1()
{
int wordSize;
qSysInfo(&wordSize, &bigEndian);
tqSysInfo(&wordSize, &bigEndian);
}
unsigned long SHA1::blk0(TQ_UINT32 i)

@ -608,7 +608,7 @@ void Client::setIsIcq( bool isIcq )
void Client::debug( const TQString& str )
{
Q_UNUSED(str);
// qDebug( "CLIENT: %s", str.ascii() );
// tqDebug( "CLIENT: %s", str.ascii() );
}
void Client::initializeStaticTasks()

@ -53,7 +53,7 @@ bool InputProtocolBase::okToProceed()
if ( m_din->atEnd() )
{
m_state = NeedMore;
qDebug( "InputProtocol::okToProceed() - Server message ended prematurely!" );
tqDebug( "InputProtocol::okToProceed() - Server message ended prematurely!" );
}
else
return true;
@ -71,7 +71,7 @@ bool InputProtocolBase::safeReadBytes( TQCString & data, uint & len )
m_bytes += sizeof( TQ_UINT32 );
if ( val > 1024 )
return false;
//qDebug( "EventProtocol::safeReadBytes() - expecting %i bytes", val );
//tqDebug( "EventProtocol::safeReadBytes() - expecting %i bytes", val );
TQCString temp( val );
if ( val != 0 )
{
@ -86,7 +86,7 @@ bool InputProtocolBase::safeReadBytes( TQCString & data, uint & len )
// if ( (TQ_UINT8)( * ( temp.data() + ( temp.length() - 1 ) ) ) == 0xFF )
if ( temp.length() < ( val - 1 ) )
{
qDebug( "InputProtocol::safeReadBytes() - string broke, giving up, only got: %i bytes out of %i", temp.length(), val );
tqDebug( "InputProtocol::safeReadBytes() - string broke, giving up, only got: %i bytes out of %i", temp.length(), val );
m_state = NeedMore;
return false;
}

@ -107,7 +107,7 @@ public:
ClientStream::ClientStream(Connector *conn, TQObject *parent)
:Stream(parent)
{
//qDebug("CLIENTSTREAM::ClientStream");
//tqDebug("CLIENTSTREAM::ClientStream");
d = new Private;
d->mode = ClientMode;
@ -266,7 +266,7 @@ void ClientStream::write( Transfer *request )
void cs_dump( const TQByteArray &bytes )
{
#if 0
qDebug( "contains: %i bytes ", bytes.count() );
tqDebug( "contains: %i bytes ", bytes.count() );
uint count = 0;
while ( count < bytes.count() )
{
@ -373,7 +373,7 @@ void ClientStream::bs_error(int)
void ClientStream::bs_readyRead()
{
TQByteArray a;
//qDebug( "size of storage for incoming data is %i bytes.", a.size() );
//tqDebug( "size of storage for incoming data is %i bytes.", a.size() );
a = d->bs->read();
#if LIBOSCAR_DEBUG

@ -140,11 +140,11 @@ bool Task::take( Transfer * transfer)
if(t->take( transfer ))
{
//qDebug( "Transfer ACCEPTED by: %s", t->className() );
//tqDebug( "Transfer ACCEPTED by: %s", t->className() );
return true;
}
//else
//qDebug( "Transfer refused by: %s", t->className() );
//tqDebug( "Transfer refused by: %s", t->className() );
}
return false;
@ -162,7 +162,7 @@ void Task::safeDelete()
void Task::onGo()
{
qDebug( "ERROR: calling default NULL onGo() for this task, you should reimplement this!");
tqDebug( "ERROR: calling default NULL onGo() for this task, you should reimplement this!");
}
void Task::onDisconnect()

@ -29,13 +29,13 @@ void ClientStreamTest::slotDoTest()
{
TQString server = TQString::fromLatin1("login.oscar.aol.com");
// connect to server
qDebug( "connecting to server ");
tqDebug( "connecting to server ");
myTestObject->connectToServer( server, true ); // fine up to here...
}
void ClientStreamTest::slotConnected()
{
qDebug( "connection is up");
tqDebug( "connection is up");
connected = true;
}

@ -31,7 +31,7 @@ void LoginTest::slotDoTest()
{
TQString server = TQString::fromLatin1("login.oscar.aol.com");
// connect to server
qDebug( "connecting to server ");
tqDebug( "connecting to server ");
myClient->setIsIcq( true );
myClient->start( server, 5190, "userid", "password" );
@ -41,7 +41,7 @@ void LoginTest::slotDoTest()
void LoginTest::slotConnected()
{
qDebug( "connection is up");
tqDebug( "connection is up");
connected = true;
}

@ -31,7 +31,7 @@ void LoginTest::slotDoTest()
{
TQString server = TQString::fromLatin1("login.oscar.aol.com");
// connect to server
qDebug( "connecting to server ");
tqDebug( "connecting to server ");
myClient->setIsIcq( true );
myClient->start( server, 5190, "userid", "password" );
@ -42,7 +42,7 @@ void LoginTest::slotDoTest()
void LoginTest::slotConnected()
{
qDebug( "connection is up");
tqDebug( "connection is up");
connected = true;
}
@ -56,7 +56,7 @@ int main(int argc, char ** argv)
void LoginTest::runAddGroupTest()
{
qDebug( "running ssi group add test" );
tqDebug( "running ssi group add test" );
TQString group = TQString::fromLatin1( "dummygroup" );
myClient->addGroup( group );
TQTimer::singleShot( 5000, this, TQT_SLOT( runDelGroupTest() ) );
@ -64,7 +64,7 @@ void LoginTest::runAddGroupTest()
void LoginTest::runDelGroupTest()
{
qDebug( "running ssi group del test" );
tqDebug( "running ssi group del test" );
TQString group = TQString::fromLatin1( "dummygroup" );
myClient->removeGroup( group );
}

@ -53,49 +53,49 @@ void SSITest::testIt()
//try to find a group by name
ssi = m_manager->findGroup("SecondGroup");
if ( ssi )
qDebug( TQString("Found group SecondGroup with gid=%1").arg( ssi->gid() ).latin1());
tqDebug( TQString("Found group SecondGroup with gid=%1").arg( ssi->gid() ).latin1());
else
qDebug( "Oops, group SecondGroup not found" );
tqDebug( "Oops, group SecondGroup not found" );
//try to find a group by gid
ssi = m_manager->findGroup( 3 );
if ( ssi )
qDebug( TQString("Found group 3 with name=%1").arg( ssi->name() ).latin1() );
tqDebug( TQString("Found group 3 with name=%1").arg( ssi->name() ).latin1() );
else
qDebug( "Oops, group 3 not found" );
tqDebug( "Oops, group 3 not found" );
//try to find a contact by name
ssi = m_manager->findContact("ThirdContact");
if ( ssi )
qDebug( TQString( "Found contact ThirdContact with gid=%1" ).arg( ssi->gid() ).latin1() );
tqDebug( TQString( "Found contact ThirdContact with gid=%1" ).arg( ssi->gid() ).latin1() );
else
qDebug( "Oops, contact ThirdContact not found" );
tqDebug( "Oops, contact ThirdContact not found" );
//try to find a contact using the name and the group name
ssi = m_manager->findContact("FourthContact","SecondGroup");
if ( ssi )
qDebug( TQString("Found contact FourthContact with bid=%1").arg( ssi->bid() ).latin1() );
tqDebug( TQString("Found contact FourthContact with bid=%1").arg( ssi->bid() ).latin1() );
else
qDebug( "Oops, contact FourthContact not found" );
tqDebug( "Oops, contact FourthContact not found" );
//try to find an invalid group
ssi = m_manager->findGroup("InvalidGroup");
if ( !ssi )
qDebug( "Good! It has detected the group is invalid :)" );
tqDebug( "Good! It has detected the group is invalid :)" );
//contacts from a group
TQValueList<SSI*> list = m_manager->contactsFromGroup("FirstGroup");
TQValueList<SSI*>::iterator it;
qDebug( "Contacts from group FirtsGroup:" );
tqDebug( "Contacts from group FirtsGroup:" );
for ( it = list.begin(); it != list.end(); ++it)
qDebug( TQString(" name=%1").arg( (*it)->name() ).latin1() );
tqDebug( TQString(" name=%1").arg( (*it)->name() ).latin1() );
//the group list
TQValueList<SSI*> list2 = m_manager->groupList();
qDebug( "Group list:" );
tqDebug( "Group list:" );
for ( it = list2.begin(); it != list2.end(); ++it)
qDebug( TQString(" name=%1").arg( (*it)->name() ).latin1() );
tqDebug( TQString(" name=%1").arg( (*it)->name() ).latin1() );
//remove a group - this shouldn't report any debug line
m_manager->removeGroup( "SecondGroup" );

@ -31,7 +31,7 @@ void LoginTest::slotDoTest()
{
TQString server = TQString::fromLatin1("login.oscar.aol.com");
// connect to server
qDebug( "connecting to server ");
tqDebug( "connecting to server ");
myClient->setIsIcq( true );
myClient->start( server, 5190, "userid", "password" );
@ -43,7 +43,7 @@ void LoginTest::slotDoTest()
void LoginTest::slotConnected()
{
qDebug( "connection is up");
tqDebug( "connection is up");
connected = true;
}
@ -57,7 +57,7 @@ int main(int argc, char ** argv)
void LoginTest::runUserInfoTest()
{
qDebug( "running user info test" );
tqDebug( "running user info test" );
TQString contact = TQString::fromLatin1( "userid" );
myClient->requestFullInfo( contact );

@ -825,7 +825,7 @@ void Client::send( Transfer* request )
void Client::debug(const TQString &str)
{
qDebug( "CLIENT: %s", str.ascii() );
tqDebug( "CLIENT: %s", str.ascii() );
}
Task * Client::rootTask()

@ -87,7 +87,7 @@ void CoreProtocol::addIncomingData( const TQByteArray & incomingBytes )
/*
if ( m_eventProtocol->state() == EventProtocol::OutOfSync )
{
qDebug( " - protocol thinks it's out of sync, discarding the rest of the buffer and hoping the server regains sync soon..." );
tqDebug( " - protocol thinks it's out of sync, discarding the rest of the buffer and hoping the server regains sync soon..." );
m_in.truncate( 0 );
}
*/
@ -219,7 +219,7 @@ void CoreProtocol::reset()
void CoreProtocol::slotOutgoingData( const TQByteArray &out )
{
qDebug( "%s", out.data() );
tqDebug( "%s", out.data() );
}
bool CoreProtocol::okToProceed( TQDataStream &din)

@ -52,7 +52,7 @@ bool InputProtocolBase::okToProceed()
if ( m_din->atEnd() )
{
m_state = NeedMore;
qDebug( "InputProtocol::okToProceed() - Server message ended prematurely!" );
tqDebug( "InputProtocol::okToProceed() - Server message ended prematurely!" );
}
else
return true;
@ -71,7 +71,7 @@ bool InputProtocolBase::safeReadBytes( TQCString & data, uint & len )
m_bytes += sizeof( TQ_UINT32 );
if ( val > 1024 )
return false;
//qDebug( "EventProtocol::safeReadBytes() - expecting %i bytes", val );
//tqDebug( "EventProtocol::safeReadBytes() - expecting %i bytes", val );
TQCString temp( val );
if ( val != 0 )
{
@ -86,7 +86,7 @@ bool InputProtocolBase::safeReadBytes( TQCString & data, uint & len )
// if ( (quint8)( * ( temp.data() + ( temp.length() - 1 ) ) ) == 0xFF )
if ( temp.length() < static_cast<int>( val - 1 ) )
{
qDebug( "InputProtocol::safeReadBytes() - string broke, giving up, only got: %i bytes out of %i", temp.length(), val );
tqDebug( "InputProtocol::safeReadBytes() - string broke, giving up, only got: %i bytes out of %i", temp.length(), val );
m_state = NeedMore;
return false;
}

@ -141,7 +141,7 @@ bool Task::take( Transfer * transfer)
if(t->take( transfer ))
{
qDebug( "Transfer ACCEPTED by: %s", t->className() );
tqDebug( "Transfer ACCEPTED by: %s", t->className() );
return true;
}
}
@ -161,7 +161,7 @@ void Task::safeDelete()
void Task::onGo()
{
qDebug( "ERROR: calling default NULL onGo() for this task, you should reimplement this!");
tqDebug( "ERROR: calling default NULL onGo() for this task, you should reimplement this!");
}
void Task::onDisconnect()

@ -256,7 +256,7 @@ void ClientStream::write( Transfer *request )
void cs_dump( const TQByteArray &bytes )
{
#if 0
qDebug( "contains: %i bytes ", bytes.count() );
tqDebug( "contains: %i bytes ", bytes.count() );
uint count = 0;
while ( count < bytes.count() )
{
@ -369,11 +369,11 @@ void ClientStream::bs_readyRead()
{
// kdDebug(YAHOO_RAW_DEBUG) ;
TQByteArray a;
//qDebug( "size of storage for incoming data is %i bytes.", a.size() );
//tqDebug( "size of storage for incoming data is %i bytes.", a.size() );
a = d->bs->read();
//TQCString cs(a.data(), a.size()+1);
//qDebug("ClientStream: recv: %d [%s]\n", a.size(), cs.data());
//tqDebug("ClientStream: recv: %d [%s]\n", a.size(), cs.data());
//kdDebug(YAHOO_RAW_DEBUG) << " recv: " << a.size() <<" bytes";
//cs_dump( a );

@ -184,7 +184,7 @@ namespace KPF
{
if (0 != d->socket)
{
qWarning("Uhhh, socket isn't 0, but I'm told to bind ?");
tqWarning("Uhhh, socket isn't 0, but I'm told to bind ?");
return;
}

@ -80,7 +80,7 @@ int RuleSet::dayNameToInt(const char *s) {
"sunday", NULL};
for(int i = 0; name[i] != NULL; i++)
if(qstricmp(name[i], s) == 0)
if(tqstricmp(name[i], s) == 0)
return i;
return -1;

@ -62,7 +62,7 @@ extern const char* pppdPath();
static void decode_version (const char *_buf, int *version,
int *modification, int *patch)
{
char *buffer = qstrdup(_buf);
char *buffer = tqstrdup(_buf);
char *buf = buffer;
*version = (int) strtoul (buf, &buf, 10);
*modification = 0;

@ -295,7 +295,7 @@ bool KRdpView::start()
connect(m_process, TQT_SIGNAL(receivedStderr(KProcess *, char *, int)), TQT_SLOT(receivedStderr(KProcess *, char *, int)));
connect(m_container, TQT_SIGNAL(embeddedWindowDestroyed()), TQT_SLOT(connectionClosed()));
connect(m_container, TQT_SIGNAL(newEmbeddedWindow(WId)), TQT_SLOT(connectionOpened(WId)));
qDebug("Color depth: %d", hp->colorDepth());
tqDebug("Color depth: %d", hp->colorDepth());
if(!m_process->start(KProcess::NotifyOnExit, KProcess::Stderr))
{
KMessageBox::error(0, i18n("Could not start rdesktop; make sure rdesktop is properly installed."),

@ -73,7 +73,7 @@ int RdpPrefs::rdpHeight()
int RdpPrefs::colorDepth()
{
qDebug("current depth: %i", cmbColorDepth->currentItem() );
tqDebug("current depth: %i", cmbColorDepth->currentItem() );
switch (cmbColorDepth->currentItem())
{
case 0:

@ -83,7 +83,7 @@ void PageServChan::addPressedSL() {
for(i = 0; i < serverLB->count(); i++){
if(txt == serverLB->text(i)){
qWarning("Server already in the list!");
tqWarning("Server already in the list!");
return;
}
}
@ -115,7 +115,7 @@ void PageServChan::addPressedCL() {
for(i = 0; i < channelLB->count(); i++){
if(txt == channelLB->text(i)){
qWarning("Server already in the list!");
tqWarning("Server already in the list!");
return;
}
}

@ -85,7 +85,7 @@ filterRuleList *KSMBaseRules::defaultRules()
TQString nick = ksircProcess()->getNick();
if ( !nick.isEmpty() ) {
if(nick.length() > 83){
qDebug("Nick too long");
tqDebug("Nick too long");
nick.truncate( 83 );
}
/*

@ -866,7 +866,7 @@ parseResult * ChannelParser::parseINFOMode(TQString string)
top->channelButtons->setButtonsEnabled(mi->op());
if(mi->arg().length() == 0){
qWarning("Invalid nick in +/- o mode change");
tqWarning("Invalid nick in +/- o mode change");
continue;
}
@ -910,7 +910,7 @@ parseResult * ChannelParser::parseINFOMode(TQString string)
voice = FALSE;
if(mi->arg().length() == 0){
qWarning("Invalid nick in +-v mode change");
tqWarning("Invalid nick in +-v mode change");
continue;
}
@ -934,7 +934,7 @@ parseResult * ChannelParser::parseINFOMode(TQString string)
else if(mi->mode() == 'k'){
if(mi->op()){
if(mi->arg().length() == 0){
qWarning("Invalid +k mode set, no argument!");
tqWarning("Invalid +k mode set, no argument!");
continue;
}
top->m_channelInfo.setKey(mi->arg());

@ -247,7 +247,7 @@ void KSircIOController::stdout_read(KProcess *, char *_buffer, int buflen)
TQTextCodec *qtc = KGlobal::charsets()->codecForName( enc );
TQString qsname = qtc->toUnicode(name);
/*
char *b = qstrdup(line);
char *b = tqstrdup(line);
kdDebug(5008) << "----------------------------------------" << endl;
kdDebug(5008) << "Line: " << b << endl;
fprintf(stderr, "My_print: " ); my_print(b);
@ -318,7 +318,7 @@ void KSircIOController::stdin_write(TQCString s)
if(proc_CTS == TRUE){
int len = buffer.length();
if(send_buf != 0x0){
qWarning("KProcess barfed in all clear signal again");
tqWarning("KProcess barfed in all clear signal again");
delete[] send_buf;
}
send_buf = new char[len];

@ -128,7 +128,7 @@ KSircProcess::KSircProcess( TQString &server_id, KSircServer &kss, TQObject * pa
proc->setRunPrivileged(true); /* make ksirc run under gdb as a user */
#endif
//server = qstrdup(kss.server());
//server = tqstrdup(kss.server());
TQDict<KSircMessageReceiver> nTopList(17, FALSE);
TopList = nTopList;
@ -470,7 +470,7 @@ void KSircProcess::close_toplevel(KSircTopLevel *wm, TQString name)
void KSircProcess::clean_toplevel(TQObject *clean){
if(!clean){
qWarning("Passed null to cleaner!!");
tqWarning("Passed null to cleaner!!");
return;
}
bool cont = FALSE;

@ -54,7 +54,7 @@ TQPixmap ksTextViewLoadPixmap( const TQString &icon )
{
ksTextViewPixmapDict = new TQDict<TQPixmap>;
ksTextViewPixmapDict->setAutoDelete( true );
qAddPostRoutine( cleanupKSTextViewPixmapDict );
tqAddPostRoutine( cleanupKSTextViewPixmapDict );
}
TQPixmap *pix = ksTextViewPixmapDict->find( icon );
@ -536,14 +536,14 @@ Tokenizer::Tokenizer( PString &text )
: m_text( text.data ), m_tags( text.tags ),
m_textBeforeFirstTagProcessed( false ), m_done( false )
{
//qDebug( "Tokenizer::Tokenizer( %s )", m_text.ascii() );
//tqDebug( "Tokenizer::Tokenizer( %s )", m_text.ascii() );
m_lastTag = m_tags.begin();
if ( !m_tags.isEmpty() ) {
if ( ( *m_tags.begin() ).type != TagIndex::Open ) {
qDebug( "something went awfully wrong! bailing out with an assertion" );
qDebug( "text input was: %s", text.data.ascii() );
tqDebug( "something went awfully wrong! bailing out with an assertion" );
tqDebug( "text input was: %s", text.data.ascii() );
}
assert( ( *m_tags.begin() ).type == TagIndex::Open );
}
@ -620,7 +620,7 @@ bool Tokenizer::parseNextToken( Token &tok )
{
if ( m_done )
{
//qDebug( "Tokenizer: premature end" );
//tqDebug( "Tokenizer: premature end" );
return false;
}
@ -706,7 +706,7 @@ bool Tokenizer::parseNextToken( Token &tok )
return true;
}
else {
qDebug( "EEK, this should never happen. input text was: %s", m_text.ascii() );
tqDebug( "EEK, this should never happen. input text was: %s", m_text.ascii() );
assert( false );
}
@ -851,14 +851,14 @@ void Tokenizer::parseTag( const StringPtr &text,
{
if ( ch == '=' ) // eh?
{
qDebug( "EH?" );
tqDebug( "EH?" );
++p;
continue;
}
if ( key.isNull() )
{
qDebug( "Tokenizer: Error, attribute value without key." );
tqDebug( "Tokenizer: Error, attribute value without key." );
// reset
state = ScanForName;
++p;
@ -884,7 +884,7 @@ void Tokenizer::parseTag( const StringPtr &text,
if(start == 0x0) {
state = ScanForName;
qDebug( "Never found start \" in tag." );
tqDebug( "Never found start \" in tag." );
++p;
continue;
}

@ -29,7 +29,7 @@ void objFinder::insert(TQObject *obj, const char *key){
TQString name;
if(obj == 0x0){
qWarning("objFinder: Passed Null Object");
tqWarning("objFinder: Passed Null Object");
return;
}

@ -310,7 +310,7 @@ void PukeController::Traffic(int fd)
}
#endif /* DEBUG */
if(pm.iHeader != iPukeHeader){
qWarning("Invalid packet received, discarding!");
tqWarning("Invalid packet received, discarding!");
return;
}
if(pm.iTextSize > 0){
@ -527,7 +527,7 @@ void PukeController::hdlrPukeSetup(int fd, PukeMessage *pm)
pmOut.iArg = 1;
if((strlen(pm->cArg) > 0) &&
(this->qidConnectFd[fd] != NULL)){
this->qidConnectFd[fd]->server = qstrdup(pm->cArg);
this->qidConnectFd[fd]->server = tqstrdup(pm->cArg);
pmOut.iWinId = pm->iWinId;
pmOut.iArg = sizeof(PukeMessage) - sizeof(char *);
}
@ -651,13 +651,13 @@ void PukeController::hdlrPukeDeleteWidget(int fd, PukeMessage *pm)
pmRet.iCommand = PUKE_WIDGET_DELETE_ACK;
}
else {
qWarning("WidgetRunner: no such widget: %d", wI.iWinId);
tqWarning("WidgetRunner: no such widget: %d", wI.iWinId);
throw(errorCommandFailed(PUKE_INVALID, INVALID_DEL_NO_SUCH_WIDGET));
}
*/
if(checkWidgetId(&wI) == FALSE){
qWarning("WidgetRunner: no such widget: %d", wI.iWinId);
tqWarning("WidgetRunner: no such widget: %d", wI.iWinId);
throw(errorCommandFailed(PUKE_INVALID, INVALID_DEL_NO_SUCH_WIDGET));
}

@ -55,7 +55,7 @@ void PLayout::messageHandler(int fd, PukeMessage *pm)
if(pm->iCommand == PUKE_LAYOUT_ADDWIDGET){
if(pm->iTextSize != 2*sizeof(char)){
qWarning("PLayout/addwidget: incorrent cArg size, bailing out. Needed: %u wanted: %d\n", sizeof(int), pm->iTextSize);
tqWarning("PLayout/addwidget: incorrent cArg size, bailing out. Needed: %u wanted: %d\n", sizeof(int), pm->iTextSize);
pmRet.iCommand = PUKE_LAYOUT_ADDWIDGET_ACK; // ack the add widget
pmRet.iWinId = pm->iWinId;
pmRet.iArg = 1;
@ -78,7 +78,7 @@ void PLayout::messageHandler(int fd, PukeMessage *pm)
}
else if(pm->iCommand == PUKE_LAYOUT_ADDLAYOUT){
if(pm->iTextSize != sizeof(char)){
qWarning("PLayout: incorrent cArg size, bailing out. Needed: %u wanted: %d\n", sizeof(int), pm->iTextSize);
tqWarning("PLayout: incorrent cArg size, bailing out. Needed: %u wanted: %d\n", sizeof(int), pm->iTextSize);
pmRet.iCommand = PUKE_LAYOUT_ADDLAYOUT_ACK; // ack the add widget
pmRet.iWinId = pm->iWinId;
pmRet.iArg = 1;

@ -69,7 +69,7 @@ void PObject::messageHandler(int fd, PukeMessage *pm)
delete this;
}
else {
qWarning("PObject: Unkown Command: %d", pm->iCommand);
tqWarning("PObject: Unkown Command: %d", pm->iCommand);
pmRet.iCommand = PUKE_INVALID;
pmRet.iWinId = pm->iWinId;
pmRet.iArg = 0;

@ -43,7 +43,7 @@ void PObjFinder::messageHandler(int fd, PukeMessage *pm)
pmRet.iCommand = - pm->iCommand;
pmRet.iWinId = pm->iWinId;
pmRet.iArg = 0;
pmRet.cArg = qstrdup(qscArg);
pmRet.cArg = tqstrdup(qscArg);
pmRet.iTextSize = qscArg.length();
emit outputMessage(fd, &pmRet);
delete pmRet.cArg;
@ -77,7 +77,7 @@ void PObjFinder::newObject(TQObject *name){
pmRet.iCommand = - PUKE_OBJFINDER_NEWOBJECT_ACK;
pmRet.iWinId = widgetIden().iWinId;
pmRet.iArg = 0;
pmRet.cArg = qstrdup(info);
pmRet.cArg = tqstrdup(info);
pmRet.iTextSize = info.length();
emit outputMessage(widgetIden().fd, &pmRet);
delete pmRet.cArg;

@ -102,7 +102,7 @@ TQPopupMenu *PPopupMenu::widget()
}
void PPopupMenu::got_activated(int itemId){
qWarning("Item got activated: %d", itemId);
tqWarning("Item got activated: %d", itemId);
widgetId wI;
PukeMessage pmRet;

@ -42,7 +42,7 @@ void PProgress::messageHandler(int fd, PukeMessage *pm)
// kdDebug(5008) << "PProgress handler called" << endl;
PukeMessage pmRet;
if(widget() == 0){
qWarning("Null widget");
tqWarning("Null widget");
return;
}
switch(pm->iCommand){

@ -49,7 +49,7 @@ void PTabDialog::messageHandler(int fd, PukeMessage *pm)
if(pm->iCommand == PUKE_TABDIALOG_ADDTAB){
if(!(pm->iTextSize > 0)){
qWarning("TQTabDialog/addtab: incorrent cArg size, bailing out. Needed: >0 got: %d\n", pm->iTextSize);
tqWarning("TQTabDialog/addtab: incorrent cArg size, bailing out. Needed: >0 got: %d\n", pm->iTextSize);
pmRet.iCommand = PUKE_TABDIALOG_ADDTAB_ACK; // ack the add widget
pmRet.iWinId = pm->iWinId;
pmRet.iArg = 1;

@ -4,7 +4,7 @@
PObject *
PTableView::createWidget(CreateArgs &ca)
{
qWarning("Table View is abstract class, cannot create an object from it!!!");
tqWarning("Table View is abstract class, cannot create an object from it!!!");
PTableView *pt = new PTableView(ca.parent);
pt->setWidget(0);
pt->setWidgetId(ca.pwI);

@ -248,7 +248,7 @@ void PWidget::messageHandler(int fd, PukeMessage *pm)
}
int *point_show = (int *) pm->cArg;
qWarning("Recreate: %d %d %d", point_show[0], point_show[1], point_show[3]);
tqWarning("Recreate: %d %d %d", point_show[0], point_show[1], point_show[3]);
widget()->reparent(nparent, (WFlags) 0, TQPoint(point_show[0], point_show[1]), point_show[3]);

@ -145,7 +145,7 @@ int read_user_config(const char * key, char * result, int max)
TQString Qresult;
if ((Qresult = cfg -> readEntry(key, "unset")) != "unset")
{
qstrncpy( result, Qresult.ascii(), max);
tqstrncpy( result, Qresult.ascii(), max);
if (Options.debug_mode) syslog(LOG_DEBUG,"User option %s : %s", key, result);
return 1;
@ -212,28 +212,28 @@ int process_config_file(void)
ktalk_debug("Sound : %d",Options.sound); }
if (found("SoundFile")) {
qstrncpy(Options.soundfile,TQFile::encodeName(result),S_CFGLINE);
tqstrncpy(Options.soundfile,TQFile::encodeName(result),S_CFGLINE);
ktalk_debug("SoundFile = %s",Options.soundfile); }
if (found("SoundPlayer")) {
qstrncpy(Options.soundplayer,TQFile::encodeName(result),S_CFGLINE);
tqstrncpy(Options.soundplayer,TQFile::encodeName(result),S_CFGLINE);
ktalk_debug("SoundPlayer = %s",Options.soundplayer); }
if (found("SoundPlayerOpt")) {
qstrncpy(Options.soundplayeropt,TQFile::encodeName(result),S_CFGLINE);
tqstrncpy(Options.soundplayeropt,TQFile::encodeName(result),S_CFGLINE);
ktalk_debug("SoundPlayerOpt = %s",Options.soundplayeropt); }
if (found("MailProg")) {
qstrncpy(Options.mailprog,TQFile::encodeName(result),S_CFGLINE);
tqstrncpy(Options.mailprog,TQFile::encodeName(result),S_CFGLINE);
ktalk_debug("Mail prog = %s",Options.mailprog); }
/* text based announcement */
if (found("Announce1")) { qstrncpy(Options.announce1,result.local8Bit(),S_CFGLINE); }
if (found("Announce2")) { qstrncpy(Options.announce2,result.local8Bit(),S_CFGLINE); }
if (found("Announce3")) { qstrncpy(Options.announce3,result.local8Bit(),S_CFGLINE); }
if (found("Announce1")) { tqstrncpy(Options.announce1,result.local8Bit(),S_CFGLINE); }
if (found("Announce2")) { tqstrncpy(Options.announce2,result.local8Bit(),S_CFGLINE); }
if (found("Announce3")) { tqstrncpy(Options.announce3,result.local8Bit(),S_CFGLINE); }
if (found("NEUUser")) {
qstrncpy(Options.NEU_user,result.local8Bit(),S_CFGLINE);
tqstrncpy(Options.NEU_user,result.local8Bit(),S_CFGLINE);
ktalk_debug("NEUUser = %s", Options.NEU_user);
}
if (found("NEUBehaviour")) {
@ -241,16 +241,16 @@ int process_config_file(void)
ktalk_debug("NEUBehaviour : %d",Options.NEU_behaviour);
}
if (found("NEUForwardMethod")) {
qstrncpy(Options.NEU_forwardmethod,result.ascii(),5);
tqstrncpy(Options.NEU_forwardmethod,result.ascii(),5);
ktalk_debug("NEUForwardMethod = %s", Options.NEU_forwardmethod);
}
if (found("ExtPrg")) {
qstrncpy(Options.extprg,TQFile::encodeName(result),S_CFGLINE);
tqstrncpy(Options.extprg,TQFile::encodeName(result),S_CFGLINE);
ktalk_debug("Ext prg = %s",Options.extprg); }
else { /* has to work even without config file at all */
KStandardDirs stddirs;
qstrncpy(Options.extprg, TQFile::encodeName(stddirs.findResource("exe","ktalkdlg")), S_CFGLINE-1);
tqstrncpy(Options.extprg, TQFile::encodeName(stddirs.findResource("exe","ktalkdlg")), S_CFGLINE-1);
}
delete syscfg;

Loading…
Cancel
Save