")
@@ -202,7 +202,7 @@ void CryptographyPlugin::slotIncomingMessage( Kopete::Message& msg )
//the Message::unescape is there because client like fire replace linebreak by to work even if the protocol doesn't allow newlines (IRC)
// cf http://fire.sourceforge.net/forums/viewtopic.php?t=174 and Bug #96052
- if(body.tqcontains("<"))
+ if(body.contains("<"))
body= Kopete::Message::unescape(body);
body = KgpgInterface::KgpgDecryptText( body, mPrivateKeyID );
diff --git a/kopete/plugins/cryptography/kgpginterface.cpp b/kopete/plugins/cryptography/kgpginterface.cpp
index d74f9baa..fb407523 100644
--- a/kopete/plugins/cryptography/kgpginterface.cpp
+++ b/kopete/plugins/cryptography/kgpginterface.cpp
@@ -50,12 +50,12 @@ TQString KgpgInterface::KgpgEncryptText(TQString text,TQString userIDs, TQString
userIDs=userIDs.simplifyWhiteSpace();
Options=Options.stripWhiteSpace();
- int ct=userIDs.tqfind(" ");
+ int ct=userIDs.find(" ");
while (ct!=-1) // if multiple keys...
{
dests+=" --recipient "+userIDs.section(' ',0,0);
userIDs.remove(0,ct+1);
- ct=userIDs.tqfind(" ");
+ ct=userIDs.find(" ");
}
dests+=" --recipient "+userIDs;
@@ -95,7 +95,7 @@ TQString KgpgInterface::KgpgDecryptText(TQString text,TQString userID)
{
/// pipe for passphrase
//userID=TQString::fromUtf8(userID);
- userID.tqreplace('<',"<");
+ userID.replace('<',"<");
TQString passdlg=i18n("Enter passphrase for %1:").tqarg(userID);
if (counter>1)
passdlg.prepend(i18n("Bad passphrase You have %1 tries left. ").tqarg(TQString::number(4-counter)));
@@ -151,18 +151,18 @@ TQString KgpgInterface::checkForUtf8(TQString txt)
for (s = txt.ascii(); *s && !(*s & 0x80); s++)
;
- if (*s && !strchr (txt.ascii(), 0xc3) && (txt.tqfind("\\x")==-1))
+ if (*s && !strchr (txt.ascii(), 0xc3) && (txt.find("\\x")==-1))
return txt;
/* The string is not in UTF-8 */
//if (strchr (txt.ascii(), 0xc3)) return (txt+" +++");
- if (txt.tqfind("\\x")==-1)
+ if (txt.find("\\x")==-1)
return TQString::fromUtf8(txt.ascii());
- // if (!strchr (txt.ascii(), 0xc3) || (txt.tqfind("\\x")!=-1)) {
- for ( int idx = 0 ; (idx = txt.tqfind( "\\x", idx )) >= 0 ; ++idx ) {
+ // if (!strchr (txt.ascii(), 0xc3) || (txt.find("\\x")!=-1)) {
+ for ( int idx = 0 ; (idx = txt.find( "\\x", idx )) >= 0 ; ++idx ) {
char str[2] = "x";
str[0] = (char) TQString( txt.mid( idx + 2, 2 ) ).toShort( 0, 16 );
- txt.tqreplace( idx, 4, str );
+ txt.replace( idx, 4, str );
}
if (!strchr (txt.ascii(), 0xc3))
return TQString::fromUtf8(txt.ascii());
diff --git a/kopete/plugins/cryptography/kgpgselkey.cpp b/kopete/plugins/cryptography/kgpgselkey.cpp
index 1f3d5a39..f4d4072f 100644
--- a/kopete/plugins/cryptography/kgpgselkey.cpp
+++ b/kopete/plugins/cryptography/kgpgselkey.cpp
@@ -170,13 +170,13 @@ KgpgSelKey::KgpgSelKey(TQWidget *tqparent, const char *name,bool showlocal):KDia
TQString KgpgSelKey::extractKeyName(TQString fullName)
{
TQString kMail;
- if (fullName.tqfind("<")!=-1)
+ if (fullName.find("<")!=-1)
{
kMail=fullName.section('<',-1,-1);
kMail.truncate(kMail.length()-1);
}
TQString kName=fullName.section('<',0,0);
- if (kName.tqfind("(")!=-1) kName=kName.section('(',0,0);
+ if (kName.find("(")!=-1) kName=kName.section('(',0,0);
return TQString(kMail+" ("+kName+")").stripWhiteSpace();
}
diff --git a/kopete/plugins/cryptography/popuppublic.cpp b/kopete/plugins/cryptography/popuppublic.cpp
index 661fd717..d3d3ecd7 100644
--- a/kopete/plugins/cryptography/popuppublic.cpp
+++ b/kopete/plugins/cryptography/popuppublic.cpp
@@ -269,7 +269,7 @@ void popupPublic::sort()
if (current==NULL)
return;
- if ((untrustedList.tqfind(current->text(2))!=untrustedList.end()) && (!current->text(2).isEmpty())){
+ if ((untrustedList.find(current->text(2))!=untrustedList.end()) && (!current->text(2).isEmpty())){
if (current->isSelected()) {
current->setSelected(false);
reselect=true;
@@ -279,7 +279,7 @@ void popupPublic::sort()
while ( current->nextSibling() ) {
current = current->nextSibling();
- if ((untrustedList.tqfind(current->text(2))!=untrustedList.end()) && (!current->text(2).isEmpty())) {
+ if ((untrustedList.find(current->text(2))!=untrustedList.end()) && (!current->text(2).isEmpty())) {
if (current->isSelected()) {
current->setSelected(false);
reselect=true;
@@ -433,13 +433,13 @@ void popupPublic::slotprocread(KProcIO *p)
untrustedList<setSelectable(false);
- if (seclist.tqfind(tst,0,FALSE)!=-1)
+ if (seclist.find(tst,0,FALSE)!=-1)
item->setPixmap(0,keyPair);
else
item->setPixmap(0,keySingle);
diff --git a/kopete/plugins/highlight/highlightplugin.cpp b/kopete/plugins/highlight/highlightplugin.cpp
index 843d7ed5..4eee907e 100644
--- a/kopete/plugins/highlight/highlightplugin.cpp
+++ b/kopete/plugins/highlight/highlightplugin.cpp
@@ -70,8 +70,8 @@ void HighlightPlugin::slotIncomingMessage( Kopete::Message& msg )
{
++it;
if(f->isRegExp ?
- msg.plainBody().tqcontains(TQRegExp(f->search , f->caseSensitive)) :
- msg.plainBody().tqcontains(f->search , f->caseSensitive) )
+ msg.plainBody().contains(TQRegExp(f->search , f->caseSensitive)) :
+ msg.plainBody().contains(f->search , f->caseSensitive) )
{
if(f->setBG)
msg.setBg(f->BG);
diff --git a/kopete/plugins/highlight/highlightprefsbase.ui b/kopete/plugins/highlight/highlightprefsbase.ui
index 360af41e..eaca281c 100644
--- a/kopete/plugins/highlight/highlightprefsbase.ui
+++ b/kopete/plugins/highlight/highlightprefsbase.ui
@@ -127,7 +127,7 @@
- If the message tqcontains:
+ If the message contains:
diff --git a/kopete/plugins/history/converter.cpp b/kopete/plugins/history/converter.cpp
index 5a84e021..76b29a5c 100644
--- a/kopete/plugins/history/converter.cpp
+++ b/kopete/plugins/history/converter.cpp
@@ -118,7 +118,7 @@ void HistoryPlugin::convertOldHistory()
while ( (fi2 = it2.current()) != 0 )
{
//we assume that all "-" are dots. (like in hotmail.com)
- TQString contactId=fi2->fileName().tqreplace(".log" , TQString()).tqreplace("-" , ".");
+ TQString contactId=fi2->fileName().replace(".log" , TQString()).replace("-" , ".");
if(!contactId.isEmpty() )
{
@@ -213,9 +213,9 @@ void HistoryPlugin::convertOldHistory()
if(!docElem.isNull())
{
TQDate date(year,month,1);
- TQString name = protocolId.tqreplace( TQRegExp( TQString::tqfromLatin1( "[./~?*]" ) ), TQString::tqfromLatin1( "-" ) ) +
+ TQString name = protocolId.replace( TQRegExp( TQString::tqfromLatin1( "[./~?*]" ) ), TQString::tqfromLatin1( "-" ) ) +
TQString::tqfromLatin1( "/" ) +
- contactId.tqreplace( TQRegExp( TQString::tqfromLatin1( "[./~?*]" ) ), TQString::tqfromLatin1( "-" ) ) +
+ contactId.replace( TQRegExp( TQString::tqfromLatin1( "[./~?*]" ) ), TQString::tqfromLatin1( "-" ) ) +
date.toString(".yyyyMM");
KSaveFile file( locateLocal( "data", TQString::tqfromLatin1( "kopete/logs/" ) + name+ TQString::tqfromLatin1( ".xml" ) ) );
if( file.status() == 0 )
@@ -275,9 +275,9 @@ void HistoryPlugin::convertOldHistory()
if(!docElem.isNull())
{
TQDate date(year,month,1);
- TQString name = protocolId.tqreplace( TQRegExp( TQString::tqfromLatin1( "[./~?*]" ) ), TQString::tqfromLatin1( "-" ) ) +
+ TQString name = protocolId.replace( TQRegExp( TQString::tqfromLatin1( "[./~?*]" ) ), TQString::tqfromLatin1( "-" ) ) +
TQString::tqfromLatin1( "/" ) +
- contactId.tqreplace( TQRegExp( TQString::tqfromLatin1( "[./~?*]" ) ), TQString::tqfromLatin1( "-" ) ) +
+ contactId.replace( TQRegExp( TQString::tqfromLatin1( "[./~?*]" ) ), TQString::tqfromLatin1( "-" ) ) +
date.toString(".yyyyMM");
KSaveFile file( locateLocal( "data", TQString::tqfromLatin1( "kopete/logs/" ) + name+ TQString::tqfromLatin1( ".xml" ) ) );
if( file.status() == 0 )
diff --git a/kopete/plugins/history/historydialog.cpp b/kopete/plugins/history/historydialog.cpp
index b61738ae..e86f08b7 100644
--- a/kopete/plugins/history/historydialog.cpp
+++ b/kopete/plugins/history/historydialog.cpp
@@ -125,7 +125,7 @@ HistoryDialog::HistoryDialog(Kopete::MetaContact *mc, TQWidget* tqparent,
}
if (mMetaContact)
- mMainWidget->contactComboBox->setCurrentItem(mMetaContactList.tqfind(mMetaContact)+1);
+ mMainWidget->contactComboBox->setCurrentItem(mMetaContactList.find(mMetaContact)+1);
mMainWidget->dateSearchLine->setListView(mMainWidget->dateListView);
mMainWidget->dateListView->setSorting(0, 0); //newest-first
@@ -231,7 +231,7 @@ void HistoryDialog::slotLoadDays()
for (unsigned int i=0; idateListView, c2Date, pair.metaContact());
}
mMainWidget->searchProgress->advance(1);
@@ -255,13 +255,13 @@ void HistoryDialog::init(Kopete::Contact *c)
{
// Get year and month list
TQRegExp rx( "\\.(\\d\\d\\d\\d)(\\d\\d)" );
- const TQString contact_in_filename=c->contactId().tqreplace( TQRegExp( TQString::tqfromLatin1( "[./~?*]" ) ), TQString::tqfromLatin1( "-" ) );
+ const TQString contact_in_filename=c->contactId().replace( TQRegExp( TQString::tqfromLatin1( "[./~?*]" ) ), TQString::tqfromLatin1( "-" ) );
TQFileInfo *fi;
// BEGIN check if there are Kopete 0.7.x
TQDir d1(locateLocal("data",TQString("kopete/logs/")+
- c->protocol()->pluginId().tqreplace( TQRegExp(TQString::tqfromLatin1("[./~?*]")),TQString::tqfromLatin1("-"))
+ c->protocol()->pluginId().replace( TQRegExp(TQString::tqfromLatin1("[./~?*]")),TQString::tqfromLatin1("-"))
));
d1.setFilter( TQDir::Files | TQDir::NoSymLinks );
d1.setSorting( TQDir::Name );
@@ -272,7 +272,7 @@ void HistoryDialog::init(Kopete::Contact *c)
TQFileInfoListIterator it1( *list1 );
while ( (fi = it1.current()) != 0 )
{
- if(fi->fileName().tqcontains(contact_in_filename))
+ if(fi->fileName().contains(contact_in_filename))
{
rx.search(fi->fileName());
@@ -288,9 +288,9 @@ void HistoryDialog::init(Kopete::Contact *c)
// END of kopete 0.7.x check
TQString logDir = locateLocal("data",TQString("kopete/logs/")+
- c->protocol()->pluginId().tqreplace( TQRegExp(TQString::tqfromLatin1("[./~?*]")),TQString::tqfromLatin1("-")) +
+ c->protocol()->pluginId().replace( TQRegExp(TQString::tqfromLatin1("[./~?*]")),TQString::tqfromLatin1("-")) +
TQString::tqfromLatin1( "/" ) +
- c->account()->accountId().tqreplace( TQRegExp( TQString::tqfromLatin1( "[./~?*]" ) ), TQString::tqfromLatin1( "-" ) )
+ c->account()->accountId().replace( TQRegExp( TQString::tqfromLatin1( "[./~?*]" ) ), TQString::tqfromLatin1( "-" ) )
);
TQDir d(logDir);
d.setFilter( TQDir::Files | TQDir::NoSymLinks );
@@ -301,7 +301,7 @@ void HistoryDialog::init(Kopete::Contact *c)
TQFileInfoListIterator it( *list );
while ( (fi = it.current()) != 0 )
{
- if(fi->fileName().tqcontains(contact_in_filename))
+ if(fi->fileName().contains(contact_in_filename))
{
rx.search(fi->fileName());
@@ -375,7 +375,7 @@ void HistoryDialog::setMessages(TQValueList msgs)
if (!mMainWidget->searchLine->text().isEmpty())
// If there is a search, then we hightlight the keywords
{
- body = body.tqreplace(mMainWidget->searchLine->text(), "" + mMainWidget->searchLine->text() + "", false);
+ body = body.replace(mMainWidget->searchLine->text(), "" + mMainWidget->searchLine->text() + "", false);
}
resultHTML += "(" + (*it).timestamp().time().toString() + ") "
@@ -482,7 +482,7 @@ void HistoryDialog::slotSearch()
TQDate month(curItem->date().year(),curItem->date().month(),1);
// if we haven't searched the relevant history logs, search them now
- if (!monthsSearched[month].tqcontains(curItem->metaContact()))
+ if (!monthsSearched[month].contains(curItem->metaContact()))
{
monthsSearched[month].push_back(curItem->metaContact());
TQPtrList contacts = curItem->metaContact()->contacts();
@@ -505,12 +505,12 @@ void HistoryDialog::slotSearch()
while(!stream.atEnd())
{
textLine = stream.readLine();
- if (textLine.tqcontains(mMainWidget->searchLine->text(), false))
+ if (textLine.contains(mMainWidget->searchLine->text(), false))
{
if(rx.search(textLine) != -1)
{
// only match message body
- if (rx.cap(2).tqcontains(mMainWidget->searchLine->text()))
+ if (rx.cap(2).contains(mMainWidget->searchLine->text()))
matches[TQDate(curItem->date().year(),curItem->date().month(),rx.cap(1).toInt())].push_back(curItem->metaContact());
}
// this will happen when multiline messages are searched, properly
@@ -525,7 +525,7 @@ void HistoryDialog::slotSearch()
}
// relevant logfiles have been searched now, check if current date matches
- if (matches[curItem->date()].tqcontains(curItem->metaContact()))
+ if (matches[curItem->date()].contains(curItem->metaContact()))
curItem->setVisible(true);
// Next date item
diff --git a/kopete/plugins/history/historylogger.cpp b/kopete/plugins/history/historylogger.cpp
index 714fe966..063ba73d 100644
--- a/kopete/plugins/history/historylogger.cpp
+++ b/kopete/plugins/history/historylogger.cpp
@@ -125,7 +125,7 @@ TQDomDocument HistoryLogger::getDocument(const Kopete::Contact *c, unsigned int
return TQDomDocument();
}
- if(!m_metaContact->contacts().tqcontains(c))
+ if(!m_metaContact->contacts().contains(c))
{
if(contain)
*contain=false;
@@ -133,7 +133,7 @@ TQDomDocument HistoryLogger::getDocument(const Kopete::Contact *c, unsigned int
}
TQMap documents = m_documents[c];
- if (documents.tqcontains(month))
+ if (documents.contains(month))
return documents[month];
@@ -156,7 +156,7 @@ TQDomDocument HistoryLogger::getDocument(const Kopete::Contact *c, const TQDate
return TQDomDocument();
}
- if(!m_metaContact->contacts().tqcontains(c))
+ if(!m_metaContact->contacts().contains(c))
{
if(contain)
*contain=false;
@@ -223,7 +223,7 @@ void HistoryLogger::appendMessage( const Kopete::Message &msg , const Kopete::Co
}
- if(!c || !m_metaContact->contacts().tqcontains(c) )
+ if(!c || !m_metaContact->contacts().contains(c) )
{
/*TQPtrList contacts= m_metaContact->contacts();
TQPtrListIterator it( contacts );
@@ -418,7 +418,7 @@ TQValueList HistoryLogger::readMessages(unsigned int lines,
return messages;
}
- if(c && !m_metaContact->contacts().tqcontains(c) )
+ if(c && !m_metaContact->contacts().contains(c) )
return messages;
if(sens ==0 ) //if no sens are selected, just continue in the previous sens
@@ -473,7 +473,7 @@ TQValueList HistoryLogger::readMessages(unsigned int lines,
// date, this date will bocomes the limit.
TQDomNode n;
- if(m_currentElements.tqcontains(*it))
+ if(m_currentElements.contains(*it))
n=m_currentElements[*it];
else //there is not yet "next message" register, so we will take the first (for the current month)
{
@@ -512,7 +512,7 @@ TQValueList HistoryLogger::readMessages(unsigned int lines,
}
else //we don't have to merge the history. just take the next item in the contact
{
- if(m_currentElements.tqcontains(currentContact))
+ if(m_currentElements.contains(currentContact))
msgElem=m_currentElements[currentContact];
else
{
@@ -572,7 +572,7 @@ TQValueList HistoryLogger::readMessages(unsigned int lines,
if(!m_hideOutgoing || dir != Kopete::Message::Outbound)
{ //parse only if we don't hide it
- if( m_filter.isNull() || ( m_filterRegExp? msgElem.text().tqcontains(TQRegExp(m_filter,m_filterCaseSensitive)) : msgElem.text().tqcontains(m_filter,m_filterCaseSensitive) ))
+ if( m_filter.isNull() || ( m_filterRegExp? msgElem.text().contains(TQRegExp(m_filter,m_filterCaseSensitive)) : msgElem.text().contains(m_filter,m_filterCaseSensitive) ))
{
TQString f=msgElem.attribute("from" );
const Kopete::Contact *from=(f.isNull() || !currentContact) ? 0L : currentContact->account()->contacts()[f];
@@ -663,11 +663,11 @@ TQValueList HistoryLogger::readMessages(unsigned int lines,
TQString HistoryLogger::getFileName(const Kopete::Contact* c, TQDate date)
{
- TQString name = c->protocol()->pluginId().tqreplace( TQRegExp( TQString::tqfromLatin1( "[./~?*]" ) ), TQString::tqfromLatin1( "-" ) ) +
+ TQString name = c->protocol()->pluginId().replace( TQRegExp( TQString::tqfromLatin1( "[./~?*]" ) ), TQString::tqfromLatin1( "-" ) ) +
TQString::tqfromLatin1( "/" ) +
- c->account()->accountId().tqreplace( TQRegExp( TQString::tqfromLatin1( "[./~?*]" ) ), TQString::tqfromLatin1( "-" ) ) +
+ c->account()->accountId().replace( TQRegExp( TQString::tqfromLatin1( "[./~?*]" ) ), TQString::tqfromLatin1( "-" ) ) +
TQString::tqfromLatin1( "/" ) +
- c->contactId().tqreplace( TQRegExp( TQString::tqfromLatin1( "[./~?*]" ) ), TQString::tqfromLatin1( "-" ) ) +
+ c->contactId().replace( TQRegExp( TQString::tqfromLatin1( "[./~?*]" ) ), TQString::tqfromLatin1( "-" ) ) +
date.toString(".yyyyMM");
TQString filename=locateLocal( "data", TQString::tqfromLatin1( "kopete/logs/" ) + name+ TQString::tqfromLatin1( ".xml" ) ) ;
@@ -676,9 +676,9 @@ TQString HistoryLogger::getFileName(const Kopete::Contact* c, TQDate date)
TQFileInfo fi(filename);
if(!fi.exists())
{
- name = c->protocol()->pluginId().tqreplace( TQRegExp( TQString::tqfromLatin1( "[./~?*]" ) ), TQString::tqfromLatin1( "-" ) ) +
+ name = c->protocol()->pluginId().replace( TQRegExp( TQString::tqfromLatin1( "[./~?*]" ) ), TQString::tqfromLatin1( "-" ) ) +
TQString::tqfromLatin1( "/" ) +
- c->contactId().tqreplace( TQRegExp( TQString::tqfromLatin1( "[./~?*]" ) ), TQString::tqfromLatin1( "-" ) ) +
+ c->contactId().replace( TQRegExp( TQString::tqfromLatin1( "[./~?*]" ) ), TQString::tqfromLatin1( "-" ) ) +
date.toString(".yyyyMM");
TQString filename2=locateLocal( "data", TQString::tqfromLatin1( "kopete/logs/" ) + name+ TQString::tqfromLatin1( ".xml" ) ) ;
@@ -702,7 +702,7 @@ unsigned int HistoryLogger::getFirstMonth(const Kopete::Contact *c)
// BEGIN check if there are Kopete 0.7.x
TQDir d1(locateLocal("data",TQString("kopete/logs/")+
- c->protocol()->pluginId().tqreplace( TQRegExp(TQString::tqfromLatin1("[./~?*]")),TQString::tqfromLatin1("-"))
+ c->protocol()->pluginId().replace( TQRegExp(TQString::tqfromLatin1("[./~?*]")),TQString::tqfromLatin1("-"))
));
d1.setFilter( TQDir::Files | TQDir::NoSymLinks );
d1.setSorting( TQDir::Name );
@@ -712,7 +712,7 @@ unsigned int HistoryLogger::getFirstMonth(const Kopete::Contact *c)
while ( (fi = it1.current()) != 0 )
{
- if(fi->fileName().tqcontains(c->contactId().tqreplace( TQRegExp( TQString::tqfromLatin1( "[./~?*]" ) ), TQString::tqfromLatin1( "-" ) )))
+ if(fi->fileName().contains(c->contactId().replace( TQRegExp( TQString::tqfromLatin1( "[./~?*]" ) ), TQString::tqfromLatin1( "-" ) )))
{
rx.search(fi->fileName());
int result = 12*(TQDate::tqcurrentDate().year() - rx.cap(1).toUInt()) +TQDate::tqcurrentDate().month() - rx.cap(2).toUInt();
@@ -730,9 +730,9 @@ unsigned int HistoryLogger::getFirstMonth(const Kopete::Contact *c)
TQDir d(locateLocal("data",TQString("kopete/logs/")+
- c->protocol()->pluginId().tqreplace( TQRegExp(TQString::tqfromLatin1("[./~?*]")),TQString::tqfromLatin1("-")) +
+ c->protocol()->pluginId().replace( TQRegExp(TQString::tqfromLatin1("[./~?*]")),TQString::tqfromLatin1("-")) +
TQString::tqfromLatin1( "/" ) +
- c->account()->accountId().tqreplace( TQRegExp( TQString::tqfromLatin1( "[./~?*]" ) ), TQString::tqfromLatin1( "-" ) )
+ c->account()->accountId().replace( TQRegExp( TQString::tqfromLatin1( "[./~?*]" ) ), TQString::tqfromLatin1( "-" ) )
));
d.setFilter( TQDir::Files | TQDir::NoSymLinks );
@@ -742,7 +742,7 @@ unsigned int HistoryLogger::getFirstMonth(const Kopete::Contact *c)
TQFileInfoListIterator it( *list );
while ( (fi = it.current()) != 0 )
{
- if(fi->fileName().tqcontains(c->contactId().tqreplace( TQRegExp( TQString::tqfromLatin1( "[./~?*]" ) ), TQString::tqfromLatin1( "-" ) )))
+ if(fi->fileName().contains(c->contactId().replace( TQRegExp( TQString::tqfromLatin1( "[./~?*]" ) ), TQString::tqfromLatin1( "-" ) )))
{
rx.search(fi->fileName());
int result = 12*(TQDate::tqcurrentDate().year() - rx.cap(1).toUInt()) +TQDate::tqcurrentDate().month() - rx.cap(2).toUInt();
@@ -838,7 +838,7 @@ TQValueList HistoryLogger::getDaysForMonth(TQDate date)
pos += rxTime.matchedLength();
int day=rxTime.capturedTexts()[1].toInt();
- if ( day !=lastDay && dayList.tqfind(day) == dayList.end()) // avoid duplicates
+ if ( day !=lastDay && dayList.find(day) == dayList.end()) // avoid duplicates
{
dayList.append(rxTime.capturedTexts()[1].toInt());
lastDay=day;
diff --git a/kopete/plugins/history/historyplugin.cpp b/kopete/plugins/history/historyplugin.cpp
index 789b331c..3c83c371 100644
--- a/kopete/plugins/history/historyplugin.cpp
+++ b/kopete/plugins/history/historyplugin.cpp
@@ -76,7 +76,7 @@ HistoryPlugin::HistoryPlugin( TQObject *tqparent, const char *name, const TQStri
TQValueList sessions = Kopete::ChatSessionManager::self()->sessions();
for (TQValueListIterator it= sessions.begin(); it!=sessions.end() ; ++it)
{
- if(!m_loggers.tqcontains(*it))
+ if(!m_loggers.contains(*it))
{
m_loggers.insert(*it, new HistoryGUIClient( *it ) );
connect( *it, TQT_SIGNAL(closing(Kopete::ChatSession*)),
@@ -102,7 +102,7 @@ void HistoryPlugin::messageDisplayed(const Kopete::Message &m)
if(m.direction()==Kopete::Message::Internal || !m.manager())
return;
- if(!m_loggers.tqcontains(m.manager()))
+ if(!m_loggers.contains(m.manager()))
{
m_loggers.insert(m.manager() , new HistoryGUIClient( m.manager() ) );
connect(m.manager(), TQT_SIGNAL(closing(Kopete::ChatSession*)),
@@ -149,7 +149,7 @@ void HistoryPlugin::slotViewCreated( KopeteView* v )
if(!m_currentChatSession)
return; //i am sorry
- if(!m_loggers.tqcontains(m_currentChatSession))
+ if(!m_loggers.contains(m_currentChatSession))
{
m_loggers.insert(m_currentChatSession , new HistoryGUIClient( m_currentChatSession ) );
connect( m_currentChatSession, TQT_SIGNAL(closing(Kopete::ChatSession*)),
diff --git a/kopete/plugins/latex/latexguiclient.cpp b/kopete/plugins/latex/latexguiclient.cpp
index 154a176a..19fbe54b 100644
--- a/kopete/plugins/latex/latexguiclient.cpp
+++ b/kopete/plugins/latex/latexguiclient.cpp
@@ -57,7 +57,7 @@ void LatexGUIClient::slotPreview()
Kopete::Message msg = m_manager->view()->currentMessage();
TQString messageText = msg.plainBody();
- if(!messageText.tqcontains("$$")) //we haven't found any latex strings
+ if(!messageText.contains("$$")) //we haven't found any latex strings
{
KMessageBox::sorry(reinterpret_cast(m_manager->view()) , i18n("There are no latex in the message you are typing. The latex formula must be included between $$ and $$ "), i18n("No Latex Formula") );
return;
diff --git a/kopete/plugins/latex/latexplugin.cpp b/kopete/plugins/latex/latexplugin.cpp
index 61fab8a6..75ccdaf9 100644
--- a/kopete/plugins/latex/latexplugin.cpp
+++ b/kopete/plugins/latex/latexplugin.cpp
@@ -101,7 +101,7 @@ void LatexPlugin::slotMessageAboutToShow( Kopete::Message& msg )
}
TQString messageText = msg.plainBody();
- if( !messageText.tqcontains("$$"))
+ if( !messageText.contains("$$"))
return;
//kdDebug() << k_funcinfo << " Using converter: " << m_convScript << endl;
@@ -132,7 +132,7 @@ void LatexPlugin::slotMessageAboutToShow( Kopete::Message& msg )
if(!securityCheck(formul))
continue;
- TQString fileName=handleLatex(formul.tqreplace("$$",""));
+ TQString fileName=handleLatex(formul.replace("$$",""));
// get the image and encode it with base64
#if ENCODED_IMAGE_MODE
@@ -167,8 +167,8 @@ void LatexPlugin::slotMessageAboutToShow( Kopete::Message& msg )
continue;
imagePxWidth = theImage.width();
imagePxHeight = theImage.height();
- TQString escapedLATEX=TQStyleSheet::escape(it.key()).tqreplace("\"","""); //we need the escape quotes because that string will be in a title="" argument, but not the \n
- messageText.tqreplace(Kopete::Message::escape(it.key()), " ");
+ TQString escapedLATEX=TQStyleSheet::escape(it.key()).replace("\"","""); //we need the escape quotes because that string will be in a title="" argument, but not the \n
+ messageText.replace(Kopete::Message::escape(it.key()), " ");
}
msg.setBody( messageText, Kopete::Message::RichText );
@@ -187,7 +187,7 @@ void LatexPlugin::slotMessageAboutToSend( Kopete::Message& msg)
return;
TQString messageText = msg.plainBody();
- if( !messageText.tqcontains("$$"))
+ if( !messageText.contains("$$"))
return;
/* if( msg.from()->protocol()->pluginId()!="MSNProtocol" )
return;*/
@@ -206,7 +206,7 @@ void LatexPlugin::slotMessageAboutToSend( Kopete::Message& msg)
if(!url.isNull())
{
- TQString escapedLATEX= TQStyleSheet::escape(messageText).tqreplace("\"",""");
+ TQString escapedLATEX= TQStyleSheet::escape(messageText).replace("\"",""");
TQString messageText="";
msg.setBody( messageText, Kopete::Message::RichText );
}
@@ -241,7 +241,7 @@ TQString LatexPlugin::handleLatex(const TQString &latexFormula)
bool LatexPlugin::securityCheck(const TQString &latexFormula)
{
- return !latexFormula.tqcontains(TQRegExp("\\\\(def|let|futurelet|newcommand|renewcomment|else|fi|write|input|include"
+ return !latexFormula.contains(TQRegExp("\\\\(def|let|futurelet|newcommand|renewcomment|else|fi|write|input|include"
"|chardef|catcode|makeatletter|noexpand|toksdef|every|errhelp|errorstopmode|scrollmode|nonstopmode|batchmode"
"|read|csname|newhelp|relax|afterground|afterassignment|expandafter|noexpand|special|command|loop|repeat|toks"
"|output|line|mathcode|name|item|section|mbox|DeclareRobustCommand)[^a-zA-Z]"));
diff --git a/kopete/plugins/motionautoaway/COPYING.motion b/kopete/plugins/motionautoaway/COPYING.motion
index 0a56ad07..0b84a43f 100644
--- a/kopete/plugins/motionautoaway/COPYING.motion
+++ b/kopete/plugins/motionautoaway/COPYING.motion
@@ -59,7 +59,7 @@ modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
- 0. This License applies to any program or other work which tqcontains
+ 0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
@@ -154,7 +154,7 @@ Sections 1 and 2 above provided that you also do one of the following:
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
-code means all the source code for all modules it tqcontains, plus any
+code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
diff --git a/kopete/plugins/netmeeting/netmeetinginvitation.cpp b/kopete/plugins/netmeeting/netmeetinginvitation.cpp
index 73e08d4a..3f068c06 100644
--- a/kopete/plugins/netmeeting/netmeetinginvitation.cpp
+++ b/kopete/plugins/netmeeting/netmeetinginvitation.cpp
@@ -59,7 +59,7 @@ void NetMeetingInvitation::parseInvitation(const TQString& msg)
TQRegExp rx("Invitation-Command: ([A-Z]*)");
rx.search(msg);
TQString command=rx.cap(1);
- if( msg.tqcontains("Invitation-Command: INVITE") )
+ if( msg.contains("Invitation-Command: INVITE") )
{
MSNInvitation::parseInvitation(msg); //for the cookie
@@ -98,7 +98,7 @@ void NetMeetingInvitation::parseInvitation(const TQString& msg)
}
}
}
- else if( msg.tqcontains("Invitation-Command: ACCEPT") )
+ else if( msg.contains("Invitation-Command: ACCEPT") )
{
if( ! incoming() )
{
diff --git a/kopete/plugins/netmeeting/netmeetingplugin.cpp b/kopete/plugins/netmeeting/netmeetingplugin.cpp
index 715f26e6..3cdb4b21 100644
--- a/kopete/plugins/netmeeting/netmeetingplugin.cpp
+++ b/kopete/plugins/netmeeting/netmeetingplugin.cpp
@@ -81,7 +81,7 @@ void NetMeetingPlugin::slotNewKMM(Kopete::ChatSession *KMM)
void NetMeetingPlugin::slotInvitation(MSNInvitation*& invitation, const TQString &bodyMSG , long unsigned int /*cookie*/ , MSNChatSession* msnMM , MSNContact* c )
{
- if(!invitation && bodyMSG.tqcontains(NetMeetingInvitation::applicationID()))
+ if(!invitation && bodyMSG.contains(NetMeetingInvitation::applicationID()))
{
invitation=new NetMeetingInvitation(true,c,msnMM);
invitation->parseInvitation(bodyMSG);
diff --git a/kopete/plugins/nowlistening/nlnoatun.cpp b/kopete/plugins/nowlistening/nlnoatun.cpp
index 4f414a11..e563eb0e 100644
--- a/kopete/plugins/nowlistening/nlnoatun.cpp
+++ b/kopete/plugins/nowlistening/nlnoatun.cpp
@@ -39,7 +39,7 @@ void NLNoatun::update()
m_playing = false;
TQString newTrack;
// see if it's registered with DCOP
- TQCString appname = tqfind();
+ TQCString appname = find();
if ( !appname.isEmpty() )
{
// see if it's playing
@@ -97,7 +97,7 @@ void NLNoatun::update()
kdDebug( 14307 ) << "NLNoatun::update() - noatun not found" << endl;
}
-TQCString NLNoatun::tqfind() const
+TQCString NLNoatun::find() const
{
TQCString app = "noatun";
if ( !m_client->isApplicationRegistered( app ) )
diff --git a/kopete/plugins/nowlistening/nlnoatun.h b/kopete/plugins/nowlistening/nlnoatun.h
index 30956611..85e1aaac 100644
--- a/kopete/plugins/nowlistening/nlnoatun.h
+++ b/kopete/plugins/nowlistening/nlnoatun.h
@@ -32,7 +32,7 @@ class NLNoatun : public NLMediaPlayer
NLNoatun( DCOPClient *client );
virtual void update();
protected:
- TQCString tqfind() const;
+ TQCString find() const;
TQString currentProperty( TQCString appname, TQString property ) const;
DCOPClient *m_client;
};
diff --git a/kopete/plugins/nowlistening/nowlisteningplugin.cpp b/kopete/plugins/nowlistening/nowlisteningplugin.cpp
index ca9c9316..b72df2a7 100644
--- a/kopete/plugins/nowlistening/nowlisteningplugin.cpp
+++ b/kopete/plugins/nowlistening/nowlisteningplugin.cpp
@@ -205,7 +205,7 @@ void NowListeningPlugin::slotOutgoingMessage(Kopete::Message& msg)
for( Kopete::Contact *c = dest.first() ; c ; c = dest.next() )
{
const TQString& cId = c->contactId();
- if( 0 == d->m_musicSentTo.tqcontains( cId ) )
+ if( 0 == d->m_musicSentTo.contains( cId ) )
{
mustSendAnyway = true;
@@ -318,7 +318,7 @@ void NowListeningPlugin::slotAdvertCurrentMusic()
{
if(statusSong.search(advert) != -1)
{
- advert = advert.tqreplace(statusSong, TQString(" (%1)").tqarg(mediaPlayerAdvert(false)) );
+ advert = advert.replace(statusSong, TQString(" (%1)").tqarg(mediaPlayerAdvert(false)) );
}
else
{
@@ -327,7 +327,7 @@ void NowListeningPlugin::slotAdvertCurrentMusic()
}
else
{
- advert = advert.tqreplace(statusSong, "");
+ advert = advert.replace(statusSong, "");
}
}
else
@@ -432,7 +432,7 @@ TQString NowListeningPlugin::substDepthFirst( NLMediaPlayer *player,
// recursively replace contents of matching ()
TQString substitution = substDepthFirst( player,
in.mid( i + 1, j - i - 1), true ) ;
- in.tqreplace ( i, j - i + 1, substitution );
+ in.replace ( i, j - i + 1, substitution );
// perform substitution and return the result
i = i + substitution.length() - 1;
break;
@@ -446,34 +446,34 @@ TQString NowListeningPlugin::substDepthFirst( NLMediaPlayer *player,
// no () found, perform substitution!
// get each string (to) to substitute for (from)
bool done = false;
- if ( in.tqcontains ( "%track" ) )
+ if ( in.contains ( "%track" ) )
{
if ( track.isEmpty() )
track = i18n("Unknown track");
- in.tqreplace( "%track", track );
+ in.replace( "%track", track );
done = true;
}
- if ( in.tqcontains ( "%artist" ) && !artist.isEmpty() )
+ if ( in.contains ( "%artist" ) && !artist.isEmpty() )
{
if ( artist.isEmpty() )
artist = i18n("Unknown artist");
- in.tqreplace( "%artist", artist );
+ in.replace( "%artist", artist );
done = true;
}
- if ( in.tqcontains ( "%album" ) && !album.isEmpty() )
+ if ( in.contains ( "%album" ) && !album.isEmpty() )
{
if ( album.isEmpty() )
album = i18n("Unknown album");
- in.tqreplace( "%album", album );
+ in.replace( "%album", album );
done = true;
}
- if ( in.tqcontains ( "%player" ) && !playerName.isEmpty() )
+ if ( in.contains ( "%player" ) && !playerName.isEmpty() )
{
if ( playerName.isEmpty() )
playerName = i18n("Unknown player");
- in.tqreplace( "%player", playerName );
+ in.replace( "%player", playerName );
done = true;
}
// make whether we return anything dependent on whether we
diff --git a/kopete/plugins/smpppdcs/detectornetstat.cpp b/kopete/plugins/smpppdcs/detectornetstat.cpp
index a08f2c4f..ca800e7f 100644
--- a/kopete/plugins/smpppdcs/detectornetstat.cpp
+++ b/kopete/plugins/smpppdcs/detectornetstat.cpp
@@ -66,7 +66,7 @@ void DetectorNetstat::slotProcessStdout(KProcess *, char *buffer, int buflen) {
void DetectorNetstat::slotProcessExited(KProcess *process) {
kdDebug(14312) << k_funcinfo << m_buffer << endl;
if(process == m_process) {
- m_connector->setConnectedtqStatus(m_buffer.tqcontains("default"));
+ m_connector->setConnectedtqStatus(m_buffer.contains("default"));
m_buffer = TQString();
delete m_process;
m_process = 0L;
diff --git a/kopete/plugins/smpppdcs/smpppdcsplugin.cpp b/kopete/plugins/smpppdcs/smpppdcsplugin.cpp
index 14f133c1..01aac790 100644
--- a/kopete/plugins/smpppdcs/smpppdcsplugin.cpp
+++ b/kopete/plugins/smpppdcs/smpppdcsplugin.cpp
@@ -153,7 +153,7 @@ void SMPPPDCSPlugin::connectAllowed() {
}
#endif
- if(!list.tqcontains(it.current()->protocol()->pluginId() + "_" + it.current()->
+ if(!list.contains(it.current()->protocol()->pluginId() + "_" + it.current()->
accountId())) {
it.current()->connect();
}
@@ -178,7 +178,7 @@ void SMPPPDCSPlugin::disconnectAllowed() {
}
#endif
- if(!list.tqcontains(it.current()->protocol()->pluginId() + "_" + it.current()->accountId())) {
+ if(!list.contains(it.current()->protocol()->pluginId() + "_" + it.current()->accountId())) {
it.current()->disconnect();
}
}
diff --git a/kopete/plugins/smpppdcs/smpppdcspreferences.cpp b/kopete/plugins/smpppdcs/smpppdcspreferences.cpp
index de950965..944779f1 100644
--- a/kopete/plugins/smpppdcs/smpppdcspreferences.cpp
+++ b/kopete/plugins/smpppdcs/smpppdcspreferences.cpp
@@ -134,7 +134,7 @@ void SMPPPDCSPreferences::load()
while(it.current()) {
TQCheckListItem * cli = dynamic_cast(it.current());
if(rex.search(cli->text(0)) > -1) {
- bool isOn = list.tqcontains(rex.cap(2) + "Protocol_" + rex.cap(1));
+ bool isOn = list.contains(rex.cap(2) + "Protocol_" + rex.cap(1));
// m_accountMapOld[cli->text(0)].m_on = isOn;
m_accountMapCur[cli->text(0)].m_on = isOn;
cli->setOn(isOn);
diff --git a/kopete/plugins/statistics/statisticsdb.cpp b/kopete/plugins/statistics/statisticsdb.cpp
index 7d4cbe76..8f25623e 100644
--- a/kopete/plugins/statistics/statisticsdb.cpp
+++ b/kopete/plugins/statistics/statisticsdb.cpp
@@ -68,7 +68,7 @@ StatisticsDB::StatisticsDB()
// Creates the tables if they do not exist.
TQStringList result = query("SELECT name FROM sqlite_master WHERE type='table'");
- if (!result.tqcontains("contacts"))
+ if (!result.contains("contacts"))
{
query(TQString("CREATE TABLE contacts "
"(id INTEGER PRIMARY KEY,"
@@ -77,7 +77,7 @@ StatisticsDB::StatisticsDB()
");"));
}
- if (!result.tqcontains("contactstatus"))
+ if (!result.contains("contactstatus"))
{
kdDebug() << "[Statistics] Database empty"<< endl;
query(TQString("CREATE TABLE contactstatus "
@@ -89,7 +89,7 @@ StatisticsDB::StatisticsDB()
");"));
}
- if (!result.tqcontains("commonstats"))
+ if (!result.contains("commonstats"))
{
// To store things like the contact answer time etc.
query(TQString("CREATE TABLE commonstats"
@@ -102,7 +102,7 @@ StatisticsDB::StatisticsDB()
}
/// @fixme This is not used anywhere
- if (!result.tqcontains("statsgroup"))
+ if (!result.contains("statsgroup"))
{
query(TQString("CREATE TABLE statsgroup"
"(id INTEGER PRIMARY KEY,"
diff --git a/kopete/plugins/statistics/statisticsplugin.cpp b/kopete/plugins/statistics/statisticsplugin.cpp
index 09015d7a..1d37768f 100644
--- a/kopete/plugins/statistics/statisticsplugin.cpp
+++ b/kopete/plugins/statistics/statisticsplugin.cpp
@@ -101,7 +101,7 @@ StatisticsPlugin::~StatisticsPlugin()
void StatisticsPlugin::slotAboutToReceive(Kopete::Message& m)
{
- if ( statisticsMetaContactMap.tqcontains(m.from()->metaContact()) )
+ if ( statisticsMetaContactMap.contains(m.from()->metaContact()) )
statisticsMetaContactMap[m.from()->metaContact()]->newMessageReceived(m);
}
@@ -118,7 +118,7 @@ void StatisticsPlugin::slotViewClosed(Kopete::ChatSession* session)
for (; it.current(); ++it)
{
// If this contact is not in other chat sessions
- if (!it.current()->manager() && statisticsMetaContactMap.tqcontains(it.current()->metaContact()))
+ if (!it.current()->manager() && statisticsMetaContactMap.contains(it.current()->metaContact()))
statisticsMetaContactMap[it.current()->metaContact()]->setIsChatWindowOpen(false);
}
}
@@ -129,7 +129,7 @@ void StatisticsPlugin::slotViewStatistics()
kdDebug() << k_funcinfo << "statistics - dialog :"+ mc->displayName() << endl;
- if ( mc && statisticsMetaContactMap.tqcontains(mc) )
+ if ( mc && statisticsMetaContactMap.contains(mc) )
{
(new StatisticsDialog(statisticsMetaContactMap[mc], db()))->show();
}
@@ -137,7 +137,7 @@ void StatisticsPlugin::slotViewStatistics()
void StatisticsPlugin::slotOnlineStatusChanged(Kopete::MetaContact *mc, Kopete::OnlineStatus::StatusType status)
{
- if ( statisticsMetaContactMap.tqcontains(mc) )
+ if ( statisticsMetaContactMap.contains(mc) )
statisticsMetaContactMap[mc]->onlineStatusChanged(status);
}
@@ -164,7 +164,7 @@ void StatisticsPlugin::slotMetaContactAdded(Kopete::MetaContact *mc)
void StatisticsPlugin::slotMetaContactRemoved(Kopete::MetaContact *mc)
{
- if (statisticsMetaContactMap.tqcontains(mc))
+ if (statisticsMetaContactMap.contains(mc))
{
StatisticsContact *sc = statisticsMetaContactMap[mc];
statisticsMetaContactMap.remove(mc);
@@ -175,7 +175,7 @@ void StatisticsPlugin::slotMetaContactRemoved(Kopete::MetaContact *mc)
void StatisticsPlugin::slotContactAdded( Kopete::Contact *c)
{
- if (statisticsMetaContactMap.tqcontains(c->metaContact()))
+ if (statisticsMetaContactMap.contains(c->metaContact()))
{
StatisticsContact *sc = statisticsMetaContactMap[c->metaContact()];
sc->contactAdded(c);
@@ -185,7 +185,7 @@ void StatisticsPlugin::slotContactAdded( Kopete::Contact *c)
void StatisticsPlugin::slotContactRemoved( Kopete::Contact *c)
{
- if (statisticsMetaContactMap.tqcontains(c->metaContact()))
+ if (statisticsMetaContactMap.contains(c->metaContact()))
statisticsMetaContactMap[c->metaContact()]->contactRemoved(c);
statisticsContactMap.remove(c->contactId());
@@ -195,7 +195,7 @@ void StatisticsPlugin::dcopStatisticsDialog(TQString id)
{
kdDebug() << k_funcinfo << "statistics - DCOP dialog :" << id << endl;
- if (statisticsContactMap.tqcontains(id))
+ if (statisticsContactMap.contains(id))
{
(new StatisticsDialog(statisticsContactMap[id], db()))->show();
}
@@ -241,7 +241,7 @@ bool StatisticsPlugin::dcopWastqStatus(TQString id, TQDateTime dateTime, Kopete:
{
kdDebug() << k_funcinfo << "statistics - DCOP wasOnline :" << id << endl;
- if (dateTime.isValid() && statisticsContactMap.tqcontains(id))
+ if (dateTime.isValid() && statisticsContactMap.contains(id))
{
return statisticsContactMap[id]->wastqStatus(dateTime, status);
}
@@ -261,7 +261,7 @@ TQString StatisticsPlugin::dcoptqStatus(TQString id, TQString dateTime)
{
TQDateTime dt = TQDateTime::fromString(dateTime);
- if (dt.isValid() && statisticsContactMap.tqcontains(id))
+ if (dt.isValid() && statisticsContactMap.contains(id))
{
return statisticsContactMap[id]->statusAt(dt);
}
@@ -273,7 +273,7 @@ TQString StatisticsPlugin::dcopMaintqStatus(TQString id, int timeStamp)
{
TQDateTime dt;
dt.setTime_t(timeStamp);
- if (dt.isValid() && statisticsContactMap.tqcontains(id))
+ if (dt.isValid() && statisticsContactMap.contains(id))
{
return statisticsContactMap[id]->mainStatusDate(dt.date());
}
diff --git a/kopete/plugins/translator/translatorplugin.cpp b/kopete/plugins/translator/translatorplugin.cpp
index 175cb9d8..4d6c2d88 100644
--- a/kopete/plugins/translator/translatorplugin.cpp
+++ b/kopete/plugins/translator/translatorplugin.cpp
@@ -241,7 +241,7 @@ TQString TranslatorPlugin::translateMessage( const TQString &msg, const TQString
}
// We search for src_dst
- if(! m_languages->supported( m_service ).tqcontains( from + "_" + to ) )
+ if(! m_languages->supported( m_service ).contains( from + "_" + to ) )
{
kdDebug( 14308 ) << k_funcinfo << from << "_" << to << " is not supported by service " << m_service << endl;
return TQString();
diff --git a/kopete/protocols/gadu/gaduaway.cpp b/kopete/protocols/gadu/gaduaway.cpp
index e1eb5487..e100af2e 100644
--- a/kopete/protocols/gadu/gaduaway.cpp
+++ b/kopete/protocols/gadu/gaduaway.cpp
@@ -51,7 +51,7 @@ GaduAway::GaduAway( GaduAccount* account, TQWidget* tqparent, const char* name )
s = GaduProtocol::protocol()->statusToWithDescription( ks );
if ( s == GG_STATUS_NOT_AVAIL_DESCR ) {
- ui_->statusGroup_->tqfind( GG_STATUS_NOT_AVAIL_DESCR )->setDisabled( TRUE );
+ ui_->statusGroup_->find( GG_STATUS_NOT_AVAIL_DESCR )->setDisabled( TRUE );
ui_->statusGroup_->setButton( GG_STATUS_AVAIL_DESCR );
}
else {
diff --git a/kopete/protocols/gadu/gaducontactlist.cpp b/kopete/protocols/gadu/gaducontactlist.cpp
index 9c003751..67050bce 100644
--- a/kopete/protocols/gadu/gaducontactlist.cpp
+++ b/kopete/protocols/gadu/gaducontactlist.cpp
@@ -45,7 +45,7 @@ GaduContactsList::GaduContactsList( TQString sList )
return;
}
- if ( ( !sList.tqcontains( '\n' ) && sList.tqcontains( ';' ) ) || !sList.tqcontains( ';' ) ) {
+ if ( ( !sList.contains( '\n' ) && sList.contains( ';' ) ) || !sList.contains( ';' ) ) {
return;
}
diff --git a/kopete/protocols/gadu/gadudcc.cpp b/kopete/protocols/gadu/gadudcc.cpp
index 6e5b416a..b44ba883 100644
--- a/kopete/protocols/gadu/gadudcc.cpp
+++ b/kopete/protocols/gadu/gadudcc.cpp
@@ -78,7 +78,7 @@ GaduDCC::unregisterAccount( unsigned int id )
return false;
}
- if ( !accounts.tqcontains( id ) ) {
+ if ( !accounts.contains( id ) ) {
kdDebug(14100) << "attempt to unregister not registered account" << endl;
initmutex.unlock();
return false;
@@ -118,7 +118,7 @@ GaduDCC::registerAccount( GaduAccount* account )
aid = account->accountId().toInt();
- if ( accounts.tqcontains( aid ) ) {
+ if ( accounts.contains( aid ) ) {
kdDebug(14100) << "attempt to register already registered account" << endl;
initmutex.unlock();
return false;
@@ -168,7 +168,7 @@ GaduDCC::slotIncoming( gg_dcc* incoming, bool& handled )
GaduDCC::~GaduDCC()
{
- if ( accounts.tqcontains( accountId ) ) {
+ if ( accounts.contains( accountId ) ) {
kdDebug( 14100 ) << "unregister account " << accountId << " in destructor " << endl;
unregisterAccount( accountId );
}
diff --git a/kopete/protocols/gadu/gadudcctransaction.cpp b/kopete/protocols/gadu/gadudcctransaction.cpp
index f152b942..e95f80d1 100644
--- a/kopete/protocols/gadu/gadudcctransaction.cpp
+++ b/kopete/protocols/gadu/gadudcctransaction.cpp
@@ -384,7 +384,7 @@ GaduDCCTransaction::watcher() {
return;
break;
case GG_EVENT_DCC_NEED_FILE_INFO:
- if (gaduDCC_->requests.tqcontains(dccSock_->peer_uin)) {
+ if (gaduDCC_->requests.contains(dccSock_->peer_uin)) {
TQString filePath = gaduDCC_->requests[dccSock_->peer_uin];
kdDebug() << "Callback request found. Sending " << filePath << endl;
gaduDCC_->requests.remove(dccSock_->peer_uin);
diff --git a/kopete/protocols/gadu/gadurichtextformat.cpp b/kopete/protocols/gadu/gadurichtextformat.cpp
index 9e46b967..9dcdbc21 100644
--- a/kopete/protocols/gadu/gadurichtextformat.cpp
+++ b/kopete/protocols/gadu/gadurichtextformat.cpp
@@ -150,7 +150,7 @@ GaduRichTextFormat::convertToGaduMessage( const Kopete::Message& message )
output->rtf.resize(0);
// test first if there is any HTML formating in it
- if( htmlString.tqfind( TQString::tqfromLatin1(" -1 ) {
+ if( htmlString.find( TQString::tqfromLatin1(" -1 ) {
TQRegExp findTags( TQString::tqfromLatin1("(.*)") );
findTags.setMinimal( true );
int pos = 0;
@@ -199,7 +199,7 @@ GaduRichTextFormat::convertToGaduMessage( const Kopete::Message& message )
}
TQString rep = TQString("%2" ).tqarg( styleHTML ).tqarg( replacement );
- htmlString.tqreplace( findTags.pos( 0 ), rep.length(), replacement );
+ htmlString.replace( findTags.pos( 0 ), rep.length(), replacement );
replacement = unescapeGaduMessage( replacement );
output->message += replacement;
@@ -245,7 +245,7 @@ GaduRichTextFormat::unescapeGaduMessage( TQString& ns )
{
TQString s;
s = Kopete::Message::unescape( ns );
- s.tqreplace( TQString::fromAscii( "\n" ), TQString::fromAscii( "\r\n" ) );
+ s.replace( TQString::fromAscii( "\n" ), TQString::fromAscii( "\r\n" ) );
return s;
}
@@ -282,10 +282,10 @@ GaduRichTextFormat::insertRtf( uint position)
TQString
GaduRichTextFormat::escapeBody( TQString& input )
{
- input.tqreplace( '<', TQString::tqfromLatin1("<") );
- input.tqreplace( '>', TQString::tqfromLatin1(">") );
- input.tqreplace( '\n', TQString::tqfromLatin1( " " ) );
- input.tqreplace( '\t', TQString::tqfromLatin1( " " ) );
- input.tqreplace( TQRegExp( TQString::tqfromLatin1( "\\s\\s" ) ), TQString::tqfromLatin1( " " ) );
+ input.replace( '<', TQString::tqfromLatin1("<") );
+ input.replace( '>', TQString::tqfromLatin1(">") );
+ input.replace( '\n', TQString::tqfromLatin1( " " ) );
+ input.replace( '\t', TQString::tqfromLatin1( " " ) );
+ input.replace( TQRegExp( TQString::tqfromLatin1( "\\s\\s" ) ), TQString::tqfromLatin1( " " ) );
return input;
}
diff --git a/kopete/protocols/gadu/gadusession.cpp b/kopete/protocols/gadu/gadusession.cpp
index f7fe5970..6490a1e3 100644
--- a/kopete/protocols/gadu/gadusession.cpp
+++ b/kopete/protocols/gadu/gadusession.cpp
@@ -265,7 +265,7 @@ GaduSession::sendMessage( uin_t recipient, const Kopete::Message& msg, int msgCl
}
else {
sendMsg = msg.plainBody();
- sendMsg.tqreplace( TQString::fromAscii( "\n" ), TQString::fromAscii( "\r\n" ) );
+ sendMsg.replace( TQString::fromAscii( "\n" ), TQString::fromAscii( "\r\n" ) );
cpMsg = textcodec->fromUnicode( sendMsg );
return gg_send_message( session_, msgClass, recipient, (const unsigned char *)cpMsg.data() );
diff --git a/kopete/protocols/groupwise/gwaccount.cpp b/kopete/protocols/groupwise/gwaccount.cpp
index ddcf1918..f034cea7 100644
--- a/kopete/protocols/groupwise/gwaccount.cpp
+++ b/kopete/protocols/groupwise/gwaccount.cpp
@@ -1059,7 +1059,7 @@ void GroupWiseAccount::receivetqStatus( const TQString & contactId, TQ_UINT16 st
c->setProperty( protocol()->propAwayMessage, awayMessage );
}
else
- kdDebug( GROUPWISE_DEBUG_GLOBAL ) << " couldn't tqfind " << contactId << endl;
+ kdDebug( GROUPWISE_DEBUG_GLOBAL ) << " couldn't find " << contactId << endl;
}
void GroupWiseAccount::changeOurtqStatus( GroupWise::tqStatus status, const TQString & awayMessage, const TQString & autoReply )
@@ -1377,7 +1377,7 @@ void GroupWiseAccount::slotLeavingConference( GroupWiseChatSession * sess )
if( isConnected () )
m_client->leaveConference( sess->guid() );
m_chatSessions.remove( sess );
- kdDebug( GROUPWISE_DEBUG_GLOBAL ) << k_funcinfo << "m_chatSessions now tqcontains:" << m_chatSessions.count() << " managers" << endl;
+ kdDebug( GROUPWISE_DEBUG_GLOBAL ) << k_funcinfo << "m_chatSessions now contains:" << m_chatSessions.count() << " managers" << endl;
Kopete::ContactPtrList members = sess->members();
for ( Kopete::Contact * contact = members.first(); contact; contact = members.next() )
{
diff --git a/kopete/protocols/groupwise/gwcontact.cpp b/kopete/protocols/groupwise/gwcontact.cpp
index 0dd78a71..06ac510f 100644
--- a/kopete/protocols/groupwise/gwcontact.cpp
+++ b/kopete/protocols/groupwise/gwcontact.cpp
@@ -52,7 +52,7 @@ GroupWiseContact::GroupWiseContact( Kopete::Account* account, const TQString &dn
: Kopete::Contact( account, GroupWiseProtocol::dnToDotted( dn ), tqparent ), m_objectId( objectId ), m_parentId( parentId ),
m_sequence( sequence ), m_actionBlock( 0 ), m_archiving( false ), m_deleting( false ), m_messageReceivedOffline( false )
{
- if ( dn.tqfind( '=' ) != -1 )
+ if ( dn.find( '=' ) != -1 )
{
m_dn = dn;
}
@@ -96,17 +96,17 @@ void GroupWiseContact::updateDetails( const ContactDetails & details )
TQMap::Iterator it;
// work phone number
- if ( ( it = m_serverProperties.tqfind( "telephoneNumber" ) )
+ if ( ( it = m_serverProperties.find( "telephoneNumber" ) )
!= m_serverProperties.end() )
setProperty( protocol()->propPhoneWork, it.data() );
// mobile phone number
- if ( ( it = m_serverProperties.tqfind( "mobile" ) )
+ if ( ( it = m_serverProperties.find( "mobile" ) )
!= m_serverProperties.end() )
setProperty( protocol()->propPhoneMobile, it.data() );
// email
- if ( ( it = m_serverProperties.tqfind( "Internet EMail Address" ) )
+ if ( ( it = m_serverProperties.find( "Internet EMail Address" ) )
!= m_serverProperties.end() )
setProperty( protocol()->propEmail, it.data() );
diff --git a/kopete/protocols/groupwise/gwcontactlist.cpp b/kopete/protocols/groupwise/gwcontactlist.cpp
index 03e66f45..306a457c 100644
--- a/kopete/protocols/groupwise/gwcontactlist.cpp
+++ b/kopete/protocols/groupwise/gwcontactlist.cpp
@@ -199,7 +199,7 @@ void GWFolder::dump( unsigned int depth )
{
TQString s;
s.fill( ' ', ++depth * 2 );
- kdDebug( GROUPWISE_DEBUG_GLOBAL ) << s <<"Folder " << displayName << " id: " << id << " tqcontains: " << endl;
+ kdDebug( GROUPWISE_DEBUG_GLOBAL ) << s <<"Folder " << displayName << " id: " << id << " contains: " << endl;
const TQObjectList l = childrenListObject();
if ( !l.isEmpty() )
{
diff --git a/kopete/protocols/groupwise/gwmessagemanager.cpp b/kopete/protocols/groupwise/gwmessagemanager.cpp
index c45371b9..a9f0c816 100644
--- a/kopete/protocols/groupwise/gwmessagemanager.cpp
+++ b/kopete/protocols/groupwise/gwmessagemanager.cpp
@@ -307,7 +307,7 @@ void GroupWiseChatSession::slotActionInviteAboutToShow()
TQDictIterator it( account()->contacts() );
for( ; it.current(); ++it )
{
- if( !members().tqcontains( it.current() ) && it.current()->isOnline() && it.current() != myself() )
+ if( !members().contains( it.current() ) && it.current()->isOnline() && it.current() != myself() )
{
KAction *a=new KopeteContactAction( it.current(), this,
TQT_SLOT( slotInviteContact( Kopete::Contact * ) ), m_actionInvite );
diff --git a/kopete/protocols/groupwise/gwprotocol.cpp b/kopete/protocols/groupwise/gwprotocol.cpp
index 4abdab9f..0a9e09ee 100644
--- a/kopete/protocols/groupwise/gwprotocol.cpp
+++ b/kopete/protocols/groupwise/gwprotocol.cpp
@@ -264,7 +264,7 @@ TQString GroupWiseProtocol::rtfizeText( const TQString & plain )
TQString GroupWiseProtocol::dnToDotted( const TQString & dn )
{
TQRegExp rx("[a-zA-Z]*=(.*)$", false );
- if( !dn.tqfind( '=' ) ) // if it's not a DN, return it unprocessed
+ if( !dn.find( '=' ) ) // if it's not a DN, return it unprocessed
return dn;
// split the dn into elements
diff --git a/kopete/protocols/groupwise/libgroupwise/chatroommanager.cpp b/kopete/protocols/groupwise/libgroupwise/chatroommanager.cpp
index 87333c41..d285b8af 100644
--- a/kopete/protocols/groupwise/libgroupwise/chatroommanager.cpp
+++ b/kopete/protocols/groupwise/libgroupwise/chatroommanager.cpp
@@ -29,7 +29,7 @@
#include "chatroommanager.h"
ChatroomManager::ChatroomManager( Client * tqparent, const char *name)
- : TQObject(tqparent, name), m_client( tqparent ), m_tqreplace( false )
+ : TQObject(tqparent, name), m_client( tqparent ), m_replace( false )
{
}
@@ -49,7 +49,7 @@ GroupWise::ChatroomMap ChatroomManager::rooms()
void ChatroomManager::getChatrooms( bool refresh )
{
- m_tqreplace = !refresh;
+ m_replace = !refresh;
SearchChatTask * sct = new SearchChatTask( m_client->rootTask() );
sct->search( ( refresh ? SearchChatTask::SinceLastSearch : SearchChatTask::FetchAll ) );
connect( sct, TQT_SIGNAL( finished() ), TQT_SLOT( slotGotChatroomList() ) );
@@ -62,7 +62,7 @@ void ChatroomManager::slotGotChatroomList()
SearchChatTask * sct = (SearchChatTask *)sender();
if ( sct )
{
- if ( m_tqreplace )
+ if ( m_replace )
m_rooms.clear();
TQValueList roomsFound = sct->results();
@@ -94,7 +94,7 @@ void ChatroomManager::slotGotChatCounts()
const TQMap< TQString, int >::iterator end = newCounts.end();
for ( ; it != end; ++it )
- if ( m_rooms.tqcontains( it.key() ) )
+ if ( m_rooms.contains( it.key() ) )
m_rooms[ it.key() ].participantsCount = it.data();
}
emit updated();
@@ -102,7 +102,7 @@ void ChatroomManager::slotGotChatCounts()
void ChatroomManager::requestProperties( const TQString & displayName )
{
- if ( 0 /*m_rooms.tqcontains( displayName ) */)
+ if ( 0 /*m_rooms.contains( displayName ) */)
emit gotProperties( m_rooms[ displayName ] );
else
{
diff --git a/kopete/protocols/groupwise/libgroupwise/chatroommanager.h b/kopete/protocols/groupwise/libgroupwise/chatroommanager.h
index 60f55b01..2cb73cbf 100644
--- a/kopete/protocols/groupwise/libgroupwise/chatroommanager.h
+++ b/kopete/protocols/groupwise/libgroupwise/chatroommanager.h
@@ -61,7 +61,7 @@ class ChatroomManager : public TQObject
private:
Client * m_client;
GroupWise::ChatroomMap m_rooms;
- bool m_tqreplace;
+ bool m_replace;
};
#endif
diff --git a/kopete/protocols/groupwise/libgroupwise/client.cpp b/kopete/protocols/groupwise/libgroupwise/client.cpp
index c91f652d..e7395157 100644
--- a/kopete/protocols/groupwise/libgroupwise/client.cpp
+++ b/kopete/protocols/groupwise/libgroupwise/client.cpp
@@ -365,10 +365,10 @@ void Client::ct_messageReceived( const ConferenceEvent & messageEvent )
// we can drop these once the server reenables the sending of unformatted text
// redundant linebreak at the end of the message
TQRegExp rx(" $");
- transformedEvent.message.tqreplace( rx, "" );
+ transformedEvent.message.replace( rx, "" );
// missing linebreak after first line of an encrypted message
TQRegExp ry("-----BEGIN PGP MESSAGE----- ");
- transformedEvent.message.tqreplace( ry, "-----BEGIN PGP MESSAGE----- " );
+ transformedEvent.message.replace( ry, "-----BEGIN PGP MESSAGE----- " );
emit messageReceived( transformedEvent );
}
diff --git a/kopete/protocols/groupwise/libgroupwise/coreprotocol.cpp b/kopete/protocols/groupwise/libgroupwise/coreprotocol.cpp
index 7b071f35..79ecf419 100644
--- a/kopete/protocols/groupwise/libgroupwise/coreprotocol.cpp
+++ b/kopete/protocols/groupwise/libgroupwise/coreprotocol.cpp
@@ -185,7 +185,7 @@ Transfer* CoreProtocol::incomingTransfer()
void cp_dump( const TQByteArray &bytes )
{
#ifdef LIBGW_DEBUG
- CoreProtocol::debug( TQString( "tqcontains: %1 bytes" ).tqarg( bytes.count() ) );
+ CoreProtocol::debug( TQString( "contains: %1 bytes" ).tqarg( bytes.count() ) );
for ( uint i = 0; i < bytes.count(); ++i )
{
printf( "%02x ", bytes[ i ] );
@@ -300,7 +300,7 @@ void CoreProtocol::fieldsToWire( Field::FieldList fields, int depth )
//debug( " - it's a single string" );
const Field::SingleField *sField = static_cast( field );
// TQString encoded = KURL::encode_string( sField->value().toString(), 106 /* UTF-8 */);
-// encoded.tqreplace( "%20", "+" );
+// encoded.replace( "%20", "+" );
// dout << encoded.ascii();
snprintf( valString, NMFIELD_MAX_STR_LENGTH, "%s", url_escape_string( sField->value().toString().utf8() ).data() );
diff --git a/kopete/protocols/groupwise/libgroupwise/eventtransfer.h b/kopete/protocols/groupwise/libgroupwise/eventtransfer.h
index f08e350e..b55ba48e 100644
--- a/kopete/protocols/groupwise/libgroupwise/eventtransfer.h
+++ b/kopete/protocols/groupwise/libgroupwise/eventtransfer.h
@@ -58,11 +58,11 @@ public:
EventTransfer( const TQ_UINT32 eventType, const TQString & source, TQDateTime timeStamp );
~EventTransfer();
/**
- * Access the bittqmask that describes the transfer's contents. Use @ref Contents to determine what it tqcontains
+ * Access the bittqmask that describes the transfer's contents. Use @ref Contents to determine what it contains
*/
TQ_UINT32 contents();
/**
- * Convenience accessors to see what the transfer tqcontains
+ * Convenience accessors to see what the transfer contains
*/
bool hasEventType();
bool hasSource();
diff --git a/kopete/protocols/groupwise/libgroupwise/gwclientstream.cpp b/kopete/protocols/groupwise/libgroupwise/gwclientstream.cpp
index e2e5269a..8b5f9708 100644
--- a/kopete/protocols/groupwise/libgroupwise/gwclientstream.cpp
+++ b/kopete/protocols/groupwise/libgroupwise/gwclientstream.cpp
@@ -378,7 +378,7 @@ void cs_dump( const TQByteArray &bytes )
{
//#define GW_CLIENTSTREAM_DEBUG 1
#ifdef GW_CLIENTSTREAM_DEBUG
- CoreProtocol::debug( TQString( "tqcontains: %1 bytes " ).tqarg( bytes.count() ) );
+ CoreProtocol::debug( TQString( "contains: %1 bytes " ).tqarg( bytes.count() ) );
uint count = 0;
while ( count < bytes.count() )
{
diff --git a/kopete/protocols/groupwise/libgroupwise/gwfield.cpp b/kopete/protocols/groupwise/libgroupwise/gwfield.cpp
index 94f82937..a89f2057 100644
--- a/kopete/protocols/groupwise/libgroupwise/gwfield.cpp
+++ b/kopete/protocols/groupwise/libgroupwise/gwfield.cpp
@@ -36,16 +36,16 @@ FieldList::~FieldList()
{
}
-FieldListIterator FieldList::tqfind( TQCString tag )
+FieldListIterator FieldList::find( TQCString tag )
{
FieldListIterator it = begin();
- return tqfind( it, tag );
+ return find( it, tag );
}
-FieldListIterator FieldList::tqfind( FieldListIterator &it, TQCString tag )
+FieldListIterator FieldList::find( FieldListIterator &it, TQCString tag )
{
FieldListIterator theEnd = end();
- //cout << "FieldList::tqfind() looking for " << tag.data() << endl;
+ //cout << "FieldList::find() looking for " << tag.data() << endl;
for ( ; it != theEnd; ++it )
{
//cout << " - on " << (*it)->tag().data() << endl;
@@ -113,7 +113,7 @@ SingleField * FieldList::findSingleField( TQCString tag )
SingleField * FieldList::findSingleField( FieldListIterator &it, TQCString tag )
{
- FieldListIterator found = tqfind( it, tag );
+ FieldListIterator found = find( it, tag );
if ( found == end() )
return 0;
else
@@ -128,7 +128,7 @@ MultiField * FieldList::findMultiField( TQCString tag )
MultiField * FieldList::findMultiField( FieldListIterator &it, TQCString tag )
{
- FieldListIterator found = tqfind( it, tag );
+ FieldListIterator found = find( it, tag );
if ( found == end() )
return 0;
else
diff --git a/kopete/protocols/groupwise/libgroupwise/gwfield.h b/kopete/protocols/groupwise/libgroupwise/gwfield.h
index 6d3cb5a9..4e1b1f94 100644
--- a/kopete/protocols/groupwise/libgroupwise/gwfield.h
+++ b/kopete/protocols/groupwise/libgroupwise/gwfield.h
@@ -194,18 +194,18 @@ namespace Field
*/
virtual ~FieldList();
/**
- * Locate the first occurrence of a given field in the list. Same semantics as TQValueList::tqfind().
+ * Locate the first occurrence of a given field in the list. Same semantics as TQValueList::find().
* @param tag The tag name of the field to search for.
* @return An iterator pointing to the first occurrence found, or end() if none was found.
*/
- FieldListIterator tqfind( TQCString tag );
+ FieldListIterator find( TQCString tag );
/**
* Locate the first occurrence of a given field in the list, starting at the supplied iterator
* @param tag The tag name of the field to search for.
* @param it An iterator within the list, to start searching from.
* @return An iterator pointing to the first occurrence found, or end() if none was found.
*/
- FieldListIterator tqfind( FieldListIterator &it, TQCString tag );
+ FieldListIterator find( FieldListIterator &it, TQCString tag );
/**
* Get the index of the first occurrence of tag, or -1 if not found
*/
diff --git a/kopete/protocols/groupwise/libgroupwise/privacymanager.cpp b/kopete/protocols/groupwise/libgroupwise/privacymanager.cpp
index a887c8cc..4960310a 100644
--- a/kopete/protocols/groupwise/libgroupwise/privacymanager.cpp
+++ b/kopete/protocols/groupwise/libgroupwise/privacymanager.cpp
@@ -59,21 +59,21 @@ bool PrivacyManager::isPrivacyLocked()
bool PrivacyManager::isBlocked( const TQString & dn )
{
if ( m_defaultDeny )
- return !m_allowList.tqcontains( dn );
+ return !m_allowList.contains( dn );
else
- return m_denyList.tqcontains( dn );
+ return m_denyList.contains( dn );
}
void PrivacyManager::setAllow( const TQString & dn )
{
if ( m_defaultDeny )
{
- if ( !m_allowList.tqcontains( dn ) )
+ if ( !m_allowList.contains( dn ) )
addAllow( dn );
}
else
{
- if ( m_denyList.tqcontains( dn ) )
+ if ( m_denyList.contains( dn ) )
removeDeny( dn );
}
}
@@ -82,12 +82,12 @@ void PrivacyManager::setDeny( const TQString & dn )
{
if ( m_defaultDeny )
{
- if ( m_allowList.tqcontains( dn ) )
+ if ( m_allowList.contains( dn ) )
removeAllow( dn );
}
else
{
- if ( !m_denyList.tqcontains( dn ) )
+ if ( !m_denyList.contains( dn ) )
addDeny( dn );
}
}
@@ -243,7 +243,7 @@ TQStringList PrivacyManager::difference( const TQStringList & lhs, const TQStrin
const TQStringList::ConstIterator rhsEnd = rhs.end();
for ( TQStringList::ConstIterator lhsIt = lhs.begin(); lhsIt != lhsEnd; ++lhsIt )
{
- if ( rhs.tqfind( *lhsIt ) == rhsEnd )
+ if ( rhs.find( *lhsIt ) == rhsEnd )
diff.append( *lhsIt );
}
return diff;
diff --git a/kopete/protocols/groupwise/libgroupwise/responseprotocol.cpp b/kopete/protocols/groupwise/libgroupwise/responseprotocol.cpp
index 652cd5f2..c455eaec 100644
--- a/kopete/protocols/groupwise/libgroupwise/responseprotocol.cpp
+++ b/kopete/protocols/groupwise/libgroupwise/responseprotocol.cpp
@@ -53,8 +53,8 @@ Transfer * ResponseProtocol::parse( const TQByteArray & wire, uint & bytes )
if ( !readGroupWiseLine( headerFirst ) )
return 0;
// pull out the HTTP return code
- int firstSpace = headerFirst.tqfind( ' ' );
- TQString rtnField = headerFirst.mid( firstSpace, headerFirst.tqfind( ' ', firstSpace + 1 ) );
+ int firstSpace = headerFirst.find( ' ' );
+ TQString rtnField = headerFirst.mid( firstSpace, headerFirst.find( ' ', firstSpace + 1 ) );
bool ok = true;
int rtnCode;
int packetState = -1;
@@ -116,7 +116,7 @@ Transfer * ResponseProtocol::parse( const TQByteArray & wire, uint & bytes )
int resultCode = 0;
Field::FieldListIterator it;
Field::FieldListIterator end = m_collatingFields.end();
- it = m_collatingFields.tqfind( NM_A_SZ_TRANSACTION_ID );
+ it = m_collatingFields.find( NM_A_SZ_TRANSACTION_ID );
if ( it != end )
{
Field::SingleField * sf = dynamic_cast( *it );
@@ -128,7 +128,7 @@ Transfer * ResponseProtocol::parse( const TQByteArray & wire, uint & bytes )
delete sf;
}
}
- it = m_collatingFields.tqfind( NM_A_SZ_RESULT_CODE );
+ it = m_collatingFields.find( NM_A_SZ_RESULT_CODE );
if ( it != end )
{
Field::SingleField * sf = dynamic_cast( *it );
diff --git a/kopete/protocols/groupwise/libgroupwise/rtf.cc b/kopete/protocols/groupwise/libgroupwise/rtf.cc
index 35fea9d1..afe7b18e 100644
--- a/kopete/protocols/groupwise/libgroupwise/rtf.cc
+++ b/kopete/protocols/groupwise/libgroupwise/rtf.cc
@@ -1732,17 +1732,17 @@ void ParStyle::clearFormatting()
TQString RTF2HTML::quoteString(const TQString &_str, quoteMode mode)
{
TQString str = _str;
- str.tqreplace(TQRegExp("&"), "&");
- str.tqreplace(TQRegExp("<"), "<");
- str.tqreplace(TQRegExp(">"), ">");
- str.tqreplace(TQRegExp("\""), """);
- str.tqreplace(TQRegExp("\r"), "");
+ str.replace(TQRegExp("&"), "&");
+ str.replace(TQRegExp("<"), "<");
+ str.replace(TQRegExp(">"), ">");
+ str.replace(TQRegExp("\""), """);
+ str.replace(TQRegExp("\r"), "");
switch (mode){
case quoteHTML:
- str.tqreplace(TQRegExp("\n"), " \n");
+ str.replace(TQRegExp("\n"), " \n");
break;
case quoteXML:
- str.tqreplace(TQRegExp("\n"), " \n");
+ str.replace(TQRegExp("\n"), " \n");
break;
default:
break;
@@ -1759,7 +1759,7 @@ TQString RTF2HTML::quoteString(const TQString &_str, quoteMode mode)
TQString s = " ";
for (int i = 1; i < len; i++)
s += " ";
- str.tqreplace(pos, len, s);
+ str.replace(pos, len, s);
}
return str;
}
diff --git a/kopete/protocols/groupwise/libgroupwise/rtf.ll b/kopete/protocols/groupwise/libgroupwise/rtf.ll
index 70d4daa5..7f2f1841 100644
--- a/kopete/protocols/groupwise/libgroupwise/rtf.ll
+++ b/kopete/protocols/groupwise/libgroupwise/rtf.ll
@@ -67,17 +67,17 @@ void ParStyle::clearFormatting()
QString RTF2HTML::quoteString(const QString &_str, quoteMode mode)
{
QString str = _str;
- str.tqreplace(QRegExp("&"), "&");
- str.tqreplace(QRegExp("<"), "<");
- str.tqreplace(QRegExp(">"), ">");
- str.tqreplace(QRegExp("\""), """);
- str.tqreplace(QRegExp("\r"), "");
+ str.replace(QRegExp("&"), "&");
+ str.replace(QRegExp("<"), "<");
+ str.replace(QRegExp(">"), ">");
+ str.replace(QRegExp("\""), """);
+ str.replace(QRegExp("\r"), "");
switch (mode){
case quoteHTML:
- str.tqreplace(QRegExp("\n"), " \n");
+ str.replace(QRegExp("\n"), " \n");
break;
case quoteXML:
- str.tqreplace(QRegExp("\n"), " \n");
+ str.replace(QRegExp("\n"), " \n");
break;
default:
break;
@@ -94,7 +94,7 @@ QString RTF2HTML::quoteString(const QString &_str, quoteMode mode)
QString s = " ";
for (int i = 1; i < len; i++)
s += " ";
- str.tqreplace(pos, len, s);
+ str.replace(pos, len, s);
}
return str;
}
diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/chatcountstask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/chatcountstask.cpp
index 08f04b40..fa28ece0 100644
--- a/kopete/protocols/groupwise/libgroupwise/tasks/chatcountstask.cpp
+++ b/kopete/protocols/groupwise/libgroupwise/tasks/chatcountstask.cpp
@@ -59,9 +59,9 @@ bool ChatCountsTask::take( Transfer * transfer )
}
Field::FieldList counts = resultsArray->fields();
const Field::FieldListIterator end = counts.end();
- for ( Field::FieldListIterator it = counts.tqfind( NM_A_FA_CHAT );
+ for ( Field::FieldListIterator it = counts.find( NM_A_FA_CHAT );
it != end;
- it = counts.tqfind( ++it, NM_A_FA_CHAT ) )
+ it = counts.find( ++it, NM_A_FA_CHAT ) )
{
Field::MultiField * mf = static_cast( *it );
Field::FieldList chat = mf->fields();
diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/eventtask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/eventtask.cpp
index 8af45d93..6d252a4d 100644
--- a/kopete/protocols/groupwise/libgroupwise/tasks/eventtask.cpp
+++ b/kopete/protocols/groupwise/libgroupwise/tasks/eventtask.cpp
@@ -40,7 +40,7 @@ bool EventTask::forMe( Transfer * transfer, EventTransfer*& event ) const
{
// see if we are supposed to handle this kind of event
// consider speeding this up by having 1 handler per event
- return ( m_eventCodes.tqfind( event->eventType() ) != m_eventCodes.end() );
+ return ( m_eventCodes.find( event->eventType() ) != m_eventCodes.end() );
}
return false;
}
diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/getchatsearchresultstask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/getchatsearchresultstask.cpp
index 81898ca2..1c8e1d39 100644
--- a/kopete/protocols/groupwise/libgroupwise/tasks/getchatsearchresultstask.cpp
+++ b/kopete/protocols/groupwise/libgroupwise/tasks/getchatsearchresultstask.cpp
@@ -72,9 +72,9 @@ bool GetChatSearchResultsTask::take( Transfer * transfer )
}
Field::FieldList matches = resultsArray->fields();
const Field::FieldListIterator end = matches.end();
- for ( Field::FieldListIterator it = matches.tqfind( NM_A_FA_CHAT );
+ for ( Field::FieldListIterator it = matches.find( NM_A_FA_CHAT );
it != end;
- it = matches.tqfind( ++it, NM_A_FA_CHAT ) )
+ it = matches.find( ++it, NM_A_FA_CHAT ) )
{
Field::MultiField * mf = static_cast( *it );
Field::FieldList chat = mf->fields();
diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/getdetailstask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/getdetailstask.cpp
index 27a0c7f0..5f2cbe18 100644
--- a/kopete/protocols/groupwise/libgroupwise/tasks/getdetailstask.cpp
+++ b/kopete/protocols/groupwise/libgroupwise/tasks/getdetailstask.cpp
@@ -58,9 +58,9 @@ bool GetDetailsTask::take( Transfer * transfer )
// parse received details and signal like billio
Field::MultiField * container = 0;
Field::FieldListIterator end = detailsFields.end();
- for ( Field::FieldListIterator it = detailsFields.tqfind( NM_A_FA_RESULTS );
+ for ( Field::FieldListIterator it = detailsFields.find( NM_A_FA_RESULTS );
it != end;
- it = detailsFields.tqfind( ++it, NM_A_FA_RESULTS ) )
+ it = detailsFields.find( ++it, NM_A_FA_RESULTS ) )
{
container = static_cast( *it );
ContactDetails cd = extractUserDetails( container );
diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/joinchattask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/joinchattask.cpp
index 35fab516..d8a4c709 100644
--- a/kopete/protocols/groupwise/libgroupwise/tasks/joinchattask.cpp
+++ b/kopete/protocols/groupwise/libgroupwise/tasks/joinchattask.cpp
@@ -59,9 +59,9 @@ bool JoinChatTask::take( Transfer * transfer )
Field::SingleField * contact = 0;
Field::FieldList contactList = participants->fields();
const Field::FieldListIterator end = contactList.end();
- for ( Field::FieldListIterator it = contactList.tqfind( NM_A_SZ_DN );
+ for ( Field::FieldListIterator it = contactList.find( NM_A_SZ_DN );
it != end;
- it = contactList.tqfind( ++it, NM_A_SZ_DN ) )
+ it = contactList.find( ++it, NM_A_SZ_DN ) )
{
contact = static_cast( *it );
if ( contact )
@@ -83,9 +83,9 @@ bool JoinChatTask::take( Transfer * transfer )
Field::SingleField * contact = 0;
Field::FieldList contactList = invitees->fields();
const Field::FieldListIterator end = contactList.end();
- for ( Field::FieldListIterator it = contactList.tqfind( NM_A_SZ_DN );
+ for ( Field::FieldListIterator it = contactList.find( NM_A_SZ_DN );
it != end;
- it = contactList.tqfind( ++it, NM_A_SZ_DN ) )
+ it = contactList.find( ++it, NM_A_SZ_DN ) )
{
contact = static_cast( *it );
if ( contact )
diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/joinconferencetask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/joinconferencetask.cpp
index 63a57fda..9ab94d0d 100644
--- a/kopete/protocols/groupwise/libgroupwise/tasks/joinconferencetask.cpp
+++ b/kopete/protocols/groupwise/libgroupwise/tasks/joinconferencetask.cpp
@@ -59,9 +59,9 @@ bool JoinConferenceTask::take( Transfer * transfer )
Field::SingleField * contact = 0;
Field::FieldList contactList = participants->fields();
const Field::FieldListIterator end = contactList.end();
- for ( Field::FieldListIterator it = contactList.tqfind( NM_A_SZ_DN );
+ for ( Field::FieldListIterator it = contactList.find( NM_A_SZ_DN );
it != end;
- it = contactList.tqfind( ++it, NM_A_SZ_DN ) )
+ it = contactList.find( ++it, NM_A_SZ_DN ) )
{
contact = static_cast( *it );
if ( contact )
@@ -85,9 +85,9 @@ bool JoinConferenceTask::take( Transfer * transfer )
Field::SingleField * contact = 0;
Field::FieldList contactList = invitees->fields();
const Field::FieldListIterator end = contactList.end();
- for ( Field::FieldListIterator it = contactList.tqfind( NM_A_SZ_DN );
+ for ( Field::FieldListIterator it = contactList.find( NM_A_SZ_DN );
it != end;
- it = contactList.tqfind( ++it, NM_A_SZ_DN ) )
+ it = contactList.find( ++it, NM_A_SZ_DN ) )
{
contact = static_cast( *it );
if ( contact )
diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/logintask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/logintask.cpp
index 2474aaaa..a3a0f556 100644
--- a/kopete/protocols/groupwise/libgroupwise/tasks/logintask.cpp
+++ b/kopete/protocols/groupwise/libgroupwise/tasks/logintask.cpp
@@ -80,18 +80,18 @@ bool LoginTask::take( Transfer * transfer )
Field::FieldList contactListFields = contactList->fields();
Field::MultiField * container;
// read folders
- for ( Field::FieldListIterator it = contactListFields.tqfind( NM_A_FA_FOLDER );
+ for ( Field::FieldListIterator it = contactListFields.find( NM_A_FA_FOLDER );
it != contactListFields.end();
- it = contactListFields.tqfind( ++it, NM_A_FA_FOLDER ) )
+ it = contactListFields.find( ++it, NM_A_FA_FOLDER ) )
{
container = static_cast( *it );
extractFolder( container );
}
// read contacts
- for ( Field::FieldListIterator it = contactListFields.tqfind( NM_A_FA_CONTACT );
+ for ( Field::FieldListIterator it = contactListFields.find( NM_A_FA_CONTACT );
it != contactListFields.end();
- it = contactListFields.tqfind( ++it, NM_A_FA_CONTACT ) )
+ it = contactListFields.find( ++it, NM_A_FA_CONTACT ) )
{
container = static_cast( *it );
extractContact( container );
@@ -241,12 +241,12 @@ void LoginTask::extractPrivacy( Field::FieldList & fields )
TQStringList denyList;
// read blocking
// may be a single field or may be an array
- Field::FieldListIterator it = fields.tqfind( NM_A_LOCKED_ATTR_LIST );
+ Field::FieldListIterator it = fields.find( NM_A_LOCKED_ATTR_LIST );
if ( it != fields.end() )
{
if ( Field::SingleField * sf = dynamic_cast( *it ) )
{
- if ( sf->value().toString().tqfind( NM_A_BLOCKING ) )
+ if ( sf->value().toString().find( NM_A_BLOCKING ) )
privacyLocked = true;
}
else if ( Field::MultiField * mf = dynamic_cast( *it ) )
@@ -284,7 +284,7 @@ TQStringList LoginTask::readPrivacyItems( const TQCString & tag, Field::FieldLis
{
TQStringList items;
- Field::FieldListIterator it = fields.tqfind( tag );
+ Field::FieldListIterator it = fields.find( tag );
if ( it != fields.end() )
{
if ( Field::SingleField * sf = dynamic_cast( *it ) )
@@ -308,7 +308,7 @@ TQStringList LoginTask::readPrivacyItems( const TQCString & tag, Field::FieldLis
void LoginTask::extractCustomStatuses( Field::FieldList & fields )
{
- Field::FieldListIterator it = fields.tqfind( NM_A_FA_CUSTOM_STATUSES );
+ Field::FieldListIterator it = fields.find( NM_A_FA_CUSTOM_STATUSES );
if ( it != fields.end() )
{
if ( Field::MultiField * mf = dynamic_cast( *it ) )
@@ -342,7 +342,7 @@ void LoginTask::extractCustomStatuses( Field::FieldList & fields )
void LoginTask::extractKeepalivePeriod( Field::FieldList & fields )
{
- Field::FieldListIterator it = fields.tqfind( NM_A_UD_KEEPALIVE );
+ Field::FieldListIterator it = fields.find( NM_A_UD_KEEPALIVE );
if ( it != fields.end() )
{
if ( Field::SingleField * sf = dynamic_cast( *it ) )
diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/pollsearchresultstask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/pollsearchresultstask.cpp
index 1cc33e75..3fadb5a5 100644
--- a/kopete/protocols/groupwise/libgroupwise/tasks/pollsearchresultstask.cpp
+++ b/kopete/protocols/groupwise/libgroupwise/tasks/pollsearchresultstask.cpp
@@ -69,9 +69,9 @@ bool PollSearchResultsTask::take( Transfer * transfer )
}
Field::FieldList matches = resultsArray->fields();
const Field::FieldListIterator end = matches.end();
- for ( Field::FieldListIterator it = matches.tqfind( NM_A_FA_CONTACT );
+ for ( Field::FieldListIterator it = matches.find( NM_A_FA_CONTACT );
it != end;
- it = matches.tqfind( ++it, NM_A_FA_CONTACT ) )
+ it = matches.find( ++it, NM_A_FA_CONTACT ) )
{
Field::MultiField * mf = static_cast( *it );
Field::FieldList contact = mf->fields();
@@ -79,7 +79,7 @@ bool PollSearchResultsTask::take( Transfer * transfer )
m_results.append( cd );
}
- // first field: NM_A_SZ_STATUS tqcontains
+ // first field: NM_A_SZ_STATUS contains
#define SEARCH_PENDING 0
#define SEARCH_INPROGRESS 1
#define SEARCH_COMPLETED 2
diff --git a/kopete/protocols/groupwise/libgroupwise/tests/field_test.cpp b/kopete/protocols/groupwise/libgroupwise/tests/field_test.cpp
index 69cd1991..0eb61409 100644
--- a/kopete/protocols/groupwise/libgroupwise/tests/field_test.cpp
+++ b/kopete/protocols/groupwise/libgroupwise/tests/field_test.cpp
@@ -11,12 +11,12 @@ int main()
{
buildFakeContactList();
// look for a field in the list
-/* if ( fl.tqfind( NM_A_FA_MESSAGE ) != fl.end() )
+/* if ( fl.find( NM_A_FA_MESSAGE ) != fl.end() )
printf( "Found a field, where there was supposed to be one :)\n" );
else
printf( "Didn't find a field, where there was supposed to be one :(\n" );
Field::FieldListIterator it;
- if ( (it = fl.tqfind( NM_A_SZ_OBJECT_ID ) ) != fl.end() )
+ if ( (it = fl.find( NM_A_SZ_OBJECT_ID ) ) != fl.end() )
printf( "Found a field, where there was NOT supposed to be one :(\n" );
else
printf( "Didn't find a field, where there wasn't supposed to be one :)\n" );*/
@@ -26,19 +26,19 @@ int main()
printf( "\nNow testing find routines.\n");
// find the field containing the contact list
- Field::MultiField * clf = dynamic_cast< Field::MultiField * >( *(fl.tqfind( NM_A_FA_CONTACT_LIST ) ) );
+ Field::MultiField * clf = dynamic_cast< Field::MultiField * >( *(fl.find( NM_A_FA_CONTACT_LIST ) ) );
if ( clf )
{
Field::FieldList cl = clf->fields();
// look for a folder in the list
- Field::FieldListIterator it = cl.tqfind( NM_A_FA_FOLDER );
+ Field::FieldListIterator it = cl.find( NM_A_FA_FOLDER );
if ( it != cl.end() )
printf( "Found the first folder :)\n");
else
printf( "Didn't find the first folder, where did it go? :(\n");
printf( "Looking for a second folder :)\n");
- it = cl.tqfind( ++it, NM_A_FA_FOLDER );
+ it = cl.find( ++it, NM_A_FA_FOLDER );
if ( it == cl.end() )
printf( "Didn't find a second folder :)\n" );
else
diff --git a/kopete/protocols/groupwise/libgroupwise/userdetailsmanager.cpp b/kopete/protocols/groupwise/libgroupwise/userdetailsmanager.cpp
index 315a60d0..c10fda5c 100644
--- a/kopete/protocols/groupwise/libgroupwise/userdetailsmanager.cpp
+++ b/kopete/protocols/groupwise/libgroupwise/userdetailsmanager.cpp
@@ -41,8 +41,8 @@ bool UserDetailsManager::known( const TQString & dn )
{
if ( dn == m_client->userDN() )
return true;
- // TODO: replace with m_detailsMap.tqcontains( dn );
- TQStringList::Iterator found = m_detailsMap.keys().tqfind( dn );
+ // TODO: replace with m_detailsMap.contains( dn );
+ TQStringList::Iterator found = m_detailsMap.keys().find( dn );
// we always know the local user's details, so don't look them up
return ( found !=m_detailsMap.keys().end() );
}
@@ -85,7 +85,7 @@ void UserDetailsManager::requestDetails( const TQStringList & dnList, bool onlyU
// don't request details we already have unless the caller specified this
if ( onlyUnknown && known( *it ) )
break;
- TQStringList::Iterator found = m_pendingDNs.tqfind( *it );
+ TQStringList::Iterator found = m_pendingDNs.find( *it );
if ( found == m_pendingDNs.end() )
{
m_client->debug( TQString( "UserDetailsManager::requestDetails - including %1" ).tqarg( (*it) ) );
diff --git a/kopete/protocols/groupwise/ui/gwcontactsearch.ui b/kopete/protocols/groupwise/ui/gwcontactsearch.ui
index 508f4015..e6c6a2f6 100644
--- a/kopete/protocols/groupwise/ui/gwcontactsearch.ui
+++ b/kopete/protocols/groupwise/ui/gwcontactsearch.ui
@@ -84,7 +84,7 @@
-
- tqcontains
+ contains
-
@@ -104,7 +104,7 @@
-
- tqcontains
+ contains
-
@@ -129,7 +129,7 @@
-
- tqcontains
+ contains
-
@@ -168,7 +168,7 @@
-
- tqcontains
+ contains
-
@@ -209,7 +209,7 @@
-
- tqcontains
+ contains
-
diff --git a/kopete/protocols/irc/ircchannelcontact.cpp b/kopete/protocols/irc/ircchannelcontact.cpp
index 1835bb4b..45121c34 100644
--- a/kopete/protocols/irc/ircchannelcontact.cpp
+++ b/kopete/protocols/irc/ircchannelcontact.cpp
@@ -329,7 +329,7 @@ void IRCChannelContact::slotIncomingUserIsAway( const TQString &nick, const TQSt
if( nick.lower() == account->mySelf()->nickName().lower() )
{
IRCUserContact *c = account->mySelf();
- if (manager() && manager()->members().tqcontains(c))
+ if (manager() && manager()->members().contains(c))
{
Kopete::OnlineStatus status = manager()->contactOnlineStatus(c);
if (status == m_protocol->m_UserStatusOp)
diff --git a/kopete/protocols/irc/irccontact.cpp b/kopete/protocols/irc/irccontact.cpp
index 93888b55..7df5894c 100644
--- a/kopete/protocols/irc/irccontact.cpp
+++ b/kopete/protocols/irc/irccontact.cpp
@@ -229,7 +229,7 @@ void IRCContact::slotSendMsg(Kopete::Message &message, Kopete::ChatSession *)
// Two-liner in color:
// Hello
World
- if (htmlString.tqfind(TQString::tqfromLatin1(" -1)
+ if (htmlString.find(TQString::tqfromLatin1(" -1)
{
TQRegExp findTags( TQString::tqfromLatin1("(.*)") );
findTags.setMinimal( true );
@@ -363,7 +363,7 @@ bool IRCContact::isChatting(const Kopete::ChatSession *avoid) const
for (TQValueList::Iterator it= sessions.begin(); it!=sessions.end() ; ++it)
{
if( (*it) != avoid && (*it)->account() == account &&
- (*it)->members().tqcontains(this) )
+ (*it)->members().contains(this) )
{
return true;
}
@@ -413,7 +413,7 @@ void IRCContact::receivedMessage( KIRC::Engine::ServerMessageType type,
const KIRC::EntityPtrList &to,
const TQString &msg)
{
- if (to.tqcontains(m_entity))
+ if (to.contains(m_entity))
{
IRCContact *fromContact = ircAccount()->getContact(from);
Kopete::Message message(fromContact, manager()->members(), msg, Kopete::Message::Inbound,
diff --git a/kopete/protocols/irc/irccontactmanager.cpp b/kopete/protocols/irc/irccontactmanager.cpp
index f304a2ed..fb49e08e 100644
--- a/kopete/protocols/irc/irccontactmanager.cpp
+++ b/kopete/protocols/irc/irccontactmanager.cpp
@@ -260,7 +260,7 @@ void IRCContactManager::slotContactAdded( Kopete::MetaContact *contact )
void IRCContactManager::addToNotifyList(const TQString &nick)
{
- if (!m_NotifyList.tqcontains(nick.lower()))
+ if (!m_NotifyList.contains(nick.lower()))
{
m_NotifyList.append(nick);
checkOnlineNotifyList();
@@ -269,7 +269,7 @@ void IRCContactManager::addToNotifyList(const TQString &nick)
void IRCContactManager::removeFromNotifyList(const TQString &nick)
{
- if (m_NotifyList.tqcontains(nick.lower()))
+ if (m_NotifyList.contains(nick.lower()))
m_NotifyList.remove(nick.lower());
}
diff --git a/kopete/protocols/irc/ircprotocol.cpp b/kopete/protocols/irc/ircprotocol.cpp
index a3182a14..e30bfa90 100644
--- a/kopete/protocols/irc/ircprotocol.cpp
+++ b/kopete/protocols/irc/ircprotocol.cpp
@@ -376,7 +376,7 @@ void IRCProtocol::slotMessageFilter( Kopete::Message &msg )
TQString messageText = msg.escapedBody();
//Add right click for channels, only replace text not in HTML tags
- messageText.tqreplace( TQRegExp( TQString::tqfromLatin1("(?![^<]+>)(#[^#\\s]+)(?![^<]+>)") ), TQString::tqfromLatin1("\\1") );
+ messageText.replace( TQRegExp( TQString::tqfromLatin1("(?![^<]+>)(#[^#\\s]+)(?![^<]+>)") ), TQString::tqfromLatin1("\\1") );
msg.setBody( messageText, Kopete::Message::RichText );
}
@@ -807,7 +807,7 @@ void IRCProtocol::editNetworks( const TQString &networkName )
connect( netConf->hostList, TQT_SIGNAL( selectionChanged() ), this, TQT_SLOT( slotUpdateNetworkHostConfig() ) );
if( !networkName.isEmpty() )
- netConf->networkList->setSelected( netConf->networkList->tqfindItem( networkName ), true );
+ netConf->networkList->setSelected( netConf->networkList->findItem( networkName ), true );
//slotUpdateNetworkConfig(); // unnecessary, setSelected emits selectionChanged
@@ -952,7 +952,7 @@ void IRCProtocol::slotDeleteHost()
{
disconnect( netConf->hostList, TQT_SIGNAL( selectionChanged() ), this, TQT_SLOT( slotUpdateNetworkHostConfig() ) );
TQString entryText = host->host + TQString::tqfromLatin1(":") + TQString::number(host->port);
- TQListBoxItem * justAdded = netConf->hostList->tqfindItem( entryText );
+ TQListBoxItem * justAdded = netConf->hostList->findItem( entryText );
netConf->hostList->removeItem( netConf->hostList->index( justAdded ) );
connect( netConf->hostList, TQT_SIGNAL( selectionChanged() ), this, TQT_SLOT( slotUpdateNetworkHostConfig() ) );
@@ -972,13 +972,13 @@ void IRCProtocol::slotNewNetwork()
IRCNetwork *net = new IRCNetwork;
// give it the name of 'New Network' (incrementing number if needed)
TQString netName = TQString::tqfromLatin1( "New Network" );
- if ( m_networks.tqfind( netName ) )
+ if ( m_networks.find( netName ) )
{
int newIdx = 1;
do {
netName = TQString::tqfromLatin1( "New Network #%1" ).tqarg( newIdx++ );
}
- while ( m_networks.tqfind( netName ) && newIdx < 100 );
+ while ( m_networks.find( netName ) && newIdx < 100 );
if ( newIdx == 100 ) // pathological case
return;
}
@@ -986,7 +986,7 @@ void IRCProtocol::slotNewNetwork()
// and add it to the networks dict and list
m_networks.insert( net->name, net );
netConf->networkList->insertItem( net->name );
- TQListBoxItem * justAdded = netConf->networkList->tqfindItem( net->name );
+ TQListBoxItem * justAdded = netConf->networkList->findItem( net->name );
netConf->networkList->setSelected( justAdded, true );
netConf->networkList->setBottomItem( netConf->networkList->index( justAdded ) );
}
@@ -1022,7 +1022,7 @@ void IRCProtocol::slotNewHost()
TQString entryText = host->host + TQString::tqfromLatin1(":") + TQString::number(host->port);
netConf->hostList->insertItem( entryText );
// select it in the gui
- TQListBoxItem * justAdded = netConf->hostList->tqfindItem( entryText );
+ TQListBoxItem * justAdded = netConf->hostList->findItem( entryText );
netConf->hostList->setSelected( justAdded, true );
//netConf->hostList->setBottomItem( netConf->hostList->index( justAdded ) );
}
@@ -1056,7 +1056,7 @@ void IRCProtocol::slotRenameNetwork()
m_networks.remove( m_uiCurrentNetworkSelection );
m_networks.insert( net->name, net );
// ui
- int idx = netConf->networkList->index( netConf->networkList->tqfindItem( m_uiCurrentNetworkSelection ) );
+ int idx = netConf->networkList->index( netConf->networkList->findItem( m_uiCurrentNetworkSelection ) );
m_uiCurrentNetworkSelection = net->name;
netConf->networkList->changeItem( net->name, idx ); // changes the selection!!!
netConf->networkList->sort();
@@ -1190,7 +1190,7 @@ void IRCProtocol::slotMoveServerUp()
if( !selectedNetwork || !selectedHost )
return;
- TQValueList::iterator pos = selectedNetwork->hosts.tqfind( selectedHost );
+ TQValueList::iterator pos = selectedNetwork->hosts.find( selectedHost );
if( pos != selectedNetwork->hosts.begin() )
{
TQValueList::iterator lastPos = pos;
@@ -1217,7 +1217,7 @@ void IRCProtocol::slotMoveServerDown()
if( !selectedNetwork || !selectedHost )
return;
- TQValueList::iterator pos = selectedNetwork->hosts.tqfind( selectedHost );
+ TQValueList::iterator pos = selectedNetwork->hosts.find( selectedHost );
if( *pos != selectedNetwork->hosts.back() )
{
TQValueList::iterator nextPos = selectedNetwork->hosts.remove( pos );
diff --git a/kopete/protocols/irc/ircservercontact.cpp b/kopete/protocols/irc/ircservercontact.cpp
index 3200d72d..9188963f 100644
--- a/kopete/protocols/irc/ircservercontact.cpp
+++ b/kopete/protocols/irc/ircservercontact.cpp
@@ -154,7 +154,7 @@ void IRCServerContact::slotIncomingNotice( const TQString &orig, const TQString
// :Global!service@rizon.net NOTICE foobar :[Logon News - Oct 12 2005] Due to growing problems ...
// :somenick!~fooobar@somehostname.fi NOTICE foobar :hello
- if (orig.tqcontains('!')) {
+ if (orig.contains('!')) {
ircAccount()->appendMessage(i18n("NOTICE from %1 (%2): %3").tqarg(
orig.section('!', 0, 0),
orig.section('!', 1, 1),
diff --git a/kopete/protocols/irc/ircusercontact.cpp b/kopete/protocols/irc/ircusercontact.cpp
index 2c039e94..bec7c4b7 100644
--- a/kopete/protocols/irc/ircusercontact.cpp
+++ b/kopete/protocols/irc/ircusercontact.cpp
@@ -504,7 +504,7 @@ void IRCUserContact::updateInfo()
void IRCUserContact::newWhoReply( const TQString &channel, const TQString &user, const TQString &host,
const TQString &server, bool away, const TQString &flags, uint hops, const TQString &realName )
{
- if( !mInfo.channels.tqcontains( channel ) )
+ if( !mInfo.channels.contains( channel ) )
mInfo.channels.append( channel );
mInfo.userName = user;
diff --git a/kopete/protocols/irc/kcodecaction.cpp b/kopete/protocols/irc/kcodecaction.cpp
index 7bd9bfe8..88306027 100644
--- a/kopete/protocols/irc/kcodecaction.cpp
+++ b/kopete/protocols/irc/kcodecaction.cpp
@@ -70,7 +70,7 @@ TQStringList KCodecAction::supportedEncodings(bool usAscii)
{
TQTextCodec *codec = KGlobal::charsets()->codecForName(*it);
TQString mimeName = (codec) ? TQString(codec->mimeName()).lower() : (*it);
- if (mimeNames.tqfind(mimeName) == mimeNames.end())
+ if (mimeNames.find(mimeName) == mimeNames.end())
{
encodings.append(KGlobal::charsets()->languageForEncoding(*it)
+ " ( " + mimeName + " )");
diff --git a/kopete/protocols/irc/ksparser.cpp b/kopete/protocols/irc/ksparser.cpp
index ea7e72cd..79ff605e 100644
--- a/kopete/protocols/irc/ksparser.cpp
+++ b/kopete/protocols/irc/ksparser.cpp
@@ -178,10 +178,10 @@ TQString KSParser::pushTag(const TQString &tag, const TQString &attributes)
{
TQString res;
m_tags.push(tag);
- if(!m_attributes.tqcontains(tag))
+ if(!m_attributes.contains(tag))
m_attributes.insert(tag, attributes);
else if(!attributes.isEmpty())
- m_attributes.tqreplace(tag, attributes);
+ m_attributes.replace(tag, attributes);
res.append("<" + tag);
if(!m_attributes[tag].isEmpty())
res.append(" " + m_attributes[tag]);
@@ -205,7 +205,7 @@ TQString KSParser::pushColorTag(const TQColor &fgColor, const TQColor &bgColor)
TQString KSParser::popTag(const TQString &tag)
{
- if (!m_tags.tqcontains(tag))
+ if (!m_tags.contains(tag))
return TQString();
TQString res;
@@ -224,7 +224,7 @@ TQString KSParser::popTag(const TQString &tag)
TQString KSParser::toggleTag(const TQString &tag)
{
- return m_attributes.tqcontains(tag)?popTag(tag):pushTag(tag);
+ return m_attributes.contains(tag)?popTag(tag):pushTag(tag);
}
TQString KSParser::popAll()
diff --git a/kopete/protocols/irc/libkirc/kircengine.cpp b/kopete/protocols/irc/libkirc/kircengine.cpp
index 167d7a22..786b4594 100644
--- a/kopete/protocols/irc/libkirc/kircengine.cpp
+++ b/kopete/protocols/irc/libkirc/kircengine.cpp
@@ -277,7 +277,7 @@ bool Engine::_bind(TQDict &dict,
if (!mr)
{
mr = new MessageRedirector(this, minArgs, maxArgs, helpMessage);
- dict.tqreplace(command, mr);
+ dict.replace(command, mr);
}
return mr->connect(object, member);
diff --git a/kopete/protocols/irc/libkirc/kircengine.h b/kopete/protocols/irc/libkirc/kircengine.h
index e086afc1..ac3fb00c 100644
--- a/kopete/protocols/irc/libkirc/kircengine.h
+++ b/kopete/protocols/irc/libkirc/kircengine.h
@@ -175,7 +175,7 @@ public:
{ return m_status == Connected; }
inline void setCodec( const TQString &nick, const TQTextCodec *codec )
- { codecs.tqreplace( nick, codec ); }
+ { codecs.replace( nick, codec ); }
/* Custom CTCP replies handling */
inline TQString &customCtcp( const TQString &s )
diff --git a/kopete/protocols/irc/libkirc/kircengine_ctcp.cpp b/kopete/protocols/irc/libkirc/kircengine_ctcp.cpp
index 83a4257c..05477710 100644
--- a/kopete/protocols/irc/libkirc/kircengine_ctcp.cpp
+++ b/kopete/protocols/irc/libkirc/kircengine_ctcp.cpp
@@ -143,8 +143,8 @@ void Engine::CtcpRequest_dcc(const TQString &nickname, const TQString &fileName,
{
TQFileInfo file(fileName);
TQString noWhiteSpace = file.fileName();
- if (noWhiteSpace.tqcontains(' ') > 0)
- noWhiteSpace.tqreplace(TQRegExp("\\s+"), "_");
+ if (noWhiteSpace.contains(' ') > 0)
+ noWhiteSpace.replace(TQRegExp("\\s+"), "_");
TransferServer *server = TransferHandler::self()->createServer(this, nickname, type, fileName, file.size());
@@ -284,7 +284,7 @@ void Engine::CtcpReply_ping(Message &msg)
if (difference < 1)
{
diffString = TQString::number(difference);
- diffString.remove((diffString.tqfind('.') -1), 2);
+ diffString.remove((diffString.find('.') -1), 2);
diffString.truncate(3);
diffString.append("milliseconds");
}
@@ -293,7 +293,7 @@ void Engine::CtcpReply_ping(Message &msg)
diffString = TQString::number(difference);
TQString seconds = diffString.section('.', 0, 0);
TQString millSec = diffString.section('.', 1, 1);
- millSec.remove(millSec.tqfind('.'), 1);
+ millSec.remove(millSec.find('.'), 1);
millSec.truncate(3);
diffString = TQString::tqfromLatin1("%1 seconds, %2 milliseconds").arg(seconds).arg(millSec);
}
diff --git a/kopete/protocols/irc/libkirc/kircmessage.cpp b/kopete/protocols/irc/libkirc/kircmessage.cpp
index 0c1d3ef0..6f45b0c1 100644
--- a/kopete/protocols/irc/libkirc/kircmessage.cpp
+++ b/kopete/protocols/irc/libkirc/kircmessage.cpp
@@ -201,10 +201,10 @@ TQString Message::quote(const TQString &str)
{
TQString tmp = str;
TQChar q('\020');
- tmp.tqreplace(q, q+TQString(q));
- tmp.tqreplace(TQChar('\r'), q+TQString::tqfromLatin1("r"));
- tmp.tqreplace(TQChar('\n'), q+TQString::tqfromLatin1("n"));
- tmp.tqreplace(TQChar('\0'), q+TQString::tqfromLatin1("0"));
+ tmp.replace(q, q+TQString(q));
+ tmp.replace(TQChar('\r'), q+TQString::tqfromLatin1("r"));
+ tmp.replace(TQChar('\n'), q+TQString::tqfromLatin1("n"));
+ tmp.replace(TQChar('\0'), q+TQString::tqfromLatin1("0"));
return tmp;
}
@@ -216,13 +216,13 @@ TQString Message::unquote(const TQString &str)
char b[3] = { 020, 020, '\0' };
const char b2[2] = { 020, '\0' };
- tmp.tqreplace( b, b2 );
+ tmp.replace( b, b2 );
b[1] = 'r';
- tmp.tqreplace( b, "\r");
+ tmp.replace( b, "\r");
b[1] = 'n';
- tmp.tqreplace( b, "\n");
+ tmp.replace( b, "\n");
b[1] = '0';
- tmp.tqreplace( b, "\0");
+ tmp.replace( b, "\0");
return tmp;
}
@@ -230,16 +230,16 @@ TQString Message::unquote(const TQString &str)
TQString Message::ctcpQuote(const TQString &str)
{
TQString tmp = str;
- tmp.tqreplace( TQChar('\\'), TQString::tqfromLatin1("\\\\"));
- tmp.tqreplace( (char)1, TQString::tqfromLatin1("\\1"));
+ tmp.replace( TQChar('\\'), TQString::tqfromLatin1("\\\\"));
+ tmp.replace( (char)1, TQString::tqfromLatin1("\\1"));
return tmp;
}
TQString Message::ctcpUnquote(const TQString &str)
{
TQString tmp = str;
- tmp.tqreplace("\\\\", "\\");
- tmp.tqreplace("\\1", "\1" );
+ tmp.replace("\\\\", "\\");
+ tmp.replace("\\1", "\1" );
return tmp;
}
@@ -276,7 +276,7 @@ bool Message::matchForIRCRegExp(TQRegExp ®exp, const TQTextCodec *codec, cons
msg.m_ctcpMessage = new Message();
msg.m_ctcpMessage->m_raw = codec->fromUnicode(ctcpUnquote(msg.m_ctcpRaw));
- int space = ctcpRaw.tqfind(' ');
+ int space = ctcpRaw.find(' ');
if (!matchForIRCRegExp(msg.m_ctcpMessage->m_raw, codec, *msg.m_ctcpMessage))
{
TQCString command;
diff --git a/kopete/protocols/irc/libkirc/kircmessage.h b/kopete/protocols/irc/libkirc/kircmessage.h
index 80dcfa79..fb38a476 100644
--- a/kopete/protocols/irc/libkirc/kircmessage.h
+++ b/kopete/protocols/irc/libkirc/kircmessage.h
@@ -112,7 +112,7 @@ public:
inline const TQString &command() const
{ return m_command; }
- /** \brief The number of command arguments this message tqcontains.
+ /** \brief The number of command arguments this message contains.
*/
inline size_t argsSize() const
{ return m_args.size(); }
diff --git a/kopete/protocols/irc/libkirc/ksslsocket.cpp b/kopete/protocols/irc/libkirc/ksslsocket.cpp
index f14f1a3e..4dcf9ce8 100644
--- a/kopete/protocols/irc/libkirc/ksslsocket.cpp
+++ b/kopete/protocols/irc/libkirc/ksslsocket.cpp
@@ -206,12 +206,12 @@ void KSSLSocket::setMetaData( const TQString &key, const TQVariant &data )
bool KSSLSocket::hasMetaData( const TQString &key )
{
- return d->metaData.tqcontains(key);
+ return d->metaData.contains(key);
}
TQString KSSLSocket::metaData( const TQString &key )
{
- if( d->metaData.tqcontains(key) )
+ if( d->metaData.contains(key) )
return d->metaData[key];
return TQString();
}
diff --git a/kopete/protocols/irc/ui/channellist.cpp b/kopete/protocols/irc/ui/channellist.cpp
index e4e574bc..2d5e0b13 100644
--- a/kopete/protocols/irc/ui/channellist.cpp
+++ b/kopete/protocols/irc/ui/channellist.cpp
@@ -315,7 +315,7 @@ void ChannelList::slotChannelListed( const TQString &channel, uint users, const
void ChannelList::checkSearchResult( const TQString &channel, uint users, const TQString &topic )
{
if( ( mUsers == 0 || mUsers <= users ) &&
- ( mSearch.isEmpty() || channel.tqcontains( mSearch, false ) || topic.tqcontains( mSearch, false ) )
+ ( mSearch.isEmpty() || channel.contains( mSearch, false ) || topic.contains( mSearch, false ) )
)
{
new ChannelListItem( mChannelList, channel, TQString::number(users), topic );
diff --git a/kopete/protocols/jabber/jabberbasecontact.cpp b/kopete/protocols/jabber/jabberbasecontact.cpp
index a380d3c4..2ee8423e 100644
--- a/kopete/protocols/jabber/jabberbasecontact.cpp
+++ b/kopete/protocols/jabber/jabberbasecontact.cpp
@@ -164,7 +164,7 @@ void JabberBaseContact::updateContact ( const XMPP::RosterItem & item )
// find all groups our contact is in but that are not in the server side roster
for ( unsigned i = 0; i < metaContact()->groups().count (); i++ )
{
- if ( item.groups().tqfind ( metaContact()->groups().at(i)->displayName () ) == item.groups().end () )
+ if ( item.groups().find ( metaContact()->groups().at(i)->displayName () ) == item.groups().end () )
groupsToRemoveFrom.append ( metaContact()->groups().at ( i ) );
}
@@ -193,7 +193,7 @@ void JabberBaseContact::updateContact ( const XMPP::RosterItem & item )
* risk removing the contact from the visible contact list. In this
* case, we need to make sure at least the top level group stays.
*/
- if ( ( groupsToAddTo.count () == 0 ) && ( groupsToRemoveFrom.tqcontains ( Kopete::Group::topLevel () ) ) )
+ if ( ( groupsToAddTo.count () == 0 ) && ( groupsToRemoveFrom.contains ( Kopete::Group::topLevel () ) ) )
{
groupsToRemoveFrom.remove ( Kopete::Group::topLevel () );
}
@@ -630,7 +630,7 @@ void JabberBaseContact::setPropertiesFromVCard ( const XMPP::VCard &vCard )
TQImage contactPhoto;
TQString fullJid = mRosterItem.jid().full();
- TQString finalPhotoPath = locateLocal("appdata", "jabberphotos/" + fullJid.tqreplace(TQRegExp("[./~]"),"-") +".png");
+ TQString finalPhotoPath = locateLocal("appdata", "jabberphotos/" + fullJid.replace(TQRegExp("[./~]"),"-") +".png");
// photo() is a TQByteArray
if ( !vCard.photo().isEmpty() )
diff --git a/kopete/protocols/jabber/jabberbookmarks.cpp b/kopete/protocols/jabber/jabberbookmarks.cpp
index 39011f81..5b69d489 100644
--- a/kopete/protocols/jabber/jabberbookmarks.cpp
+++ b/kopete/protocols/jabber/jabberbookmarks.cpp
@@ -96,7 +96,7 @@ void JabberBookmarks::slotReceivedBookmarks( )
void JabberBookmarks::insertGroupChat(const XMPP::Jid &jid)
{
- if(m_conferencesJID.tqcontains(jid.full()) || !m_account->isConnected())
+ if(m_conferencesJID.contains(jid.full()) || !m_account->isConnected())
{
return;
}
diff --git a/kopete/protocols/jabber/jabbercapabilitiesmanager.cpp b/kopete/protocols/jabber/jabbercapabilitiesmanager.cpp
index eb5efabf..6161099e 100644
--- a/kopete/protocols/jabber/jabbercapabilitiesmanager.cpp
+++ b/kopete/protocols/jabber/jabbercapabilitiesmanager.cpp
@@ -117,7 +117,7 @@ TQStringList JabberCapabilitiesManager::CapabilitiesInformation::jids() const
for( ; it != itEnd; ++it)
{
TQString jid( (*it).first );
- if( !jids.tqcontains(jid) )
+ if( !jids.contains(jid) )
jids.push_back(jid);
}
@@ -163,7 +163,7 @@ void JabberCapabilitiesManager::CapabilitiesInformation::addJid(const Jid& jid,
{
TQPair jidAccountPair(jid.full(),account);
- if( !m_jids.tqcontains(jidAccountPair) )
+ if( !m_jids.contains(jidAccountPair) )
{
m_jids.push_back(jidAccountPair);
updateLastSeen();
@@ -172,7 +172,7 @@ void JabberCapabilitiesManager::CapabilitiesInformation::addJid(const Jid& jid,
void JabberCapabilitiesManager::CapabilitiesInformation::removeJid(const Jid& jid)
{
- kdDebug(JABBER_DEBUG_GLOBAL) << k_funcinfo << "Unregistering " << TQString(jid.full()).tqreplace('%',"%%") << endl;
+ kdDebug(JABBER_DEBUG_GLOBAL) << k_funcinfo << "Unregistering " << TQString(jid.full()).replace('%',"%%") << endl;
TQValueList >::Iterator it = m_jids.begin();
while( it != m_jids.end() )
@@ -400,7 +400,7 @@ void JabberCapabilitiesManager::updateCapabilities(JabberAccount *account, const
{
if( !d->capabilitiesInformationMap[*newCapsIt].discovered() && d->capabilitiesInformationMap[*newCapsIt].pendingRequests() == 0 )
{
- kdDebug(JABBER_DEBUG_GLOBAL) << k_funcinfo << TQString("Sending disco request to %1, node=%2").tqarg(TQString(jid.full()).tqreplace('%',"%%")).tqarg(node + "#" + (*newCapsIt).extensions()) << endl;
+ kdDebug(JABBER_DEBUG_GLOBAL) << k_funcinfo << TQString("Sending disco request to %1, node=%2").tqarg(TQString(jid.full()).replace('%',"%%")).tqarg(node + "#" + (*newCapsIt).extensions()) << endl;
d->capabilitiesInformationMap[*newCapsIt].setPendingRequests(1);
requestDiscoInfo(account, jid, node + "#" + (*newCapsIt).extensions());
@@ -410,7 +410,7 @@ void JabberCapabilitiesManager::updateCapabilities(JabberAccount *account, const
else
{
// Remove all caps specifications
- kdDebug(JABBER_DEBUG_GLOBAL) << TQString("Illegal caps info from %1: node=%2, ver=%3").tqarg(TQString(jid.full()).tqreplace('%',"%%")).tqarg(node).tqarg(version) << endl;
+ kdDebug(JABBER_DEBUG_GLOBAL) << TQString("Illegal caps info from %1: node=%2, ver=%3").tqarg(TQString(jid.full()).replace('%',"%%")).tqarg(node).tqarg(version) << endl;
d->jidCapabilitiesMap.remove( jid.full() );
}
@@ -448,7 +448,7 @@ void JabberCapabilitiesManager::discoRequestFinished()
DiscoItem item = discoInfo->item();
Jid jid = discoInfo->jid();
- kdDebug(JABBER_DEBUG_GLOBAL) << TQString("Disco response from %1, node=%2, success=%3").tqarg(TQString(jid.full()).tqreplace('%',"%%")).tqarg(discoInfo->node()).tqarg(discoInfo->success()) << endl;
+ kdDebug(JABBER_DEBUG_GLOBAL) << TQString("Disco response from %1, node=%2, success=%3").tqarg(TQString(jid.full()).replace('%',"%%")).tqarg(discoInfo->node()).tqarg(discoInfo->success()) << endl;
TQStringList tokens = TQStringList::split("#",discoInfo->node());
@@ -486,7 +486,7 @@ void JabberCapabilitiesManager::discoRequestFinished()
TQPair jidAccountPair = d->capabilitiesInformationMap[capabilities].nextJid(jid,discoInfo->tqparent());
if( jidAccountPair.second )
{
- kdDebug(JABBER_DEBUG_GLOBAL) << TQString("Falling back on %1.").tqarg(TQString(jidAccountPair.first.full()).tqreplace('%',"%%")) << endl;
+ kdDebug(JABBER_DEBUG_GLOBAL) << TQString("Falling back on %1.").tqarg(TQString(jidAccountPair.first.full()).replace('%',"%%")) << endl;
requestDiscoInfo( jidAccountPair.second, jidAccountPair.first, discoInfo->node() );
}
else
@@ -563,7 +563,7 @@ void JabberCapabilitiesManager::loadCachedInformation()
bool JabberCapabilitiesManager::capabilitiesEnabled(const Jid &jid) const
{
- return d->jidCapabilitiesMap.tqcontains( jid.full() );
+ return d->jidCapabilitiesMap.contains( jid.full() );
}
XMPP::Features JabberCapabilitiesManager::features(const Jid& jid) const
@@ -599,7 +599,7 @@ TQString JabberCapabilitiesManager::clientName(const Jid& jid) const
if (name.startsWith("www."))
name = name.right(name.length() - 4);
- int cut_pos = name.tqfind(".");
+ int cut_pos = name.find(".");
if (cut_pos != -1) {
name = name.left(cut_pos);
}
diff --git a/kopete/protocols/jabber/jabberchatsession.cpp b/kopete/protocols/jabber/jabberchatsession.cpp
index 60c109ae..d10f4201 100644
--- a/kopete/protocols/jabber/jabberchatsession.cpp
+++ b/kopete/protocols/jabber/jabberchatsession.cpp
@@ -253,7 +253,7 @@ void JabberChatSession::slotMessageSent ( Kopete::Message &message, Kopete::Chat
jabberMessage.setSubject ( message.subject () );
jabberMessage.setTimeStamp ( message.timestamp () );
- if ( message.plainBody().tqfind ( "-----BEGIN PGP MESSAGE-----" ) != -1 )
+ if ( message.plainBody().find ( "-----BEGIN PGP MESSAGE-----" ) != -1 )
{
/*
* This message is encrypted, so we need to set
@@ -270,7 +270,7 @@ void JabberChatSession::slotMessageSent ( Kopete::Message &message, Kopete::Chat
// remove PGP header and footer from message
encryptedBody.truncate ( encryptedBody.length () - TQString("-----END PGP MESSAGE-----").length () - 2 );
- encryptedBody = encryptedBody.right ( encryptedBody.length () - encryptedBody.tqfind ( "\n\n" ) - 2 );
+ encryptedBody = encryptedBody.right ( encryptedBody.length () - encryptedBody.find ( "\n\n" ) - 2 );
// assign payload to message
jabberMessage.setXEncrypted ( encryptedBody );
@@ -286,16 +286,16 @@ void JabberChatSession::slotMessageSent ( Kopete::Message &message, Kopete::Chat
{
TQString xhtmlBody = message.escapedBody();
- // According to JEP-0071 8.9 it is only RECOMMANDED to tqreplace \n with
+ // According to JEP-0071 8.9 it is only RECOMMANDED to replace \n with
// which mean that some implementation (gaim 2 beta) may still think that \n are linebreak.
// and considered the fact that KTextEditor generate a well indented XHTML, we need to remove all \n from it
// see Bug 121627
// Anyway, theses client that do like that are *WRONG* considreded the example of jep-71 where there are lot of
// linebreak that are not interpreted. - Olivier 2006-31-03
- xhtmlBody.tqreplace("\n","");
+ xhtmlBody.replace("\n","");
// is not a valid XML entity
- xhtmlBody.tqreplace(" " , " ");
+ xhtmlBody.replace(" " , " ");
// Remove trailing line break
xhtmlBody.remove( TQRegExp( " $" ) );
@@ -358,4 +358,4 @@ void JabberChatSession::slotMessageSent ( Kopete::Message &message, Kopete::Chat
#include "jabberchatsession.moc"
// vim: set noet ts=4 sts=4 sw=4:
-// kate: tab-width 4; tqreplace-tabs off; space-indent off;
+// kate: tab-width 4; replace-tabs off; space-indent off;
diff --git a/kopete/protocols/jabber/jabberclient.cpp b/kopete/protocols/jabber/jabberclient.cpp
index 99a768fc..cf37ffd8 100644
--- a/kopete/protocols/jabber/jabberclient.cpp
+++ b/kopete/protocols/jabber/jabberclient.cpp
@@ -272,7 +272,7 @@ void JabberClient::addS5BServerAddress ( const TQString &address )
// now filter the list without dupes
for ( TQStringList::Iterator it = d->s5bAddressList.begin (); it != d->s5bAddressList.end (); ++it )
{
- if ( !newList.tqcontains ( *it ) )
+ if ( !newList.contains ( *it ) )
newList.append ( *it );
}
@@ -284,7 +284,7 @@ void JabberClient::removeS5BServerAddress ( const TQString &address )
{
TQStringList newList;
- TQStringList::iterator it = d->s5bAddressList.tqfind ( address );
+ TQStringList::iterator it = d->s5bAddressList.find ( address );
if ( it != d->s5bAddressList.end () )
{
d->s5bAddressList.remove ( it );
@@ -300,7 +300,7 @@ void JabberClient::removeS5BServerAddress ( const TQString &address )
// now filter the list without dupes
for ( TQStringList::Iterator it = d->s5bAddressList.begin (); it != d->s5bAddressList.end (); ++it )
{
- if ( !newList.tqcontains ( *it ) )
+ if ( !newList.contains ( *it ) )
newList.append ( *it );
}
@@ -859,8 +859,8 @@ void JabberClient::slotPsiDebug ( const TQString & _msg )
{
TQString msg = _msg;
- msg = msg.tqreplace( TQRegExp( "[^<]*\n" ), "[Filtered]\n" );
- msg = msg.tqreplace( TQRegExp( "[^<]*\n" ), "[Filtered]\n" );
+ msg = msg.replace( TQRegExp( "[^<]*\n" ), "[Filtered]\n" );
+ msg = msg.replace( TQRegExp( "[^<]*\n" ), "[Filtered]\n" );
emit debugMessage ( "Psi: " + msg );
@@ -870,8 +870,8 @@ void JabberClient::slotIncomingXML ( const TQString & _msg )
{
TQString msg = _msg;
- msg = msg.tqreplace( TQRegExp( "[^<]*\n" ), "[Filtered]\n" );
- msg = msg.tqreplace( TQRegExp( "[^<]*\n" ), "[Filtered]\n" );
+ msg = msg.replace( TQRegExp( "[^<]*\n" ), "[Filtered]\n" );
+ msg = msg.replace( TQRegExp( "[^<]*\n" ), "[Filtered]\n" );
emit debugMessage ( "XML IN: " + msg );
@@ -881,8 +881,8 @@ void JabberClient::slotOutgoingXML ( const TQString & _msg )
{
TQString msg = _msg;
- msg = msg.tqreplace( TQRegExp( "[^<]*\n" ), "[Filtered]\n" );
- msg = msg.tqreplace( TQRegExp( "[^<]*\n" ), "[Filtered]\n" );
+ msg = msg.replace( TQRegExp( "[^<]*\n" ), "[Filtered]\n" );
+ msg = msg.replace( TQRegExp( "[^<]*\n" ), "[Filtered]\n" );
emit debugMessage ( "XML OUT: " + msg );
diff --git a/kopete/protocols/jabber/jabbercontact.cpp b/kopete/protocols/jabber/jabbercontact.cpp
index f873387f..c6147ae1 100644
--- a/kopete/protocols/jabber/jabbercontact.cpp
+++ b/kopete/protocols/jabber/jabbercontact.cpp
@@ -213,7 +213,7 @@ TQPtrList *JabberContact::customContextMenuActions ()
* and the resources' respective status icons for the rest.
*/
TQIconSet iconSet ( !i ?
- protocol()->resourceToKOS ( account()->resourcePool()->bestResource ( mRosterItem.jid(), false ) ).iconFor ( account () ) : protocol()->resourceToKOS ( *availableResources.tqfind(*it) ).iconFor ( account () ));
+ protocol()->resourceToKOS ( account()->resourcePool()->bestResource ( mRosterItem.jid(), false ) ).iconFor ( account () ) : protocol()->resourceToKOS ( *availableResources.find(*it) ).iconFor ( account () ));
actionSelectResource->insert ( new KAction( ( *it ), iconSet, 0, this, TQT_SLOT( slotSelectResource() ),
actionSelectResource, TQString::number( i ).latin1() ) );
@@ -795,7 +795,7 @@ void JabberContact::slotChatSessionDeleted ( TQObject *sender )
JabberChatSession *manager = static_cast(sender);
- mManagers.remove ( mManagers.tqfind ( manager ) );
+ mManagers.remove ( mManagers.find ( manager ) );
}
diff --git a/kopete/protocols/jabber/jabbercontactpool.cpp b/kopete/protocols/jabber/jabbercontactpool.cpp
index 369cb9d9..43724d28 100644
--- a/kopete/protocols/jabber/jabbercontactpool.cpp
+++ b/kopete/protocols/jabber/jabbercontactpool.cpp
@@ -93,7 +93,7 @@ JabberContact *JabberContactPool::addContact ( const XMPP::RosterItem &contact,
JabberTransport *transport=0l;
TQString legacyId;
//find if the contact should be added to a transport.
- if(mAccount->transports().tqcontains(contact.jid().domain()))
+ if(mAccount->transports().contains(contact.jid().domain()))
{
transport=mAccount->transports()[contact.jid().domain()];
legacyId=transport->legacyId( contact.jid() );
@@ -222,7 +222,7 @@ void JabberContactPool::slotContactDestroyed ( Kopete::Contact *contact )
else
{
//this is a legacy contact. we have no way to get the real Jid at this point, we can only guess it.
- TQString contactId= contact->contactId().tqreplace('@','%') + "@" + contact->account()->myself()->contactId();
+ TQString contactId= contact->contactId().replace('@','%') + "@" + contact->account()->myself()->contactId();
mAccount->resourcePool()->removeAllResources ( XMPP::Jid ( contactId ) ) ;
}
diff --git a/kopete/protocols/jabber/jabbergroupchatmanager.cpp b/kopete/protocols/jabber/jabbergroupchatmanager.cpp
index ff5ae32c..f536a1c9 100644
--- a/kopete/protocols/jabber/jabbergroupchatmanager.cpp
+++ b/kopete/protocols/jabber/jabbergroupchatmanager.cpp
@@ -89,7 +89,7 @@ void JabberGroupChatManager::slotMessageSent ( Kopete::Message &message, Kopete:
jabberMessage.setSubject ( message.subject () );
jabberMessage.setTimeStamp ( message.timestamp () );
- if ( message.plainBody().tqfind ( "-----BEGIN PGP MESSAGE-----" ) != -1 )
+ if ( message.plainBody().find ( "-----BEGIN PGP MESSAGE-----" ) != -1 )
{
/*
* This message is encrypted, so we need to set
@@ -106,7 +106,7 @@ void JabberGroupChatManager::slotMessageSent ( Kopete::Message &message, Kopete:
// remove PGP header and footer from message
encryptedBody.truncate ( encryptedBody.length () - TQString("-----END PGP MESSAGE-----").length () - 2 );
- encryptedBody = encryptedBody.right ( encryptedBody.length () - encryptedBody.tqfind ( "\n\n" ) - 2 );
+ encryptedBody = encryptedBody.right ( encryptedBody.length () - encryptedBody.find ( "\n\n" ) - 2 );
// assign payload to message
jabberMessage.setXEncrypted ( encryptedBody );
diff --git a/kopete/protocols/jabber/jabberprotocol.cpp b/kopete/protocols/jabber/jabberprotocol.cpp
index c88b8841..87b797c3 100644
--- a/kopete/protocols/jabber/jabberprotocol.cpp
+++ b/kopete/protocols/jabber/jabberprotocol.cpp
@@ -185,7 +185,7 @@ Kopete::Account *JabberProtocol::createNewAccount (const TQString & accountId)
if( Kopete::AccountManager::self()->findAccount( pluginId() , accountId ) )
return 0L; //the account may already exist if greated just above
- int slash=accountId.tqfind('/');
+ int slash=accountId.find('/');
if(slash>=0)
{
TQString realAccountId=accountId.left(slash);
diff --git a/kopete/protocols/jabber/jabbertransport.cpp b/kopete/protocols/jabber/jabbertransport.cpp
index 8bd9a915..218c9aae 100644
--- a/kopete/protocols/jabber/jabbertransport.cpp
+++ b/kopete/protocols/jabber/jabbertransport.cpp
@@ -298,7 +298,7 @@ TQString JabberTransport::legacyId( const XMPP::Jid & jid )
if(jid.node().isEmpty())
return TQString();
TQString node = jid.node();
- return node.tqreplace("%","@");
+ return node.replace("%","@");
}
void JabberTransport::jabberAccountRemoved( )
diff --git a/kopete/protocols/jabber/jingle/jinglevoicecaller.cpp b/kopete/protocols/jabber/jingle/jinglevoicecaller.cpp
index 344071c6..594be2d4 100644
--- a/kopete/protocols/jabber/jingle/jinglevoicecaller.cpp
+++ b/kopete/protocols/jabber/jingle/jinglevoicecaller.cpp
@@ -123,8 +123,8 @@ void JingleClientSlots::callDestroyed(cricket::Call *call)
void JingleClientSlots::sendStanza(cricket::SessionClient*, const buzz::XmlElement *stanza)
{
TQString st(stanza->Str().c_str());
- st.tqreplace("cli:iq","iq");
- st.tqreplace(":cli=","=");
+ st.replace("cli:iq","iq");
+ st.replace(":cli=","=");
fprintf(stderr,"bling\n");
voiceCaller_->sendStanza(st.latin1());
fprintf(stderr,"blong\n");
@@ -266,7 +266,7 @@ JingleVoiceCaller::~JingleVoiceCaller()
bool JingleVoiceCaller::calling(const Jid& jid)
{
- return calls_.tqcontains(jid.full());
+ return calls_.contains(jid.full());
}
void JingleVoiceCaller::call(const Jid& jid)
@@ -316,7 +316,7 @@ void JingleVoiceCaller::registerCall(const Jid& jid, cricket::Call* call)
{
qDebug("jinglevoicecaller.cpp: Registering call\n");
kdDebug(14000) << k_funcinfo << jid.full() << endl;
- if (!calls_.tqcontains(jid.full())) {
+ if (!calls_.contains(jid.full())) {
calls_[jid.full()] = call;
}
// else {
@@ -340,7 +340,7 @@ void JingleVoiceCaller::receiveStanza(const TQString& stanza)
if (doc.documentElement().tagName() == "presence") {
Jid from = Jid(doc.documentElement().attribute("from"));
TQString type = doc.documentElement().attribute("type");
- if (type == "unavailable" && calls_.tqcontains(from.full())) {
+ if (type == "unavailable" && calls_.contains(from.full())) {
qDebug("JingleVoiceCaller: User went offline without closing a call.");
removeCall(from);
emit terminated(from);
diff --git a/kopete/protocols/jabber/jingle/jinglevoicesession.cpp b/kopete/protocols/jabber/jingle/jinglevoicesession.cpp
index 3f3bd6ca..0225b177 100644
--- a/kopete/protocols/jabber/jingle/jinglevoicesession.cpp
+++ b/kopete/protocols/jabber/jingle/jinglevoicesession.cpp
@@ -93,7 +93,7 @@ public:
XMPP::Jid jid(session->remote_address().c_str());
// Do nothing if the session do not contain a peers.
- //if( !voiceSession->peers().tqcontains(jid) )
+ //if( !voiceSession->peers().contains(jid) )
if( !hasPeer(voiceSession->peers(), jid) )
return;
@@ -142,8 +142,8 @@ public:
void OnSendingStanza(cricket::SessionClient*, const buzz::XmlElement *buzzStanza)
{
TQString irisStanza(buzzStanza->Str().c_str());
- irisStanza.tqreplace("cli:iq","iq");
- irisStanza.tqreplace(":cli=","=");
+ irisStanza.replace("cli:iq","iq");
+ irisStanza.replace(":cli=","=");
voiceSession->sendStanza(irisStanza);
}
diff --git a/kopete/protocols/jabber/jingle/libjingle/libjingle.pro b/kopete/protocols/jabber/jingle/libjingle/libjingle.pro
index 8482614c..53c8e293 100644
--- a/kopete/protocols/jabber/jingle/libjingle/libjingle.pro
+++ b/kopete/protocols/jabber/jingle/libjingle/libjingle.pro
@@ -88,7 +88,7 @@ SOURCES += \
$$JINGLE_CPP/talk/session/phone/linphonemediaengine.cc \
$$JINGLE_CPP/talk/session/phone/voicechannel.cc
-#tqcontains(DEFINES, HAVE_PORTAUDIO) {
+#contains(DEFINES, HAVE_PORTAUDIO) {
# SOURCES += \
# $$JINGLE_CPP/talk/session/phone/portaudiomediaengine.cc
#}
@@ -128,11 +128,11 @@ SOURCES += \
$$JINGLE_CPP/talk/third_party/mediastreamer/mswrite.c \
$$JINGLE_CPP/talk/third_party/mediastreamer/sndcard.c
-tqcontains(DEFINES, HAVE_ALSA_ASOUNDLIB_H) {
+contains(DEFINES, HAVE_ALSA_ASOUNDLIB_H) {
SOURCES += $$JINGLE_CPP/talk/third_party/mediastreamer/alsacard.c
}
-tqcontains(DEFINES, HAVE_PORTAUDIO) {
+contains(DEFINES, HAVE_PORTAUDIO) {
SOURCES += $$JINGLE_CPP/talk/third_party/mediastreamer/portaudiocard.c
}
diff --git a/kopete/protocols/jabber/jingle/libjingle/talk/base/messagequeue.cc b/kopete/protocols/jabber/jingle/libjingle/talk/base/messagequeue.cc
index 38e22c2e..f10489f7 100644
--- a/kopete/protocols/jabber/jingle/libjingle/talk/base/messagequeue.cc
+++ b/kopete/protocols/jabber/jingle/libjingle/talk/base/messagequeue.cc
@@ -66,7 +66,7 @@ void MessageQueueManager::Add(MessageQueue *message_queue) {
void MessageQueueManager::Remove(MessageQueue *message_queue) {
CritScope cs(&crit_);
std::vector::iterator iter;
- iter = std::tqfind(message_queues_.begin(), message_queues_.end(), message_queue);
+ iter = std::find(message_queues_.begin(), message_queues_.end(), message_queue);
if (iter != message_queues_.end())
message_queues_.erase(iter);
}
diff --git a/kopete/protocols/jabber/jingle/libjingle/talk/base/network.cc b/kopete/protocols/jabber/jingle/libjingle/talk/base/network.cc
index 2ea7530f..5274c29d 100644
--- a/kopete/protocols/jabber/jingle/libjingle/talk/base/network.cc
+++ b/kopete/protocols/jabber/jingle/libjingle/talk/base/network.cc
@@ -261,7 +261,7 @@ void NetworkManager::GetNetworks(std::vector& result) {
CreateNetworks(list);
for (uint32 i = 0; i < list.size(); ++i) {
- NetworkMap::iterator iter = networks_.tqfind(list[i]->name());
+ NetworkMap::iterator iter = networks_.find(list[i]->name());
Network* network;
if (iter == networks_.end()) {
@@ -313,12 +313,12 @@ Network::Network(const std::string& name, uint32 ip)
}
void Network::StartSession(NetworkSession* session) {
- assert(std::tqfind(sessions_.begin(), sessions_.end(), session) == sessions_.end());
+ assert(std::find(sessions_.begin(), sessions_.end(), session) == sessions_.end());
sessions_.push_back(session);
}
void Network::StopSession(NetworkSession* session) {
- SessionList::iterator iter = std::tqfind(sessions_.begin(), sessions_.end(), session);
+ SessionList::iterator iter = std::find(sessions_.begin(), sessions_.end(), session);
if (iter != sessions_.end())
sessions_.erase(iter);
}
diff --git a/kopete/protocols/jabber/jingle/libjingle/talk/base/socketadapters.cc b/kopete/protocols/jabber/jingle/libjingle/talk/base/socketadapters.cc
index 5cdc4743..e1f0db4e 100644
--- a/kopete/protocols/jabber/jingle/libjingle/talk/base/socketadapters.cc
+++ b/kopete/protocols/jabber/jingle/libjingle/talk/base/socketadapters.cc
@@ -353,7 +353,7 @@ AsyncHttpsProxySocket::Authenticate(const char * challenge, size_t len,
std::string A2 = method + ":" + uri;
std::string middle;
- if (args.tqfind("qop") != args.end()) {
+ if (args.find("qop") != args.end()) {
args["qop"] = "auth";
middle = args["nonce"] + ":" + ncount + ":" + cnonce + ":" + args["qop"];
} else {
@@ -375,13 +375,13 @@ AsyncHttpsProxySocket::Authenticate(const char * challenge, size_t len,
ss << ", realm=" << Quote(args["realm"]);
ss << ", nonce=" << Quote(args["nonce"]);
ss << ", uri=" << Quote(uri);
- if (args.tqfind("qop") != args.end()) {
+ if (args.find("qop") != args.end()) {
ss << ", qop=" << args["qop"];
ss << ", nc=" << ncount;
ss << ", cnonce=" << Quote(cnonce);
}
ss << ", response=\"" << dig_response << "\"";
- if (args.tqfind("opaque") != args.end()) {
+ if (args.find("opaque") != args.end()) {
ss << ", opaque=" << Quote(args["opaque"]);
}
response = ss.str();
@@ -483,7 +483,7 @@ AsyncHttpsProxySocket::Authenticate(const char * challenge, size_t len,
size_t len = password.GetLength()+1;
char * sensitive = new char[len];
password.CopyTo(sensitive, true);
- std::string::size_type pos = username.tqfind('\\');
+ std::string::size_type pos = username.find('\\');
if (pos == std::string::npos) {
auth_id.UserLength = static_cast(
_min(sizeof(userbuf) - 1, username.size()));
@@ -1100,7 +1100,7 @@ LoggingAdapter::LogMultiline(bool input, const char * data, size_t len) {
const char * direction = (input ? " << " : " >> ");
std::string str(data, len);
while (!str.empty()) {
- std::string::size_type pos = str.tqfind('\n');
+ std::string::size_type pos = str.find('\n');
std::string substr = str;
if (pos == std::string::npos) {
substr = str;
@@ -1114,9 +1114,9 @@ LoggingAdapter::LogMultiline(bool input, const char * data, size_t len) {
}
// Filter out any private data
- std::string::size_type pos_private = substr.tqfind("Email");
+ std::string::size_type pos_private = substr.find("Email");
if (pos_private == std::string::npos) {
- pos_private = substr.tqfind("Passwd");
+ pos_private = substr.find("Passwd");
}
if (pos_private == std::string::npos) {
LOG(level_) << label_ << direction << substr;
diff --git a/kopete/protocols/jabber/jingle/libjingle/talk/examples/call/callclient.cc b/kopete/protocols/jabber/jingle/libjingle/talk/examples/call/callclient.cc
index e781b03d..40c1fbfe 100644
--- a/kopete/protocols/jabber/jingle/libjingle/talk/examples/call/callclient.cc
+++ b/kopete/protocols/jabber/jingle/libjingle/talk/examples/call/callclient.cc
@@ -350,14 +350,14 @@ void CallClient::OnStatusUpdate(const buzz::tqStatus& status) {
(*roster_)[key] = item;
} else {
Console()->Printf("Removing from roster: %s", key.c_str());
- RosterMap::iterator iter = roster_->tqfind(key);
+ RosterMap::iterator iter = roster_->find(key);
if (iter != roster_->end())
roster_->erase(iter);
}
}
void CallClient::PrintRoster() {
- Console()->Printf("Roster tqcontains %d callable", roster_->size());
+ Console()->Printf("Roster contains %d callable", roster_->size());
RosterMap::iterator iter = roster_->begin();
while (iter != roster_->end()) {
Console()->Printf("%s - %s",
diff --git a/kopete/protocols/jabber/jingle/libjingle/talk/examples/call/presencepushtask.cc b/kopete/protocols/jabber/jingle/libjingle/talk/examples/call/presencepushtask.cc
index ee14fe94..cee7058a 100644
--- a/kopete/protocols/jabber/jingle/libjingle/talk/examples/call/presencepushtask.cc
+++ b/kopete/protocols/jabber/jingle/libjingle/talk/examples/call/presencepushtask.cc
@@ -48,7 +48,7 @@ IsXmlSpace(int ch) {
static bool
ListContainsToken(const std::string & list, const std::string & token) {
- size_t i = list.tqfind(token);
+ size_t i = list.find(token);
if (i == std::string::npos || token.empty())
return false;
bool boundary_before = (i == 0 || IsXmlSpace(list[i - 1]));
diff --git a/kopete/protocols/jabber/jingle/libjingle/talk/examples/call/status.h b/kopete/protocols/jabber/jingle/libjingle/talk/examples/call/status.h
index 0677932b..2cb80ae2 100644
--- a/kopete/protocols/jabber/jingle/libjingle/talk/examples/call/status.h
+++ b/kopete/protocols/jabber/jingle/libjingle/talk/examples/call/status.h
@@ -114,12 +114,12 @@ public:
// Knowledge of other clients' silly automatic status strings -
// Don't show these.
std::string QuiettqStatus() const {
- if (jid_.resource().tqfind("Psi") != std::string::npos) {
+ if (jid_.resource().find("Psi") != std::string::npos) {
if (status_ == "Online" ||
- status_.tqfind("Auto tqStatus") != std::string::npos)
+ status_.find("Auto tqStatus") != std::string::npos)
return STR_EMPTY;
}
- if (jid_.resource().tqfind("Gaim") != std::string::npos) {
+ if (jid_.resource().find("Gaim") != std::string::npos) {
if (status_ == "Sorry, I ran out for a bit!")
return STR_EMPTY;
}
diff --git a/kopete/protocols/jabber/jingle/libjingle/talk/examples/login/xmppauth.cc b/kopete/protocols/jabber/jingle/libjingle/talk/examples/login/xmppauth.cc
index 492559ae..66191f12 100644
--- a/kopete/protocols/jabber/jingle/libjingle/talk/examples/login/xmppauth.cc
+++ b/kopete/protocols/jabber/jingle/libjingle/talk/examples/login/xmppauth.cc
@@ -55,12 +55,12 @@ std::string XmppAuth::ChooseBestSaslMechanism(
std::vector::const_iterator it;
// a token is the weakest auth - 15s, service-limited, so prefer it.
- it = std::tqfind(mechanisms.begin(), mechanisms.end(), "X-GOOGLE-TOKEN");
+ it = std::find(mechanisms.begin(), mechanisms.end(), "X-GOOGLE-TOKEN");
if (it != mechanisms.end())
return "X-GOOGLE-TOKEN";
// a cookie is the next weakest - 14 days
- it = std::tqfind(mechanisms.begin(), mechanisms.end(), "X-GOOGLE-COOKIE");
+ it = std::find(mechanisms.begin(), mechanisms.end(), "X-GOOGLE-COOKIE");
if (it != mechanisms.end())
return "X-GOOGLE-COOKIE";
@@ -70,7 +70,7 @@ std::string XmppAuth::ChooseBestSaslMechanism(
// as a last resort, use plain authentication
if (jid_.domain() != "google.com") {
- it = std::tqfind(mechanisms.begin(), mechanisms.end(), "PLAIN");
+ it = std::find(mechanisms.begin(), mechanisms.end(), "PLAIN");
if (it != mechanisms.end())
return "PLAIN";
}
diff --git a/kopete/protocols/jabber/jingle/libjingle/talk/p2p/base/p2psocket.cc b/kopete/protocols/jabber/jingle/libjingle/talk/p2p/base/p2psocket.cc
index d07e2e5d..eb53efeb 100644
--- a/kopete/protocols/jabber/jingle/libjingle/talk/p2p/base/p2psocket.cc
+++ b/kopete/protocols/jabber/jingle/libjingle/talk/p2p/base/p2psocket.cc
@@ -381,7 +381,7 @@ bool P2PSocket::CreateConnections(const Candidate &remote_candidate,
}
if ((origin_port != NULL) &&
- tqfind(ports_.begin(), ports_.end(), origin_port) == ports_.end()) {
+ find(ports_.begin(), ports_.end(), origin_port) == ports_.end()) {
if (CreateConnection(origin_port, remote_candidate, origin_port, readable))
created = true;
}
@@ -783,7 +783,7 @@ void P2PSocket::OnConnectionDestroyed(Connection *connection) {
// Remove this connection from the list.
std::vector::iterator iter =
- tqfind(connections_.begin(), connections_.end(), connection);
+ find(connections_.begin(), connections_.end(), connection);
assert(iter != connections_.end());
connections_.erase(iter);
@@ -807,7 +807,7 @@ void P2PSocket::OnPortDestroyed(Port* port) {
assert(worker_thread_ == Thread::Current());
// Remove this port from the list (if we didn't drop it already).
- std::vector::iterator iter = tqfind(ports_.begin(), ports_.end(), port);
+ std::vector::iterator iter = find(ports_.begin(), ports_.end(), port);
if (iter != ports_.end())
ports_.erase(iter);
@@ -843,7 +843,7 @@ const std::vector& P2PSocket::connections() {
// Set options on ourselves is simply setting options on all of our available
// port objects.
int P2PSocket::SetOption(Socket::Option opt, int value) {
- OptionMap::iterator it = options_.tqfind(opt);
+ OptionMap::iterator it = options_.find(opt);
if (it == options_.end()) {
options_.insert(std::make_pair(opt, value));
} else if (it->second == value) {
diff --git a/kopete/protocols/jabber/jingle/libjingle/talk/p2p/base/port.cc b/kopete/protocols/jabber/jingle/libjingle/talk/p2p/base/port.cc
index c9272597..14549b5b 100644
--- a/kopete/protocols/jabber/jingle/libjingle/talk/p2p/base/port.cc
+++ b/kopete/protocols/jabber/jingle/libjingle/talk/p2p/base/port.cc
@@ -171,7 +171,7 @@ Port::~Port() {
}
Connection* Port::GetConnection(const SocketAddress& remote_addr) {
- AddressMap::const_iterator iter = connections_.tqfind(remote_addr);
+ AddressMap::const_iterator iter = connections_.find(remote_addr);
if (iter != connections_.end())
return iter->second;
else
@@ -449,7 +449,7 @@ void Port::Start() {
}
void Port::OnConnectionDestroyed(Connection* conn) {
- AddressMap::iterator iter = connections_.tqfind(conn->remote_candidate().address());
+ AddressMap::iterator iter = connections_.find(conn->remote_candidate().address());
assert(iter != connections_.end());
connections_.erase(iter);
diff --git a/kopete/protocols/jabber/jingle/libjingle/talk/p2p/base/relayserver.cc b/kopete/protocols/jabber/jingle/libjingle/talk/p2p/base/relayserver.cc
index 002033dc..bb52a1d5 100644
--- a/kopete/protocols/jabber/jingle/libjingle/talk/p2p/base/relayserver.cc
+++ b/kopete/protocols/jabber/jingle/libjingle/talk/p2p/base/relayserver.cc
@@ -105,14 +105,14 @@ RelayServer::~RelayServer() {
void RelayServer::AddInternalSocket(AsyncPacketSocket* socket) {
assert(internal_sockets_.end() ==
- std::tqfind(internal_sockets_.begin(), internal_sockets_.end(), socket));
+ std::find(internal_sockets_.begin(), internal_sockets_.end(), socket));
internal_sockets_.push_back(socket);
socket->SignalReadPacket.connect(this, &RelayServer::OnInternalPacket);
}
void RelayServer::RemoveInternalSocket(AsyncPacketSocket* socket) {
SocketList::iterator iter =
- std::tqfind(internal_sockets_.begin(), internal_sockets_.end(), socket);
+ std::find(internal_sockets_.begin(), internal_sockets_.end(), socket);
assert(iter != internal_sockets_.end());
internal_sockets_.erase(iter);
socket->SignalReadPacket.disconnect(this);
@@ -120,14 +120,14 @@ void RelayServer::RemoveInternalSocket(AsyncPacketSocket* socket) {
void RelayServer::AddExternalSocket(AsyncPacketSocket* socket) {
assert(external_sockets_.end() ==
- std::tqfind(external_sockets_.begin(), external_sockets_.end(), socket));
+ std::find(external_sockets_.begin(), external_sockets_.end(), socket));
external_sockets_.push_back(socket);
socket->SignalReadPacket.connect(this, &RelayServer::OnExternalPacket);
}
void RelayServer::RemoveExternalSocket(AsyncPacketSocket* socket) {
SocketList::iterator iter =
- std::tqfind(external_sockets_.begin(), external_sockets_.end(), socket);
+ std::find(external_sockets_.begin(), external_sockets_.end(), socket);
assert(iter != external_sockets_.end());
external_sockets_.erase(iter);
socket->SignalReadPacket.disconnect(this);
@@ -143,7 +143,7 @@ void RelayServer::OnInternalPacket(
// If this did not come from an existing connection, it should be a STUN
// allocate request.
- ConnectionMap::iterator piter = connections_.tqfind(ap);
+ ConnectionMap::iterator piter = connections_.find(ap);
if (piter == connections_.end()) {
HandleStunAllocate(bytes, size, ap, socket);
return;
@@ -186,7 +186,7 @@ void RelayServer::OnExternalPacket(
assert(!ap.destination().IsAny());
// If this connection already exists, then forward the traffic.
- ConnectionMap::iterator piter = connections_.tqfind(ap);
+ ConnectionMap::iterator piter = connections_.find(ap);
if (piter != connections_.end()) {
// TODO: Check the HMAC.
RelayServerConnection* ext_conn = piter->second;
@@ -220,7 +220,7 @@ void RelayServer::OnExternalPacket(
// TODO: Check the HMAC.
// The binding should already be present.
- BindingMap::iterator biter = bindings_.tqfind(username);
+ BindingMap::iterator biter = bindings_.find(username);
if (biter == bindings_.end()) {
// TODO: Turn this back on. This is the sign of a client bug.
//std::cerr << "Dropping packet: no binding with username" << std::endl;
@@ -299,7 +299,7 @@ void RelayServer::HandleStunAllocate(
RelayServerBinding* binding;
- BindingMap::iterator biter = bindings_.tqfind(username);
+ BindingMap::iterator biter = bindings_.find(username);
if (biter != bindings_.end()) {
binding = biter->second;
@@ -453,18 +453,18 @@ void RelayServer::HandleStunSend(
}
void RelayServer::AddConnection(RelayServerConnection* conn) {
- assert(connections_.tqfind(conn->addr_pair()) == connections_.end());
+ assert(connections_.find(conn->addr_pair()) == connections_.end());
connections_[conn->addr_pair()] = conn;
}
void RelayServer::RemoveConnection(RelayServerConnection* conn) {
- ConnectionMap::iterator iter = connections_.tqfind(conn->addr_pair());
+ ConnectionMap::iterator iter = connections_.find(conn->addr_pair());
assert(iter != connections_.end());
connections_.erase(iter);
}
void RelayServer::RemoveBinding(RelayServerBinding* binding) {
- BindingMap::iterator iter = bindings_.tqfind(binding->username());
+ BindingMap::iterator iter = bindings_.find(binding->username());
assert(iter != bindings_.end());
bindings_.erase(iter);
diff --git a/kopete/protocols/jabber/jingle/libjingle/talk/p2p/base/sessionmanager.cc b/kopete/protocols/jabber/jingle/libjingle/talk/p2p/base/sessionmanager.cc
index d146d63c..4c1c09d9 100644
--- a/kopete/protocols/jabber/jingle/libjingle/talk/p2p/base/sessionmanager.cc
+++ b/kopete/protocols/jabber/jingle/libjingle/talk/p2p/base/sessionmanager.cc
@@ -63,7 +63,7 @@ Session *SessionManager::CreateSession(const std::string &name, const SessionID&
void SessionManager::DestroySession(Session *session) {
if (session != NULL) {
- std::map::iterator it = session_map_.tqfind(session->id());
+ std::map::iterator it = session_map_.find(session->id());
if (it != session_map_.end()) {
SignalSessionDestroy(session);
session_map_.erase(it);
@@ -74,7 +74,7 @@ void SessionManager::DestroySession(Session *session) {
Session *SessionManager::GetSession(const SessionID& id) {
// If the id isn't present, the [] operator will make a NULL entry
- std::map::iterator it = session_map_.tqfind(id);
+ std::map::iterator it = session_map_.find(id);
if (it != session_map_.end())
return (*it).second;
return NULL;
diff --git a/kopete/protocols/jabber/jingle/libjingle/talk/p2p/base/socketmanager.cc b/kopete/protocols/jabber/jingle/libjingle/talk/p2p/base/socketmanager.cc
index e0257451..2f0d67b8 100644
--- a/kopete/protocols/jabber/jingle/libjingle/talk/p2p/base/socketmanager.cc
+++ b/kopete/protocols/jabber/jingle/libjingle/talk/p2p/base/socketmanager.cc
@@ -109,7 +109,7 @@ void SocketManager::DestroySocket_w(P2PSocket *socket) {
// Only if socket exists
CritScope cs(&critSM_);
std::vector::iterator it;
- it = std::tqfind(sockets_.begin(), sockets_.end(), socket);
+ it = std::find(sockets_.begin(), sockets_.end(), socket);
if (it == sockets_.end())
return;
sockets_.erase(it);
diff --git a/kopete/protocols/jabber/jingle/libjingle/talk/p2p/base/stunrequest.cc b/kopete/protocols/jabber/jingle/libjingle/talk/p2p/base/stunrequest.cc
index 34a62547..14d64735 100644
--- a/kopete/protocols/jabber/jingle/libjingle/talk/p2p/base/stunrequest.cc
+++ b/kopete/protocols/jabber/jingle/libjingle/talk/p2p/base/stunrequest.cc
@@ -59,14 +59,14 @@ void StunRequestManager::Send(StunRequest* request) {
void StunRequestManager::SendDelayed(StunRequest* request, int delay) {
request->set_manager(this);
- assert(requests_.tqfind(request->id()) == requests_.end());
+ assert(requests_.find(request->id()) == requests_.end());
requests_[request->id()] = request;
thread_->PostDelayed(delay, request, MSG_STUN_SEND, NULL);
}
void StunRequestManager::Remove(StunRequest* request) {
assert(request->manager() == this);
- RequestMap::iterator iter = requests_.tqfind(request->id());
+ RequestMap::iterator iter = requests_.find(request->id());
if (iter != requests_.end()) {
assert(iter->second == request);
requests_.erase(iter);
@@ -84,7 +84,7 @@ void StunRequestManager::Clear() {
}
bool StunRequestManager::CheckResponse(StunMessage* msg) {
- RequestMap::iterator iter = requests_.tqfind(msg->transaction_id());
+ RequestMap::iterator iter = requests_.find(msg->transaction_id());
if (iter == requests_.end())
return false;
@@ -113,7 +113,7 @@ bool StunRequestManager::CheckResponse(const char* data, size_t size) {
std::string id;
id.append(data + 4, 16);
- RequestMap::iterator iter = requests_.tqfind(id);
+ RequestMap::iterator iter = requests_.find(id);
if (iter == requests_.end())
return false;
diff --git a/kopete/protocols/jabber/jingle/libjingle/talk/p2p/client/basicportallocator.cc b/kopete/protocols/jabber/jingle/libjingle/talk/p2p/client/basicportallocator.cc
index 42c4a876..5192595c 100644
--- a/kopete/protocols/jabber/jingle/libjingle/talk/p2p/client/basicportallocator.cc
+++ b/kopete/protocols/jabber/jingle/libjingle/talk/p2p/client/basicportallocator.cc
@@ -372,7 +372,7 @@ void BasicPortAllocatorSession::AddAllocatedPort(Port* port,
void BasicPortAllocatorSession::OnAddressReady(Port *port) {
assert(Thread::Current() == network_thread_);
- std::vector::iterator it = std::tqfind(ports_.begin(), ports_.end(), port);
+ std::vector::iterator it = std::find(ports_.begin(), ports_.end(), port);
assert(it != ports_.end());
assert(!it->ready);
it->ready = true;
@@ -418,7 +418,7 @@ void BasicPortAllocatorSession::OnProtocolEnabled(AllocationSequence * seq, Prot
void BasicPortAllocatorSession::OnPortDestroyed(Port* port) {
assert(Thread::Current() == network_thread_);
std::vector::iterator iter =
- tqfind(ports_.begin(), ports_.end(), port);
+ find(ports_.begin(), ports_.end(), port);
assert(iter != ports_.end());
ports_.erase(iter);
diff --git a/kopete/protocols/jabber/jingle/libjingle/talk/session/phone/call.cc b/kopete/protocols/jabber/jingle/libjingle/talk/session/phone/call.cc
index 7a79d044..31b12e92 100644
--- a/kopete/protocols/jabber/jingle/libjingle/talk/session/phone/call.cc
+++ b/kopete/protocols/jabber/jingle/libjingle/talk/session/phone/call.cc
@@ -56,7 +56,7 @@ Session *Call::InitiateSession(const buzz::Jid &jid) {
void Call::AcceptSession(Session *session) {
std::vector::iterator it;
- it = std::tqfind(sessions_.begin(), sessions_.end(), session);
+ it = std::find(sessions_.begin(), sessions_.end(), session);
assert(it != sessions_.end());
if (it != sessions_.end())
session->Accept(session_client_->CreateAcceptSessionDescription(session->remote_description()));
@@ -64,7 +64,7 @@ void Call::AcceptSession(Session *session) {
void Call::RedirectSession(Session *session, const buzz::Jid &to) {
std::vector::iterator it;
- it = std::tqfind(sessions_.begin(), sessions_.end(), session);
+ it = std::find(sessions_.begin(), sessions_.end(), session);
assert(it != sessions_.end());
if (it != sessions_.end())
session->Redirect(to.Str());
@@ -72,16 +72,16 @@ void Call::RedirectSession(Session *session, const buzz::Jid &to) {
void Call::RejectSession(Session *session) {
std::vector::iterator it;
- it = std::tqfind(sessions_.begin(), sessions_.end(), session);
+ it = std::find(sessions_.begin(), sessions_.end(), session);
assert(it != sessions_.end());
if (it != sessions_.end())
session->Reject();
}
void Call::TerminateSession(Session *session) {
- assert(std::tqfind(sessions_.begin(), sessions_.end(), session) != sessions_.end());
+ assert(std::find(sessions_.begin(), sessions_.end(), session) != sessions_.end());
std::vector::iterator it;
- it = std::tqfind(sessions_.begin(), sessions_.end(), session);
+ it = std::find(sessions_.begin(), sessions_.end(), session);
if (it != sessions_.end())
(*it)->Terminate();
}
@@ -127,14 +127,14 @@ void Call::AddSession(Session *session) {
void Call::RemoveSession(Session *session) {
// Remove session from list
std::vector::iterator it_session;
- it_session = std::tqfind(sessions_.begin(), sessions_.end(), session);
+ it_session = std::find(sessions_.begin(), sessions_.end(), session);
if (it_session == sessions_.end())
return;
sessions_.erase(it_session);
// Destroy session channel
std::map::iterator it_channel;
- it_channel = channel_map_.tqfind(session->id());
+ it_channel = channel_map_.find(session->id());
if (it_channel != channel_map_.end()) {
VoiceChannel *channel = it_channel->second;
channel_map_.erase(it_channel);
@@ -149,7 +149,7 @@ void Call::RemoveSession(Session *session) {
}
VoiceChannel* Call::GetChannel(Session* session) {
- std::map::iterator it = channel_map_.tqfind(session->id());
+ std::map::iterator it = channel_map_.find(session->id());
assert(it != channel_map_.end());
return it->second;
}
@@ -184,7 +184,7 @@ void Call::Join(Call *call, bool enable) {
// Move channel
std::map::iterator it_channel;
- it_channel = call->channel_map_.tqfind(session->id());
+ it_channel = call->channel_map_.find(session->id());
if (it_channel != call->channel_map_.end()) {
VoiceChannel *channel = (*it_channel).second;
call->channel_map_.erase(it_channel);
@@ -196,7 +196,7 @@ void Call::Join(Call *call, bool enable) {
void Call::StartConnectionMonitor(Session *session, int cms) {
std::map::iterator it_channel;
- it_channel = channel_map_.tqfind(session->id());
+ it_channel = channel_map_.find(session->id());
if (it_channel != channel_map_.end()) {
VoiceChannel *channel = (*it_channel).second;
channel->SignalConnectionMonitor.connect(this, &Call::OnConnectionMonitor);
@@ -206,7 +206,7 @@ void Call::StartConnectionMonitor(Session *session, int cms) {
void Call::StopConnectionMonitor(Session *session) {
std::map::iterator it_channel;
- it_channel = channel_map_.tqfind(session->id());
+ it_channel = channel_map_.find(session->id());
if (it_channel != channel_map_.end()) {
VoiceChannel *channel = (*it_channel).second;
channel->StopConnectionMonitor();
@@ -216,7 +216,7 @@ void Call::StopConnectionMonitor(Session *session) {
void Call::StartAudioMonitor(Session *session, int cms) {
std::map::iterator it_channel;
- it_channel = channel_map_.tqfind(session->id());
+ it_channel = channel_map_.find(session->id());
if (it_channel != channel_map_.end()) {
VoiceChannel *channel = (*it_channel).second;
channel->SignalAudioMonitor.connect(this, &Call::OnAudioMonitor);
@@ -226,7 +226,7 @@ void Call::StartAudioMonitor(Session *session, int cms) {
void Call::StopAudioMonitor(Session *session) {
std::map::iterator it_channel;
- it_channel = channel_map_.tqfind(session->id());
+ it_channel = channel_map_.find(session->id());
if (it_channel != channel_map_.end()) {
VoiceChannel *channel = (*it_channel).second;
channel->StopAudioMonitor();
diff --git a/kopete/protocols/jabber/jingle/libjingle/talk/session/phone/channelmanager.cc b/kopete/protocols/jabber/jingle/libjingle/talk/session/phone/channelmanager.cc
index e5e6758d..98634b12 100644
--- a/kopete/protocols/jabber/jingle/libjingle/talk/session/phone/channelmanager.cc
+++ b/kopete/protocols/jabber/jingle/libjingle/talk/session/phone/channelmanager.cc
@@ -119,7 +119,7 @@ void ChannelManager::DestroyVoiceChannel_w(VoiceChannel *voice_channel) {
CritScope cs(&crit_);
// Destroy voice channel.
assert(initialized_);
- std::vector::iterator it = std::tqfind(channels_.begin(),
+ std::vector::iterator it = std::find(channels_.begin(),
channels_.end(), voice_channel);
assert(it != channels_.end());
if (it == channels_.end())
diff --git a/kopete/protocols/jabber/jingle/libjingle/talk/session/phone/phonesessionclient.cc b/kopete/protocols/jabber/jingle/libjingle/talk/session/phone/phonesessionclient.cc
index a8f0a511..46dc7b42 100644
--- a/kopete/protocols/jabber/jingle/libjingle/talk/session/phone/phonesessionclient.cc
+++ b/kopete/protocols/jabber/jingle/libjingle/talk/session/phone/phonesessionclient.cc
@@ -202,7 +202,7 @@ void PhoneSessionClient::DestroyCall(Call *call) {
// Remove it from calls_ map and delete
- std::map::iterator it = calls_.tqfind(call->id());
+ std::map::iterator it = calls_.find(call->id());
if (it != calls_.end())
calls_.erase(it);
@@ -212,7 +212,7 @@ void PhoneSessionClient::DestroyCall(Call *call) {
void PhoneSessionClient::OnSessionDestroy(Session *session) {
// Find the call this session is in, remove it
- std::map::iterator it = session_map_.tqfind(session->id());
+ std::map::iterator it = session_map_.find(session->id());
assert(it != session_map_.end());
if (it != session_map_.end()) {
Call *call = (*it).second;
diff --git a/kopete/protocols/jabber/jingle/libjingle/talk/third_party/mediastreamer/ms.c b/kopete/protocols/jabber/jingle/libjingle/talk/third_party/mediastreamer/ms.c
index d243bf76..e83eb8dc 100644
--- a/kopete/protocols/jabber/jingle/libjingle/talk/third_party/mediastreamer/ms.c
+++ b/kopete/protocols/jabber/jingle/libjingle/talk/third_party/mediastreamer/ms.c
@@ -81,7 +81,7 @@ static gint compare(gconstpointer a, gconstpointer b)
static GList *g_list_append_if_new(GList *l,gpointer data)
{
GList *res=l;
- if (g_list_tqfind(res,data)==NULL)
+ if (g_list_find(res,data)==NULL)
res=g_list_append(res,data);
return(res);
}
diff --git a/kopete/protocols/jabber/jingle/libjingle/talk/third_party/mediastreamer/msfilter.c b/kopete/protocols/jabber/jingle/libjingle/talk/third_party/mediastreamer/msfilter.c
index c73081a2..6d410392 100644
--- a/kopete/protocols/jabber/jingle/libjingle/talk/third_party/mediastreamer/msfilter.c
+++ b/kopete/protocols/jabber/jingle/libjingle/talk/third_party/mediastreamer/msfilter.c
@@ -419,7 +419,7 @@ GList *filter_list=NULL;
void ms_filter_register(MSFilterInfo *info)
{
gpointer tmp;
- tmp=g_list_tqfind(filter_list,info);
+ tmp=g_list_find(filter_list,info);
if (tmp==NULL) filter_list=g_list_append(filter_list,(gpointer)info);
}
diff --git a/kopete/protocols/jabber/jingle/libjingle/talk/xmllite/xmlnsstack.cc b/kopete/protocols/jabber/jingle/libjingle/talk/xmllite/xmlnsstack.cc
index 570a8be5..d6d4c7b4 100644
--- a/kopete/protocols/jabber/jingle/libjingle/talk/xmllite/xmlnsstack.cc
+++ b/kopete/protocols/jabber/jingle/libjingle/talk/xmllite/xmlnsstack.cc
@@ -170,7 +170,7 @@ static std::string SuggestPrefix(const std::string & ns) {
if (last - first > 4)
last = first + 3;
std::string candidate(AsciiLower(ns.substr(first, last - first)));
- if (candidate.tqfind("xml") != 0)
+ if (candidate.find("xml") != 0)
return candidate;
break;
}
diff --git a/kopete/protocols/jabber/jingle/libjingle/talk/xmpp/jid.cc b/kopete/protocols/jabber/jingle/libjingle/talk/xmpp/jid.cc
index 48a89504..b742e03a 100644
--- a/kopete/protocols/jabber/jingle/libjingle/talk/xmpp/jid.cc
+++ b/kopete/protocols/jabber/jingle/libjingle/talk/xmpp/jid.cc
@@ -56,13 +56,13 @@ Jid::Jid(const std::string & jid_string) {
}
// First find the slash and slice of that part
- size_t slash = jid_string.tqfind('/');
+ size_t slash = jid_string.find('/');
std::string resource_name = (slash == std::string::npos ? STR_EMPTY :
jid_string.substr(slash + 1));
// Now look for the node
std::string node_name;
- size_t at = jid_string.tqfind('@');
+ size_t at = jid_string.find('@');
size_t domain_begin;
if (at < slash && at != std::string::npos) {
node_name = jid_string.substr(0, at);
@@ -80,13 +80,13 @@ Jid::Jid(const std::string & jid_string) {
// avoid allocating these constants repeatedly
std::string domain_name;
- if (domain_length == 9 && jid_string.tqfind("gmail.com", domain_begin) == domain_begin) {
+ if (domain_length == 9 && jid_string.find("gmail.com", domain_begin) == domain_begin) {
domain_name = STR_GMAIL_COM;
}
- else if (domain_length == 14 && jid_string.tqfind("googlemail.com", domain_begin) == domain_begin) {
+ else if (domain_length == 14 && jid_string.find("googlemail.com", domain_begin) == domain_begin) {
domain_name = STR_GOOGLEMAIL_COM;
}
- else if (domain_length == 10 && jid_string.tqfind("google.com", domain_begin) == domain_begin) {
+ else if (domain_length == 10 && jid_string.find("google.com", domain_begin) == domain_begin) {
domain_name = STR_GOOGLE_COM;
}
else {
diff --git a/kopete/protocols/jabber/jingle/libjingle/talk/xmpp/plainsaslhandler.h b/kopete/protocols/jabber/jingle/libjingle/talk/xmpp/plainsaslhandler.h
index 488dc56e..659820f5 100644
--- a/kopete/protocols/jabber/jingle/libjingle/talk/xmpp/plainsaslhandler.h
+++ b/kopete/protocols/jabber/jingle/libjingle/talk/xmpp/plainsaslhandler.h
@@ -49,7 +49,7 @@ public:
return "";
}
- std::vector::const_iterator it = std::tqfind(mechanisms.begin(), mechanisms.end(), "PLAIN");
+ std::vector::const_iterator it = std::find(mechanisms.begin(), mechanisms.end(), "PLAIN");
if (it == mechanisms.end()) {
return "";
}
diff --git a/kopete/protocols/jabber/jingle/libjingle/talk/xmpp/xmppengineimpl_iq.cc b/kopete/protocols/jabber/jingle/libjingle/talk/xmpp/xmppengineimpl_iq.cc
index 50ca23c1..38f268b9 100644
--- a/kopete/protocols/jabber/jingle/libjingle/talk/xmpp/xmppengineimpl_iq.cc
+++ b/kopete/protocols/jabber/jingle/libjingle/talk/xmpp/xmppengineimpl_iq.cc
@@ -91,7 +91,7 @@ XmppEngineImpl::RemoveIqHandler(XmppIqCookie cookie,
std::vector >::iterator pos;
- pos = std::tqfind(iq_entries_->begin(),
+ pos = std::find(iq_entries_->begin(),
iq_entries_->end(),
reinterpret_cast(cookie));
diff --git a/kopete/protocols/jabber/kioslave/jabberdisco.cpp b/kopete/protocols/jabber/kioslave/jabberdisco.cpp
index ae95eadb..3a8b6d88 100644
--- a/kopete/protocols/jabber/kioslave/jabberdisco.cpp
+++ b/kopete/protocols/jabber/kioslave/jabberdisco.cpp
@@ -57,7 +57,7 @@ void JabberDiscoProtocol::setHost ( const TQString &host, int port, const TQStri
m_host = host;
m_port = !port ? 5222 : port;
- m_user = TQString(user).tqreplace ( "%", "@" );
+ m_user = TQString(user).replace ( "%", "@" );
m_password = pass;
}
diff --git a/kopete/protocols/jabber/libiris/cutestuff/network/httpconnect.cpp b/kopete/protocols/jabber/libiris/cutestuff/network/httpconnect.cpp
index 2064e4ab..ca3b804c 100644
--- a/kopete/protocols/jabber/libiris/cutestuff/network/httpconnect.cpp
+++ b/kopete/protocols/jabber/libiris/cutestuff/network/httpconnect.cpp
@@ -58,13 +58,13 @@ static TQString extractLine(TQByteArray *buf, bool *found)
static bool extractMainHeader(const TQString &line, TQString *proto, int *code, TQString *msg)
{
- int n = line.tqfind(' ');
+ int n = line.find(' ');
if(n == -1)
return false;
if(proto)
*proto = line.mid(0, n);
++n;
- int n2 = line.tqfind(' ', n);
+ int n2 = line.find(' ', n);
if(n2 == -1)
return false;
if(code)
diff --git a/kopete/protocols/jabber/libiris/cutestuff/network/httppoll.cpp b/kopete/protocols/jabber/libiris/cutestuff/network/httppoll.cpp
index 2e6d0779..fbc9a39f 100644
--- a/kopete/protocols/jabber/libiris/cutestuff/network/httppoll.cpp
+++ b/kopete/protocols/jabber/libiris/cutestuff/network/httppoll.cpp
@@ -229,14 +229,14 @@ void HttpPoll::http_result()
// get id and packet
TQString id;
TQString cookie = d->http.getHeader("Set-Cookie");
- int n = cookie.tqfind("ID=");
+ int n = cookie.find("ID=");
if(n == -1) {
reset();
error(ErrRead);
return;
}
n += 3;
- int n2 = cookie.tqfind(';', n);
+ int n2 = cookie.find(';', n);
if(n2 != -1)
id = cookie.mid(n, n2-n);
else
@@ -406,13 +406,13 @@ static TQString extractLine(TQByteArray *buf, bool *found)
static bool extractMainHeader(const TQString &line, TQString *proto, int *code, TQString *msg)
{
- int n = line.tqfind(' ');
+ int n = line.find(' ');
if(n == -1)
return false;
if(proto)
*proto = line.mid(0, n);
++n;
- int n2 = line.tqfind(' ', n);
+ int n2 = line.find(' ', n);
if(n2 == -1)
return false;
if(code)
@@ -508,7 +508,7 @@ TQString HttpProxyPost::getHeader(const TQString &var) const
{
for(TQStringList::ConstIterator it = d->headerLines.begin(); it != d->headerLines.end(); ++it) {
const TQString &s = *it;
- int n = s.tqfind(": ");
+ int n = s.find(": ");
if(n == -1)
continue;
TQString v = s.mid(0, n);
diff --git a/kopete/protocols/jabber/libiris/cutestuff/network/ndns.cpp b/kopete/protocols/jabber/libiris/cutestuff/network/ndns.cpp
index 39fbfdda..b94399ce 100644
--- a/kopete/protocols/jabber/libiris/cutestuff/network/ndns.cpp
+++ b/kopete/protocols/jabber/libiris/cutestuff/network/ndns.cpp
@@ -116,7 +116,7 @@ public:
class NDnsManager::Private
{
public:
- Item *tqfind(const NDns *n)
+ Item *find(const NDns *n)
{
TQPtrListIterator- it(list);
for(Item *i; (i = it.current()); ++it) {
@@ -126,7 +126,7 @@ public:
return 0;
}
- Item *tqfind(const NDnsWorker *w)
+ Item *find(const NDnsWorker *w)
{
TQPtrListIterator
- it(list);
for(Item *i; (i = it.current()); ++it) {
@@ -184,7 +184,7 @@ void NDnsManager::resolve(NDns *self, const TQString &name)
void NDnsManager::stop(NDns *self)
{
- Item *i = d->tqfind(self);
+ Item *i = d->find(self);
if(!i)
return;
// disassociate
@@ -200,7 +200,7 @@ void NDnsManager::stop(NDns *self)
bool NDnsManager::isBusy(const NDns *self) const
{
- Item *i = d->tqfind(self);
+ Item *i = d->find(self);
return (i ? true: false);
}
@@ -210,7 +210,7 @@ bool NDnsManager::event(TQEvent *e)
NDnsWorkerEvent *we = static_cast(e);
we->worker->wait(); // ensure that the thread is terminated
- Item *i = d->tqfind(we->worker);
+ Item *i = d->find(we->worker);
if(!i) {
// should NOT happen
return true;
diff --git a/kopete/protocols/jabber/libiris/iris/include/im.h b/kopete/protocols/jabber/libiris/iris/include/im.h
index 12b9ad55..3e52c5d2 100644
--- a/kopete/protocols/jabber/libiris/iris/include/im.h
+++ b/kopete/protocols/jabber/libiris/iris/include/im.h
@@ -220,10 +220,10 @@ namespace XMPP
ResourceList();
~ResourceList();
- ResourceList::Iterator tqfind(const TQString &);
+ ResourceList::Iterator find(const TQString &);
ResourceList::Iterator priority();
- ResourceList::ConstIterator tqfind(const TQString &) const;
+ ResourceList::ConstIterator find(const TQString &) const;
ResourceList::ConstIterator priority() const;
private:
@@ -273,8 +273,8 @@ namespace XMPP
Roster();
~Roster();
- Roster::Iterator tqfind(const Jid &);
- Roster::ConstIterator tqfind(const Jid &) const;
+ Roster::Iterator find(const Jid &);
+ Roster::ConstIterator find(const Jid &) const;
private:
class RosterPrivate *d;
@@ -711,8 +711,8 @@ namespace XMPP
~LiveRoster();
void flagAllForDelete();
- LiveRoster::Iterator tqfind(const Jid &, bool compareRes=true);
- LiveRoster::ConstIterator tqfind(const Jid &, bool compareRes=true) const;
+ LiveRoster::Iterator find(const Jid &, bool compareRes=true);
+ LiveRoster::ConstIterator find(const Jid &, bool compareRes=true) const;
private:
class LiveRosterPrivate;
diff --git a/kopete/protocols/jabber/libiris/iris/xmpp-core/jid.cpp b/kopete/protocols/jabber/libiris/iris/xmpp-core/jid.cpp
index 90cf1364..090cc9df 100644
--- a/kopete/protocols/jabber/libiris/iris/xmpp-core/jid.cpp
+++ b/kopete/protocols/jabber/libiris/iris/xmpp-core/jid.cpp
@@ -42,7 +42,7 @@ public:
StringPrepCache *that = get_instance();
- Result *r = that->nameprep_table.tqfind(in);
+ Result *r = that->nameprep_table.find(in);
if(r)
{
if(!r->norm)
@@ -78,7 +78,7 @@ public:
StringPrepCache *that = get_instance();
- Result *r = that->nodeprep_table.tqfind(in);
+ Result *r = that->nodeprep_table.find(in);
if(r)
{
if(!r->norm)
@@ -114,7 +114,7 @@ public:
StringPrepCache *that = get_instance();
- Result *r = that->resourceprep_table.tqfind(in);
+ Result *r = that->resourceprep_table.find(in);
if(r)
{
if(!r->norm)
@@ -248,7 +248,7 @@ void Jid::set(const TQString &s)
{
TQString rest, domain, node, resource;
TQString norm_domain, norm_node, norm_resource;
- int x = s.tqfind('/');
+ int x = s.find('/');
if(x != -1) {
rest = s.mid(0, x);
resource = s.mid(x+1);
@@ -262,7 +262,7 @@ void Jid::set(const TQString &s)
return;
}
- x = rest.tqfind('@');
+ x = rest.find('@');
if(x != -1) {
node = rest.mid(0, x);
domain = rest.mid(x+1);
diff --git a/kopete/protocols/jabber/libiris/iris/xmpp-core/parser.cpp b/kopete/protocols/jabber/libiris/iris/xmpp-core/parser.cpp
index 80ce5366..3fa7d6c3 100644
--- a/kopete/protocols/jabber/libiris/iris/xmpp-core/parser.cpp
+++ b/kopete/protocols/jabber/libiris/iris/xmpp-core/parser.cpp
@@ -232,10 +232,10 @@ private:
if(mightChangeEncoding) {
while(1) {
- int n = out.tqfind('<');
+ int n = out.find('<');
if(n != -1) {
// we need a closing bracket
- int n2 = out.tqfind('>', n);
+ int n2 = out.find('>', n);
if(n2 != -1) {
++n2;
TQString h = out.mid(n, n2-n);
@@ -278,8 +278,8 @@ private:
if(h.left(5) != "");
- int startPos = h.tqfind("encoding");
+ int endPos = h.find(">");
+ int startPos = h.find("encoding");
if(startPos < endPos && startPos != -1) {
TQString encoding;
do {
@@ -335,7 +335,7 @@ private:
bool checkForBadChars(const TQString &s)
{
- int len = s.tqfind('<');
+ int len = s.find('<');
if(len == -1)
len = s.length();
else
diff --git a/kopete/protocols/jabber/libiris/iris/xmpp-core/protocol.cpp b/kopete/protocols/jabber/libiris/iris/xmpp-core/protocol.cpp
index 5a6bc64f..89c98a91 100644
--- a/kopete/protocols/jabber/libiris/iris/xmpp-core/protocol.cpp
+++ b/kopete/protocols/jabber/libiris/iris/xmpp-core/protocol.cpp
@@ -440,7 +440,7 @@ void BasicProtocol::handleDocOpen(const Parser::Event &pe)
int minor = 0;
TQString verstr = atts.value("version");
if(!verstr.isEmpty()) {
- int n = verstr.tqfind('.');
+ int n = verstr.find('.');
if(n != -1) {
major = verstr.mid(0, n).toInt();
minor = verstr.mid(n+1).toInt();
diff --git a/kopete/protocols/jabber/libiris/iris/xmpp-core/simplesasl.cpp b/kopete/protocols/jabber/libiris/iris/xmpp-core/simplesasl.cpp
index da78fef1..c825a2ca 100644
--- a/kopete/protocols/jabber/libiris/iris/xmpp-core/simplesasl.cpp
+++ b/kopete/protocols/jabber/libiris/iris/xmpp-core/simplesasl.cpp
@@ -78,7 +78,7 @@ public:
PropList list;
int at = 0;
while(1) {
- int n = str.tqfind('=', at);
+ int n = str.find('=', at);
if(n == -1)
break;
TQCString var, val;
@@ -86,14 +86,14 @@ public:
at = n + 1;
if(str[at] == '\"') {
++at;
- n = str.tqfind('\"', at);
+ n = str.find('\"', at);
if(n == -1)
break;
val = str.mid(at, n-at);
at = n + 1;
}
else {
- n = str.tqfind(',', at);
+ n = str.find(',', at);
if(n != -1) {
val = str.mid(at, n-at);
at = n;
diff --git a/kopete/protocols/jabber/libiris/iris/xmpp-core/stream.cpp b/kopete/protocols/jabber/libiris/iris/xmpp-core/stream.cpp
index fe7275ad..59b28f8b 100644
--- a/kopete/protocols/jabber/libiris/iris/xmpp-core/stream.cpp
+++ b/kopete/protocols/jabber/libiris/iris/xmpp-core/stream.cpp
@@ -1115,7 +1115,7 @@ void ClientStream::sasl_authCheck(const TQString &user, const TQString &)
// printf("authcheck: [%s], [%s]\n", user.latin1(), authzid.latin1());
//#endif
TQString u = user;
- int n = u.tqfind('@');
+ int n = u.find('@');
if(n != -1)
u.truncate(n);
d->srv.user = u;
diff --git a/kopete/protocols/jabber/libiris/iris/xmpp-core/xmlprotocol.cpp b/kopete/protocols/jabber/libiris/iris/xmpp-core/xmlprotocol.cpp
index 5f682371..91111ea9 100644
--- a/kopete/protocols/jabber/libiris/iris/xmpp-core/xmlprotocol.cpp
+++ b/kopete/protocols/jabber/libiris/iris/xmpp-core/xmlprotocol.cpp
@@ -98,7 +98,7 @@ static TQString xmlToString(const TQDomElement &e, const TQString &fakeNS, const
}
// 'clip' means to remove any unwanted (and unneeded) characters, such as a trailing newline
if(clip) {
- int n = out.tqfindRev('>');
+ int n = out.findRev('>');
out.truncate(n+1);
}
return out;
@@ -128,12 +128,12 @@ static void createRootXmlTags(const TQDomElement &root, TQString *xmlHeader, TQS
}
// parse the tags out
- int n = str.tqfind('<');
- int n2 = str.tqfind('>', n);
+ int n = str.find('<');
+ int n2 = str.find('>', n);
++n2;
*tagOpen = str.mid(n, n2-n);
- n2 = str.tqfindRev('>');
- n = str.tqfindRev('<');
+ n2 = str.findRev('>');
+ n = str.findRev('<');
++n2;
*tagClose = str.mid(n, n2-n);
@@ -329,7 +329,7 @@ TQString XmlProtocol::elementToString(const TQDomElement &e, bool clip)
for(n = 0; n < al.count(); ++n) {
TQDomAttr a = al.item(n).toAttr();
TQString s = a.name();
- int x = s.tqfind(':');
+ int x = s.find(':');
if(x != -1)
s = s.mid(x+1);
else
diff --git a/kopete/protocols/jabber/libiris/iris/xmpp-im/client.cpp b/kopete/protocols/jabber/libiris/iris/xmpp-im/client.cpp
index 86a01e60..7b425696 100644
--- a/kopete/protocols/jabber/libiris/iris/xmpp-im/client.cpp
+++ b/kopete/protocols/jabber/libiris/iris/xmpp-im/client.cpp
@@ -790,7 +790,7 @@ void Client::ppPresence(const Jid &j, const tqStatus &s)
void Client::updateSelfPresence(const Jid &j, const tqStatus &s)
{
- ResourceList::Iterator rit = d->resourceList.tqfind(j.resource());
+ ResourceList::Iterator rit = d->resourceList.find(j.resource());
bool found = (rit == d->resourceList.end()) ? false: true;
// unavailable? remove the resource
@@ -822,7 +822,7 @@ void Client::updateSelfPresence(const Jid &j, const tqStatus &s)
void Client::updatePresence(LiveRosterItem *i, const Jid &j, const tqStatus &s)
{
- ResourceList::Iterator rit = i->resourceList().tqfind(j.resource());
+ ResourceList::Iterator rit = i->resourceList().find(j.resource());
bool found = (rit == i->resourceList().end()) ? false: true;
// unavailable? remove the resource
@@ -950,7 +950,7 @@ void Client::importRosterItem(const RosterItem &item)
// Remove
if(item.subscription().type() == Subscription::Remove) {
- LiveRoster::Iterator it = d->roster.tqfind(item.jid());
+ LiveRoster::Iterator it = d->roster.find(item.jid());
if(it != d->roster.end()) {
rosterItemRemoved(*it);
d->roster.remove(it);
@@ -959,7 +959,7 @@ void Client::importRosterItem(const RosterItem &item)
}
// Add/Update
else {
- LiveRoster::Iterator it = d->roster.tqfind(item.jid());
+ LiveRoster::Iterator it = d->roster.find(item.jid());
if(it != d->roster.end()) {
LiveRosterItem &i = *it;
i.setFlagForDelete(false);
@@ -1001,7 +1001,7 @@ void Client::setPresence(const tqStatus &s)
// update our resourceList
ppPresence(jid(), s);
- //ResourceList::Iterator rit = d->resourceList.tqfind(resource());
+ //ResourceList::Iterator rit = d->resourceList.find(resource());
//Resource &r = *rit;
//r.settqStatus(s);
}
@@ -1097,7 +1097,7 @@ void Client::addExtension(const TQString& ext, const Features& features)
void Client::removeExtension(const TQString& ext)
{
- if (d->extension_features.tqcontains(ext)) {
+ if (d->extension_features.contains(ext)) {
d->extension_features.remove(ext);
d->capsExt = extensions().join(" ");
}
@@ -1499,7 +1499,7 @@ void LiveRoster::flagAllForDelete()
(*it).setFlagForDelete(true);
}
-LiveRoster::Iterator LiveRoster::tqfind(const Jid &j, bool compareRes)
+LiveRoster::Iterator LiveRoster::find(const Jid &j, bool compareRes)
{
Iterator it;
for(it = begin(); it != end(); ++it) {
@@ -1509,7 +1509,7 @@ LiveRoster::Iterator LiveRoster::tqfind(const Jid &j, bool compareRes)
return it;
}
-LiveRoster::ConstIterator LiveRoster::tqfind(const Jid &j, bool compareRes) const
+LiveRoster::ConstIterator LiveRoster::find(const Jid &j, bool compareRes) const
{
ConstIterator it;
for(it = begin(); it != end(); ++it) {
diff --git a/kopete/protocols/jabber/libiris/iris/xmpp-im/types.cpp b/kopete/protocols/jabber/libiris/iris/xmpp-im/types.cpp
index fb9de2e8..522e52f9 100644
--- a/kopete/protocols/jabber/libiris/iris/xmpp-im/types.cpp
+++ b/kopete/protocols/jabber/libiris/iris/xmpp-im/types.cpp
@@ -421,12 +421,12 @@ bool Message::containsEvents() const
bool Message::containsEvent(MsgEvent e) const
{
- return d->eventList.tqcontains(e);
+ return d->eventList.contains(e);
}
void Message::addEvent(MsgEvent e)
{
- if (!d->eventList.tqcontains(e)) {
+ if (!d->eventList.contains(e)) {
if (e == CancelEvent || containsEvent(CancelEvent))
d->eventList.clear(); // Reset list
d->eventList += e;
@@ -1018,10 +1018,10 @@ ResourceList::~ResourceList()
{
}
-ResourceList::Iterator ResourceList::tqfind(const TQString & _tqfind)
+ResourceList::Iterator ResourceList::find(const TQString & _find)
{
for(ResourceList::Iterator it = begin(); it != end(); ++it) {
- if((*it).name() == _tqfind)
+ if((*it).name() == _find)
return it;
}
@@ -1040,10 +1040,10 @@ ResourceList::Iterator ResourceList::priority()
return highest;
}
-ResourceList::ConstIterator ResourceList::tqfind(const TQString & _tqfind) const
+ResourceList::ConstIterator ResourceList::find(const TQString & _find) const
{
for(ResourceList::ConstIterator it = begin(); it != end(); ++it) {
- if((*it).name() == _tqfind)
+ if((*it).name() == _find)
return it;
}
@@ -1222,7 +1222,7 @@ Roster::~Roster()
{
}
-Roster::Iterator Roster::tqfind(const Jid &j)
+Roster::Iterator Roster::find(const Jid &j)
{
for(Roster::Iterator it = begin(); it != end(); ++it) {
if((*it).jid().compare(j))
@@ -1232,7 +1232,7 @@ Roster::Iterator Roster::tqfind(const Jid &j)
return end();
}
-Roster::ConstIterator Roster::tqfind(const Jid &j) const
+Roster::ConstIterator Roster::find(const Jid &j) const
{
for(Roster::ConstIterator it = begin(); it != end(); ++it) {
if((*it).jid().compare(j))
@@ -1512,7 +1512,7 @@ bool Features::test(const TQStringList &ns) const
{
TQStringList::ConstIterator it = ns.begin();
for ( ; it != ns.end(); ++it)
- if ( _list.tqfind( *it ) != _list.end() )
+ if ( _list.find( *it ) != _list.end() )
return true;
return false;
diff --git a/kopete/protocols/jabber/libiris/iris/xmpp-im/xmpp_tasks.cpp b/kopete/protocols/jabber/libiris/iris/xmpp-im/xmpp_tasks.cpp
index bab5665b..45ef7a04 100644
--- a/kopete/protocols/jabber/libiris/iris/xmpp-im/xmpp_tasks.cpp
+++ b/kopete/protocols/jabber/libiris/iris/xmpp-im/xmpp_tasks.cpp
@@ -35,9 +35,9 @@ using namespace XMPP;
static TQString lineEncode(TQString str)
{
- str.tqreplace(TQRegExp("\\\\"), "\\\\"); // backslash to double-backslash
- str.tqreplace(TQRegExp("\\|"), "\\p"); // pipe to \p
- str.tqreplace(TQRegExp("\n"), "\\n"); // newline to \n
+ str.replace(TQRegExp("\\\\"), "\\\\"); // backslash to double-backslash
+ str.replace(TQRegExp("\\|"), "\\p"); // pipe to \p
+ str.replace(TQRegExp("\n"), "\\n"); // newline to \n
return str;
}
@@ -1417,7 +1417,7 @@ bool JT_ServInfo::take(const TQDomElement &e)
}
else if (node.startsWith(client()->capsNode() + "#")) {
TQString ext = node.right(node.length()-client()->capsNode().length()-1);
- if (client()->extensions().tqcontains(ext)) {
+ if (client()->extensions().contains(ext)) {
const TQStringList& l = client()->extension(ext).list();
for ( TQStringList::ConstIterator it = l.begin(); it != l.end(); ++it ) {
feature = doc()->createElement("feature");
diff --git a/kopete/protocols/jabber/libiris/jingle_iris.patch b/kopete/protocols/jabber/libiris/jingle_iris.patch
index 2fcf782b..489afab4 100644
--- a/kopete/protocols/jabber/libiris/jingle_iris.patch
+++ b/kopete/protocols/jabber/libiris/jingle_iris.patch
@@ -159,7 +159,7 @@ diff -ur psi/iris/xmpp-im/client.cpp psi-jingle/iris/xmpp-im/client.cpp
+
+void Client::removeExtension(const QString& ext)
+{
-+ if (d->extension_features.tqcontains(ext)) {
++ if (d->extension_features.contains(ext)) {
+ d->extension_features.remove(ext);
+ d->capsExt = extensions().join(" ");
+ }
@@ -354,7 +354,7 @@ diff -ur psi/iris/xmpp-im/xmpp_tasks.cpp psi-jingle/iris/xmpp-im/xmpp_tasks.cpp
+ }
+ else if (node.startsWith(client()->capsNode() + "#")) {
+ QString ext = node.right(node.length()-client()->capsNode().length()-1);
-+ if (client()->extensions().tqcontains(ext)) {
++ if (client()->extensions().contains(ext)) {
+ const QStringList& l = client()->extension(ext).list();
+ for ( QStringList::ConstIterator it = l.begin(); it != l.end(); ++it ) {
+ feature = doc()->createElement("feature");
diff --git a/kopete/protocols/jabber/ui/dlgjabbervcard.cpp b/kopete/protocols/jabber/ui/dlgjabbervcard.cpp
index 44278511..e4139786 100644
--- a/kopete/protocols/jabber/ui/dlgjabbervcard.cpp
+++ b/kopete/protocols/jabber/ui/dlgjabbervcard.cpp
@@ -520,7 +520,7 @@ void dlgJabberVCard::slotSelectPhoto()
img = img.copy(0, (img.height()-img.width())/2, img.height(), img.height());
}
- m_photoPath = locateLocal("appdata", "jabberphotos/" + m_contact->rosterItem().jid().full().lower().tqreplace(TQRegExp("[./~]"),"-") +".png");
+ m_photoPath = locateLocal("appdata", "jabberphotos/" + m_contact->rosterItem().jid().full().lower().replace(TQRegExp("[./~]"),"-") +".png");
if( img.save(m_photoPath, "PNG") )
{
m_mainWidget->lblPhoto->setPixmap( TQPixmap(img) );
diff --git a/kopete/protocols/jabber/ui/jabbereditaccountwidget.cpp b/kopete/protocols/jabber/ui/jabbereditaccountwidget.cpp
index 9a769122..2b5ad749 100644
--- a/kopete/protocols/jabber/ui/jabbereditaccountwidget.cpp
+++ b/kopete/protocols/jabber/ui/jabbereditaccountwidget.cpp
@@ -200,7 +200,7 @@ void JabberEditAccountWidget::writeConfig ()
bool JabberEditAccountWidget::validateData ()
{
- if(!mID->text().tqcontains('@'))
+ if(!mID->text().contains('@'))
{
KMessageBox::sorry(this, i18n("The Jabber ID you have chosen is invalid. "
"Please make sure it is in the form user@server.com, like an email address."),
diff --git a/kopete/protocols/jabber/ui/jabberregisteraccount.cpp b/kopete/protocols/jabber/ui/jabberregisteraccount.cpp
index dee7534a..cc7cd0fc 100644
--- a/kopete/protocols/jabber/ui/jabberregisteraccount.cpp
+++ b/kopete/protocols/jabber/ui/jabberregisteraccount.cpp
@@ -58,7 +58,7 @@ JabberRegisterAccount::JabberRegisterAccount ( JabberEditAccountWidget *tqparent
mMainWidget = new DlgJabberRegisterAccount ( this );
setMainWidget ( mMainWidget );
- // tqreplace "Ok" button with a "Register" button
+ // replace "Ok" button with a "Register" button
KGuiItem registerButton = KStdGuiItem::ok();
registerButton.setText ( i18n ( "Register" ) );
setButtonOK ( registerButton );
diff --git a/kopete/protocols/meanwhile/meanwhilesession.cpp b/kopete/protocols/meanwhile/meanwhilesession.cpp
index 5f367540..3b880932 100644
--- a/kopete/protocols/meanwhile/meanwhilesession.cpp
+++ b/kopete/protocols/meanwhile/meanwhilesession.cpp
@@ -426,7 +426,7 @@ void MeanwhileSession::syncContactsToServer()
if (contactgroup->type() == Kopete::Group::TopLevel) {
stgroup = topstgroup;
} else {
- /* tqfind (or create) a matching sametime list group */
+ /* find (or create) a matching sametime list group */
stgroup = mwSametimeList_findGroup(list,
contactgroup->displayName().ascii());
if (stgroup == 0L) {
@@ -555,10 +555,10 @@ TQString MeanwhileSession::getNickName(struct mwLoginInfo *logininfo)
TQString MeanwhileSession::getNickName(TQString name)
{
- int index = name.tqfind(" - ");
+ int index = name.find(" - ");
if (index != -1)
name = name.remove(0, index + 3);
- index = name.tqfind('/');
+ index = name.find('/');
if (index != -1)
name = name.left(index);
diff --git a/kopete/protocols/meanwhile/meanwhilesession.h b/kopete/protocols/meanwhile/meanwhilesession.h
index 9d583a8b..040d0c2a 100644
--- a/kopete/protocols/meanwhile/meanwhilesession.h
+++ b/kopete/protocols/meanwhile/meanwhilesession.h
@@ -229,7 +229,7 @@ private:
TQString getNickName(struct mwLoginInfo *logininfo);
/**
- * Resolve a contact to tqfind (and set) the display name. This requires the
+ * Resolve a contact to find (and set) the display name. This requires the
* session to be connected to use the meanwhile resolve service.
* @param contact The contact to resolve
*/
diff --git a/kopete/protocols/msn/dispatcher.cpp b/kopete/protocols/msn/dispatcher.cpp
index 91f3361a..acf9c8db 100644
--- a/kopete/protocols/msn/dispatcher.cpp
+++ b/kopete/protocols/msn/dispatcher.cpp
@@ -94,7 +94,7 @@ void Dispatcher::requestDisplayIcon(const TQString& from, const TQString& msnObj
TQString context = TQString::fromUtf8(KCodecs::base64Encode(msnObject.utf8()));
// NOTE remove the \0 character automatically
// appended to a TQCString.
- context.tqreplace("=", TQString());
+ context.replace("=", TQString());
TQString content =
"EUF-GUID: {A4268EEC-FEC5-49E5-95C3-F126696BDBF6}\r\n"
"SessionID: " + TQString::number(sessionId) + "\r\n"
@@ -247,7 +247,7 @@ void Dispatcher::slotReadMessage(const TQString &from, const TQByteArray& stream
return;
}
- if(m_messageBuffer.tqcontains(receivedMessage.header.identifier))
+ if(m_messageBuffer.contains(receivedMessage.header.identifier))
{
kdDebug(14140) << k_funcinfo
<< TQString("retrieving buffered messsage, %1").tqarg(receivedMessage.header.identifier)
@@ -282,7 +282,7 @@ void Dispatcher::dispatch(const P2P::Message& message)
if(message.header.sessionId > 0)
{
- if(m_sessions.tqcontains(message.header.sessionId)){
+ if(m_sessions.contains(message.header.sessionId)){
messageHandler = m_sessions[message.header.sessionId];
}
}
@@ -294,7 +294,7 @@ void Dispatcher::dispatch(const P2P::Message& message)
if(regex.search(body) > 0)
{
TQ_UINT32 sessionId = regex.cap(1).toUInt();
- if(m_sessions.tqcontains(sessionId)){
+ if(m_sessions.contains(sessionId)){
// Retrieve the message handler associated with the specified session Id.
messageHandler = m_sessions[sessionId];
}
@@ -303,7 +303,7 @@ void Dispatcher::dispatch(const P2P::Message& message)
{
// Otherwise, try to retrieve the message handler
// based on the acknowlegded unique identifier.
- if(m_sessions.tqcontains(message.header.ackUniqueIdentifier)){
+ if(m_sessions.contains(message.header.ackUniqueIdentifier)){
messageHandler =
m_sessions[message.header.ackUniqueIdentifier];
}
@@ -407,7 +407,7 @@ void Dispatcher::dispatch(const P2P::Message& message)
m_sessions.insert(sessionId.toUInt(), current);
// Determine the display icon being requested.
- TQString fileName = objectList.tqcontains(msnobj)
+ TQString fileName = objectList.contains(msnobj)
? objectList[msnobj]
: m_pictureUrl;
TQFile *source = new TQFile(fileName);
diff --git a/kopete/protocols/msn/msnaccount.cpp b/kopete/protocols/msn/msnaccount.cpp
index 567ff91e..f99117bc 100644
--- a/kopete/protocols/msn/msnaccount.cpp
+++ b/kopete/protocols/msn/msnaccount.cpp
@@ -92,7 +92,7 @@ MSNAccount::MSNAccount( MSNProtocol *tqparent, const TQString& AccountID, const
m_reverseList = config->readListEntry( "reverseList" ) ;
// Load the avatar
- m_pictureFilename = locateLocal( "appdata", "msnpicture-"+ accountId().lower().tqreplace(TQRegExp("[./~]"),"-") +".png" );
+ m_pictureFilename = locateLocal( "appdata", "msnpicture-"+ accountId().lower().replace(TQRegExp("[./~]"),"-") +".png" );
resetPictureObject(true);
static_cast( myself() )->setInfo( "PHH", config->readEntry("PHH") );
@@ -288,7 +288,7 @@ void MSNAccount::setOnlineStatus( const Kopete::OnlineStatus &status , const TQS
kdDebug( 14140 ) << k_funcinfo << status.description() << endl;
// HACK: When changing song, do don't anything while connected
- if( reason.tqcontains("[Music]") && ( status == MSNProtocol::protocol()->UNK || status == MSNProtocol::protocol()->CNT ) )
+ if( reason.contains("[Music]") && ( status == MSNProtocol::protocol()->UNK || status == MSNProtocol::protocol()->CNT ) )
return;
// Only send personal message when logged.
@@ -296,7 +296,7 @@ void MSNAccount::setOnlineStatus( const Kopete::OnlineStatus &status , const TQS
{
// Only update the personal/status message, don't change the online status
// since it's the same.
- if( reason.tqcontains("[Music]") )
+ if( reason.contains("[Music]") )
{
TQString personalMessage = reason.section("[Music]", 1);
setPersonalMessage( MSNProtocol::PersonalMessageMusic, personalMessage );
@@ -359,7 +359,7 @@ void MSNAccount::slotDebugRawCommand()
if ( result == TQDialog::Accepted && m_notifySocket )
{
m_notifySocket->sendCommand( dlg->command(), dlg->params(),
- dlg->addId(), dlg->msg().tqreplace( "\n", "\r\n" ).utf8() );
+ dlg->addId(), dlg->msg().replace( "\n", "\r\n" ).utf8() );
}
delete dlg;
#endif
@@ -503,7 +503,7 @@ void MSNAccount::setPersonalMessage( MSNProtocol::PersonalMessageType type, cons
void MSNAccount::slotGroupAdded( const TQString& groupName, const TQString &groupGuid )
{
- if ( m_groupList.tqcontains( groupGuid ) )
+ if ( m_groupList.contains( groupGuid ) )
{
// Group can already be in the list since the idle timer does a 'List Groups'
// command. Simply return, don't issue a warning.
@@ -587,7 +587,7 @@ void MSNAccount::slotGroupAdded( const TQString& groupName, const TQString &grou
m_groupList.insert( groupGuid, fallBack );
// We have pending groups that we need add a contact to
- if ( tmp_addToNewGroup.tqcontains(groupName) )
+ if ( tmp_addToNewGroup.contains(groupName) )
{
TQStringList list=tmp_addToNewGroup[groupName];
for ( TQStringList::Iterator it = list.begin(); it != list.end(); ++it )
@@ -601,7 +601,7 @@ void MSNAccount::slotGroupAdded( const TQString& groupName, const TQString &grou
{
// If we get to here, we're currently adding a new contact, add the groupGUID to the groupList
// to add when contact will be added to contactlist.
- if( tmp_addNewContactToGroup.tqcontains( contactId ) )
+ if( tmp_addNewContactToGroup.contains( contactId ) )
tmp_addNewContactToGroup[contactId].append(groupGuid);
else
tmp_addNewContactToGroup.insert(contactId, TQStringList(groupGuid) );
@@ -613,7 +613,7 @@ void MSNAccount::slotGroupAdded( const TQString& groupName, const TQString &grou
void MSNAccount::slotGroupRenamed( const TQString &groupGuid, const TQString& groupName )
{
- if ( m_groupList.tqcontains( groupGuid ) )
+ if ( m_groupList.contains( groupGuid ) )
{
m_groupList[ groupGuid ]->setPluginData( protocol(), accountId() + " id", groupGuid );
m_groupList[ groupGuid ]->setPluginData( protocol(), accountId() + " displayName", groupName );
@@ -627,7 +627,7 @@ void MSNAccount::slotGroupRenamed( const TQString &groupGuid, const TQString& gr
void MSNAccount::slotGroupRemoved( const TQString& groupGuid )
{
- if ( m_groupList.tqcontains( groupGuid ) )
+ if ( m_groupList.contains( groupGuid ) )
{
m_groupList[ groupGuid ]->setPluginData( protocol(), TQMap() );
m_groupList.remove( groupGuid );
@@ -638,7 +638,7 @@ void MSNAccount::addGroup( const TQString &groupName, const TQString& contactToA
{
if ( !contactToAdd.isNull() )
{
- if( tmp_addToNewGroup.tqcontains(groupName) )
+ if( tmp_addToNewGroup.contains(groupName) )
{
tmp_addToNewGroup[groupName].append(contactToAdd);
//A group with the same name is about to be added,
@@ -664,7 +664,7 @@ void MSNAccount::slotKopeteGroupRenamed( Kopete::Group *g )
{
if ( !g->pluginData( protocol(), accountId() + " id" ).isEmpty() &&
g->displayName() != g->pluginData( protocol(), accountId() + " displayName" ) &&
- m_groupList.tqcontains( g->pluginData( protocol(), accountId() + " id" ) ) )
+ m_groupList.contains( g->pluginData( protocol(), accountId() + " id" ) ) )
{
notifySocket()->renameGroup( g->displayName(), g->pluginData( protocol(), accountId() + " id" ) );
}
@@ -683,7 +683,7 @@ void MSNAccount::slotKopeteGroupRemoved( Kopete::Group *g )
if ( !g->pluginData( protocol(), accountId() + " id" ).isEmpty() )
{
TQString groupGuid = g->pluginData( protocol(), accountId() + " id" );
- if ( !m_groupList.tqcontains( groupGuid ) )
+ if ( !m_groupList.contains( groupGuid ) )
{
// the group is maybe already removed in the server
slotGroupRemoved( groupGuid );
@@ -716,7 +716,7 @@ void MSNAccount::slotKopeteGroupRemoved( Kopete::Group *g )
for ( ; it.current(); ++it )
{
MSNContact *c = static_cast( it.current() );
- if ( c && c->serverGroups().tqcontains( groupGuid ) )
+ if ( c && c->serverGroups().contains( groupGuid ) )
{
/** don't do that becasue theses may already have been sent
m_notifySocket->removeContact( c->contactId(), groupNumber, MSNProtocol::FL );
@@ -804,11 +804,11 @@ void MSNAccount::slotContactListed( const TQString& handle, const TQString& publ
for ( TQStringList::ConstIterator it = contactGroups.begin(); it != contactGroups.end(); ++it )
{
TQString newServerGroupID = *it;
- if(m_groupList.tqcontains(newServerGroupID))
+ if(m_groupList.contains(newServerGroupID))
{
Kopete::Group *newServerGroup=m_groupList[ newServerGroupID ] ;
c->contactAddedToGroup( newServerGroupID, newServerGroup );
- if( !c->metaContact()->groups().tqcontains(newServerGroup) )
+ if( !c->metaContact()->groups().contains(newServerGroup) )
{
// The contact has been added in a group by another client
c->metaContact()->addToGroup( newServerGroup );
@@ -822,7 +822,7 @@ void MSNAccount::slotContactListed( const TQString& handle, const TQString& publ
if(old_group)
{
TQString oldnewID=old_group->pluginData(protocol() , accountId() +" id");
- if ( !oldnewID.isEmpty() && contactGroups.tqcontains( oldnewID ) )
+ if ( !oldnewID.isEmpty() && contactGroups.contains( oldnewID ) )
continue; //ok, it's correctn no need to do anything.
c->metaContact()->removeFromGroup( old_group );
@@ -851,7 +851,7 @@ void MSNAccount::slotContactListed( const TQString& handle, const TQString& publ
it != contactGroups.end(); ++it )
{
TQString groupGuid = *it;
- if(m_groupList.tqcontains(groupGuid))
+ if(m_groupList.contains(groupGuid))
{
c->contactAddedToGroup( groupGuid, m_groupList[ groupGuid ] );
metaContact->addToGroup( m_groupList[ groupGuid ] );
@@ -910,7 +910,7 @@ void MSNAccount::slotContactAdded( const TQString& handle, const TQString& list,
c->removeProperty( Kopete::Global::Properties::self()->nickName() );
c->setProperty( MSNProtocol::protocol()->propGuid, contactGuid );
// Add the new contact to the group he belongs.
- if ( tmp_addNewContactToGroup.tqcontains(handle) )
+ if ( tmp_addNewContactToGroup.contains(handle) )
{
TQStringList list = tmp_addNewContactToGroup[handle];
for ( TQStringList::Iterator it = list.begin(); it != list.end(); ++it )
@@ -919,7 +919,7 @@ void MSNAccount::slotContactAdded( const TQString& handle, const TQString& list,
// If the group didn't exist yet (yay for async operations), don't add the contact to the group
// Let slotGroupAdded do it.
- if( m_groupList.tqcontains(groupGuid) )
+ if( m_groupList.contains(groupGuid) )
{
kdDebug( 14140 ) << k_funcinfo << "Adding " << handle << " to group: " << groupGuid << endl;
notifySocket()->addContact( handle, MSNProtocol::FL, TQString(), contactGuid, groupGuid );
@@ -955,10 +955,10 @@ void MSNAccount::slotContactAdded( const TQString& handle, const TQString& list,
c->setOnlineStatus( MSNProtocol::protocol()->FLN );
if ( c->metaContact() && c->metaContact()->isTemporary() )
- c->metaContact()->setTemporary( false, m_groupList.tqcontains( groupGuid ) ? m_groupList[ groupGuid ] : 0L );
+ c->metaContact()->setTemporary( false, m_groupList.contains( groupGuid ) ? m_groupList[ groupGuid ] : 0L );
else
{
- if(m_groupList.tqcontains(groupGuid))
+ if(m_groupList.contains(groupGuid))
{
if( c->metaContact() )
c->metaContact()->addToGroup( m_groupList[groupGuid] );
@@ -968,7 +968,7 @@ void MSNAccount::slotContactAdded( const TQString& handle, const TQString& list,
}
}
- if ( !handle.isEmpty() && !m_allowList.tqcontains( handle ) && !m_blockList.tqcontains( handle ) )
+ if ( !handle.isEmpty() && !m_allowList.contains( handle ) && !m_blockList.contains( handle ) )
{
kdDebug(14140) << k_funcinfo << "Trying to add contact to AL. " << endl;
notifySocket()->addContact(handle, MSNProtocol::AL, TQString(), TQString(), TQString() );
@@ -978,7 +978,7 @@ void MSNAccount::slotContactAdded( const TQString& handle, const TQString& list,
{
if ( contacts()[ handle ] )
static_cast( contacts()[ handle ] )->setBlocked( true );
- if ( !m_blockList.tqcontains( handle ) )
+ if ( !m_blockList.contains( handle ) )
{
m_blockList.append( handle );
configGroup()->writeEntry( "blockList" , m_blockList ) ;
@@ -988,7 +988,7 @@ void MSNAccount::slotContactAdded( const TQString& handle, const TQString& list,
{
if ( contacts()[ handle ] )
static_cast( contacts()[ handle ] )->setAllowed( true );
- if ( !m_allowList.tqcontains( handle ) )
+ if ( !m_allowList.contains( handle ) )
{
m_allowList.append( handle );
configGroup()->writeEntry( "allowList" , m_allowList ) ;
@@ -1004,7 +1004,7 @@ void MSNAccount::slotContactAdded( const TQString& handle, const TQString& list,
// 'new user' dialog, which makes it impossible to add those here.
// Not necessarily bad, but the usability effects need more thought
// before I declare it good :- )
- if ( !m_allowList.tqcontains( handle ) && !m_blockList.tqcontains( handle ) )
+ if ( !m_allowList.contains( handle ) && !m_blockList.contains( handle ) )
{
TQString nick; //in most case, the public name is not know
if(publicName!=handle) // so we don't whos it if it is not know
@@ -1034,7 +1034,7 @@ void MSNAccount::slotContactRemoved( const TQString& handle, const TQString& lis
{
m_blockList.remove( handle );
configGroup()->writeEntry( "blockList" , m_blockList ) ;
- if ( !m_allowList.tqcontains( handle ) )
+ if ( !m_allowList.contains( handle ) )
notifySocket()->addContact( handle, MSNProtocol::AL, TQString(), TQString(), TQString() );
if(c)
@@ -1044,7 +1044,7 @@ void MSNAccount::slotContactRemoved( const TQString& handle, const TQString& lis
{
m_allowList.remove( handle );
configGroup()->writeEntry( "allowList" , m_allowList ) ;
- if ( !m_blockList.tqcontains( handle ) )
+ if ( !m_blockList.contains( handle ) )
notifySocket()->addContact( handle, MSNProtocol::BL, TQString(), TQString(), TQString() );
if(c)
@@ -1118,7 +1118,7 @@ void MSNAccount::slotContactRemoved( const TQString& handle, const TQString& lis
for ( ; it.current(); ++it )
{
MSNContact *c2 = static_cast( it.current() );
- if ( c2->serverGroups().tqcontains( *stringIt ) )
+ if ( c2->serverGroups().contains( *stringIt ) )
{
still_have_contact=true;
break;
@@ -1241,16 +1241,16 @@ void MSNAccount::slotContactAddedNotifyDialogClosed(const TQString& handle)
if ( !dialog->authorized() )
{
- if ( m_allowList.tqcontains( handle ) )
+ if ( m_allowList.contains( handle ) )
m_notifySocket->removeContact( handle, MSNProtocol::AL, TQString(), TQString() );
- else if ( !m_blockList.tqcontains( handle ) )
+ else if ( !m_blockList.contains( handle ) )
m_notifySocket->addContact( handle, MSNProtocol::BL, TQString(), TQString(), TQString() );
}
else
{
- if ( m_blockList.tqcontains( handle ) )
+ if ( m_blockList.contains( handle ) )
m_notifySocket->removeContact( handle, MSNProtocol::BL, TQString(), TQString() );
- else if ( !m_allowList.tqcontains( handle ) )
+ else if ( !m_allowList.contains( handle ) )
m_notifySocket->addContact( handle, MSNProtocol::AL, TQString(), TQString(), TQString() );
}
@@ -1351,7 +1351,7 @@ void MSNAccount::addContactServerside(const TQString &contactId, TQPtrListsetPluginData( protocol() , accountId() + " id" , TQString());
@@ -1365,7 +1365,7 @@ void MSNAccount::addContactServerside(const TQString &contactId, TQPtrList it( account()->contacts() );
for( ; it.current(); ++it )
{
- if( !members().tqcontains( it.current() ) && it.current()->isOnline() && it.current() != myself() )
+ if( !members().contains( it.current() ) && it.current()->isOnline() && it.current() != myself() )
{
KAction *a=new KopeteContactAction( it.current(), this,
TQT_SLOT( slotInviteContact( Kopete::Contact * ) ), m_actionInvite );
@@ -359,7 +359,7 @@ void MSNChatSession::slotInviteOtherContact()
if( !ok )
return;
- if( handle.tqcontains('@') != 1 || handle.tqcontains('.') <1)
+ if( handle.contains('@') != 1 || handle.contains('.') <1)
{
KMessageBox::queuedMessageBox( Kopete::UI::Global::mainWidget(), KMessageBox::Sorry,
i18n("You must enter a valid email address."), i18n("MSN Plugin"));
@@ -399,7 +399,7 @@ void MSNChatSession::sendMessageQueue()
void MSNChatSession::slotAcknowledgement(unsigned int id, bool ack)
{
- if ( !m_messagesSent.tqcontains( id ) )
+ if ( !m_messagesSent.contains( id ) )
{
// This is maybe a ACK/NAK for a non-messaging message
return;
@@ -433,14 +433,14 @@ void MSNChatSession::slotInvitation(const TQString &handle, const TQString &msg)
rx.search(msg);
long unsigned int cookie=rx.cap(1).toUInt();
- if(m_invitations.tqcontains(cookie))
+ if(m_invitations.contains(cookie))
{
MSNInvitation *msnI=m_invitations[cookie];
msnI->parseInvitation(msg);
}
- else if( msg.tqcontains("Invitation-Command: INVITE") )
+ else if( msg.contains("Invitation-Command: INVITE") )
{
- if( msg.tqcontains(MSNFileTransferSocket::applicationID()) )
+ if( msg.contains(MSNFileTransferSocket::applicationID()) )
{
MSNFileTransferSocket *MFTS=new MSNFileTransferSocket(myself()->account()->accountId(),c,true,this);
connect(MFTS, TQT_SIGNAL( done(MSNInvitation*) ) , this , TQT_SLOT( invitationDone(MSNInvitation*) ));
@@ -603,7 +603,7 @@ void MSNChatSession::slotDebugRawCommand()
if( result == TQDialog::Accepted && m_chatService )
{
m_chatService->sendCommand( dlg->command(), dlg->params(),
- dlg->addId(), dlg->msg().tqreplace("\n","\r\n").utf8() );
+ dlg->addId(), dlg->msg().replace("\n","\r\n").utf8() );
}
delete dlg;
#endif
diff --git a/kopete/protocols/msn/msncontact.cpp b/kopete/protocols/msn/msncontact.cpp
index 8e7742f0..cb4bfaa6 100644
--- a/kopete/protocols/msn/msncontact.cpp
+++ b/kopete/protocols/msn/msncontact.cpp
@@ -317,7 +317,7 @@ void MSNContact::setClientFlags( uint flags )
setProperty( MSNProtocol::protocol()->propClient , i18n("Windows Mobile") );
else if( flags & MSNProtocol::MSNMobileDevice)
setProperty( MSNProtocol::protocol()->propClient , i18n("MSN Mobile") );
- else if( m_obj.tqcontains("kopete") )
+ else if( m_obj.contains("kopete") )
setProperty( MSNProtocol::protocol()->propClient , i18n("Kopete") );
}
@@ -458,7 +458,7 @@ void MSNContact::sync( unsigned int changed )
if( !group->pluginData( protocol() , account()->accountId() + " id" ).isEmpty() )
{
TQString Gid=group->pluginData( protocol(), account()->accountId() + " id" );
- if( !static_cast( account() )->m_groupList.tqcontains(Gid) )
+ if( !static_cast( account() )->m_groupList.contains(Gid) )
{ // ohoh! something is corrupted on the contactlist.xml
// anyway, we never should add a contact to an unexisting group on the server.
// This shouln't be possible anymore 2004-06-10 -Olivier
@@ -476,7 +476,7 @@ void MSNContact::sync( unsigned int changed )
m_moving=true;
}
}
- else if( !m_serverGroups.tqcontains(Gid) )
+ else if( !m_serverGroups.contains(Gid) )
{
//Add the contact to the group on the server
notify->addContact( contactId(), MSNProtocol::FL, TQString(), guid(), Gid );
@@ -506,7 +506,7 @@ void MSNContact::sync( unsigned int changed )
for( TQMap::Iterator it = m_serverGroups.begin();(count > 1 && it != m_serverGroups.end()); ++it )
{
- if( !static_cast( account() )->m_groupList.tqcontains(it.key()) )
+ if( !static_cast( account() )->m_groupList.contains(it.key()) )
{ // ohoh! something is corrupted on the contactlist.xml
// anyway, we never should add a contact to an unexisting group on the server.
@@ -523,7 +523,7 @@ void MSNContact::sync( unsigned int changed )
Kopete::Group *group=it.data();
if(!group) //we can't trust the data of it() see in MSNProtocol::deserializeContact why
group=static_cast( account() )->m_groupList[it.key()];
- if( !metaContact()->groups().tqcontains(group) )
+ if( !metaContact()->groups().contains(group) )
{
m_moving=true;
notify->removeContact( contactId(), MSNProtocol::FL, guid(), it.key() );
@@ -672,7 +672,7 @@ void MSNContact::setDisplayPicture(KTempFile *f)
//copy the temp file somewere else.
// in a better world, the file could be dirrectly wrote at the correct location.
// but the custom emoticon code is to deeply merged in the display picture code while it could be separated.
- TQString newlocation=locateLocal( "appdata", "msnpictures/"+ contactId().lower().tqreplace(TQRegExp("[./~]"),"-") +".png" ) ;
+ TQString newlocation=locateLocal( "appdata", "msnpictures/"+ contactId().lower().replace(TQRegExp("[./~]"),"-") +".png" ) ;
KIO::Job *j=KIO::file_move( KURL::fromPathOrURL( f->name() ) , KURL::fromPathOrURL( newlocation ) , -1, true /*overwrite*/ , false /*resume*/ , false /*showProgressInfo*/ );
@@ -685,7 +685,7 @@ void MSNContact::setDisplayPicture(KTempFile *f)
void MSNContact::slotEmitDisplayPictureChanged()
{
- TQString newlocation=locateLocal( "appdata", "msnpictures/"+ contactId().lower().tqreplace(TQRegExp("[./~]"),"-") +".png" ) ;
+ TQString newlocation=locateLocal( "appdata", "msnpictures/"+ contactId().lower().replace(TQRegExp("[./~]"),"-") +".png" ) ;
setProperty( Kopete::Global::Properties::self()->photo() , newlocation );
emit displayPictureChanged();
}
diff --git a/kopete/protocols/msn/msnfiletransfersocket.cpp b/kopete/protocols/msn/msnfiletransfersocket.cpp
index c08bd3eb..31d16aeb 100644
--- a/kopete/protocols/msn/msnfiletransfersocket.cpp
+++ b/kopete/protocols/msn/msnfiletransfersocket.cpp
@@ -331,7 +331,7 @@ TQString MSNFileTransferSocket::invitationHead()
TQTimer::singleShot( 10 * 60000, this, TQT_SLOT(slotTimer()) ); //the user has 10 mins to accept or refuse or initiate the transfer
return TQString( MSNInvitation::invitationHead()+
- "Application-File: "+ m_fileName.right( m_fileName.length() - m_fileName.tqfindRev( '/' ) - 1 ) +"\r\n"
+ "Application-File: "+ m_fileName.right( m_fileName.length() - m_fileName.findRev( '/' ) - 1 ) +"\r\n"
"Application-FileSize: "+ TQString::number(size()) +"\r\n\r\n").utf8();
}
@@ -340,7 +340,7 @@ void MSNFileTransferSocket::parseInvitation(const TQString& msg)
TQRegExp rx("Invitation-Command: ([A-Z]*)");
rx.search(msg);
TQString command=rx.cap(1);
- if( msg.tqcontains("Invitation-Command: INVITE") )
+ if( msg.contains("Invitation-Command: INVITE") )
{
rx=TQRegExp("Application-File: ([^\\r\\n]*)");
rx.search(msg);
@@ -357,7 +357,7 @@ void MSNFileTransferSocket::parseInvitation(const TQString& msg)
TQObject::connect( Kopete::TransferManager::transferManager(), TQT_SIGNAL( refused( const Kopete::FileTransferInfo & ) ), this, TQT_SLOT( slotFileTransferRefused( const Kopete::FileTransferInfo & ) ) );
}
- else if( msg.tqcontains("Invitation-Command: ACCEPT") )
+ else if( msg.contains("Invitation-Command: ACCEPT") )
{
if(incoming())
{
diff --git a/kopete/protocols/msn/msnnotifysocket.cpp b/kopete/protocols/msn/msnnotifysocket.cpp
index 7db79dd1..41d2d834 100644
--- a/kopete/protocols/msn/msnnotifysocket.cpp
+++ b/kopete/protocols/msn/msnnotifysocket.cpp
@@ -108,7 +108,7 @@ void MSNNotifySocket::handleError( uint code, uint id )
kdDebug(14140) << k_funcinfo << endl;
TQString handle;
- if(m_tmpHandles.tqcontains(id))
+ if(m_tmpHandles.contains(id))
handle=m_tmpHandles[id];
TQString msg;
@@ -465,12 +465,12 @@ void MSNNotifySocket::parseCommand( const TQString &cmd, uint id, const TQString
if( list == "FL" )
{
// Removing a contact
- if( data.tqcontains( ' ' ) < 2 )
+ if( data.contains( ' ' ) < 2 )
{
contactGuid = data.section( ' ', 1, 1 );
}
// Removing a contact from a group
- else if( data.tqcontains( ' ' ) < 3 )
+ else if( data.contains( ' ' ) < 3 )
{
contactGuid = data.section( ' ', 1, 1 );
groupGuid = data.section( ' ', 2, 2 );
@@ -633,7 +633,7 @@ void MSNNotifySocket::parseCommand( const TQString &cmd, uint id, const TQString
"\n"
"
" ) );
+ newMsgText.replace( regExp, TQString::tqfromLatin1("\\1" ) );
regExp.setPattern( "(.*)(?!)" );
- newMsgText.tqreplace( regExp, TQString::tqfromLatin1("\\1" ) );
+ newMsgText.replace( regExp, TQString::tqfromLatin1("\\1" ) );
regExp.setPattern( "(.*)(?!)" );
- newMsgText.tqreplace( regExp, TQString::tqfromLatin1("\\1" ) );
+ newMsgText.replace( regExp, TQString::tqfromLatin1("\\1" ) );
regExp.setPattern( "()" );
- newMsgText.tqreplace( regExp, TQString::tqfromLatin1("\\1" ) );
+ newMsgText.replace( regExp, TQString::tqfromLatin1("\\1" ) );
- newMsgText.tqreplace( TQString::tqfromLatin1( "\r" ), TQString::tqfromLatin1( " " ) );
+ newMsgText.replace( TQString::tqfromLatin1( "\r" ), TQString::tqfromLatin1( " " ) );
return newMsgText;
}
@@ -1208,7 +1208,7 @@ void YahooAccount::slotGotConfInvite( const TQString & who, const TQString & roo
kdDebug(YAHOO_GEN_DEBUG) << who << " has invited you to join the conference \"" << room << "\" : " << msg << endl;
kdDebug(YAHOO_GEN_DEBUG) << "Members: " << members << endl;
- if( !m_pendingConfInvites.tqcontains( room ) ) // We have to keep track of the invites as the server will send the same invite twice if it gets canceled by the host
+ if( !m_pendingConfInvites.contains( room ) ) // We have to keep track of the invites as the server will send the same invite twice if it gets canceled by the host
m_pendingConfInvites.push_back( room );
else
{
@@ -1321,7 +1321,7 @@ void YahooAccount::slotConfUserDecline( const TQString &who, const TQString &roo
{
kdDebug(YAHOO_GEN_DEBUG) ;
- if( !m_conferences.tqcontains( room ) )
+ if( !m_conferences.contains( room ) )
{
kdDebug(YAHOO_GEN_DEBUG) << "Error. No chatsession for this conference found." << endl;
return;
@@ -1338,7 +1338,7 @@ void YahooAccount::slotConfUserDecline( const TQString &who, const TQString &roo
void YahooAccount::slotConfUserJoin( const TQString &who, const TQString &room )
{
kdDebug(YAHOO_GEN_DEBUG) ;
- if( !m_conferences.tqcontains( room ) )
+ if( !m_conferences.contains( room ) )
{
kdDebug(YAHOO_GEN_DEBUG) << "Error. No chatsession for this conference found." << endl;
return;
@@ -1355,7 +1355,7 @@ void YahooAccount::slotConfUserJoin( const TQString &who, const TQString &room )
void YahooAccount::slotConfUserLeave( const TQString & who, const TQString &room )
{
kdDebug(YAHOO_GEN_DEBUG) ;
- if( !m_conferences.tqcontains( room ) )
+ if( !m_conferences.contains( room ) )
{
kdDebug(YAHOO_GEN_DEBUG) << "Error. No chatsession for this conference found." << endl;
return;
@@ -1390,7 +1390,7 @@ void YahooAccount::slotConfMessage( const TQString &who, const TQString &room, c
{
kdDebug(YAHOO_GEN_DEBUG) ;
- if( !m_conferences.tqcontains( room ) )
+ if( !m_conferences.contains( room ) )
{
kdDebug(YAHOO_GEN_DEBUG) << "Error. No chatsession for this conference found." << endl;
return;
@@ -1522,7 +1522,7 @@ void YahooAccount::slotGotFile( const TQString & who, const TQString & url , l
void YahooAccount::slotReceiveFileAccepted(Kopete::Transfer *transfer, const TQString& fileName)
{
kdDebug(YAHOO_GEN_DEBUG) ;
- if( !m_pendingFileTransfers.tqcontains( transfer->info().internalId() ) )
+ if( !m_pendingFileTransfers.contains( transfer->info().internalId() ) )
return;
m_pendingFileTransfers.remove( transfer->info().internalId() );
@@ -1531,7 +1531,7 @@ void YahooAccount::slotReceiveFileAccepted(Kopete::Transfer *transfer, const TQS
//Create directory if it doesn't already exist
TQDir dir;
TQString path = TQFileInfo( fileName ).dirPath();
- for( int i = 1; i <= path.tqcontains('/'); ++i )
+ for( int i = 1; i <= path.contains('/'); ++i )
{
if( !dir.exists( path.section( '/', 0, i ) ) )
{
@@ -1554,7 +1554,7 @@ void YahooAccount::slotReceiveFileAccepted(Kopete::Transfer *transfer, const TQS
void YahooAccount::slotReceiveFileRefused( const Kopete::FileTransferInfo& info )
{
- if( !m_pendingFileTransfers.tqcontains( info.internalId() ) )
+ if( !m_pendingFileTransfers.contains( info.internalId() ) )
return;
m_pendingFileTransfers.remove( info.internalId() );
@@ -1676,7 +1676,7 @@ void YahooAccount::slotGotWebcamInvite( const TQString& who )
return;
}
- if( m_pendingWebcamInvites.tqcontains( who ) )
+ if( m_pendingWebcamInvites.contains( who ) )
return;
m_pendingWebcamInvites.append( who );
@@ -1723,7 +1723,7 @@ void YahooAccount::slotGotBuddyIconChecksum(const TQString &who, int checksum)
}
if ( checksum == kc->property( YahooProtocol::protocol()->iconCheckSum ).value().toInt() &&
- TQFile::exists( locateLocal( "appdata", "yahoopictures/"+ who.lower().tqreplace(TQRegExp("[./~]"),"-") +".png" ) ) )
+ TQFile::exists( locateLocal( "appdata", "yahoopictures/"+ who.lower().replace(TQRegExp("[./~]"),"-") +".png" ) ) )
{
kdDebug(YAHOO_GEN_DEBUG) << "Icon already exists. I will not request it again." << endl;
return;
@@ -1741,7 +1741,7 @@ void YahooAccount::slotGotBuddyIconInfo(const TQString &who, KURL url, int check
}
if ( checksum == kc->property( YahooProtocol::protocol()->iconCheckSum ).value().toInt() &&
- TQFile::exists( locateLocal( "appdata", "yahoopictures/"+ who.lower().tqreplace(TQRegExp("[./~]"),"-") +".png" ) ))
+ TQFile::exists( locateLocal( "appdata", "yahoopictures/"+ who.lower().replace(TQRegExp("[./~]"),"-") +".png" ) ))
{
kdDebug(YAHOO_GEN_DEBUG) << "Icon already exists. I will not download it again." << endl;
return;
diff --git a/kopete/protocols/yahoo/yahooaccount.h b/kopete/protocols/yahoo/yahooaccount.h
index 5a093872..ac70d510 100644
--- a/kopete/protocols/yahoo/yahooaccount.h
+++ b/kopete/protocols/yahoo/yahooaccount.h
@@ -93,7 +93,7 @@ public:
/**
* Returns true if contact @p id is on the server-side contact list
*/
- bool isOnServer(const TQString &id) { return IDs.tqcontains(id); }
+ bool isOnServer(const TQString &id) { return IDs.contains(id); }
/**
* Returns true if we have the server-side contact list
diff --git a/kopete/protocols/yahoo/yahooconferencemessagemanager.cpp b/kopete/protocols/yahoo/yahooconferencemessagemanager.cpp
index b9b510a9..8d34689b 100644
--- a/kopete/protocols/yahoo/yahooconferencemessagemanager.cpp
+++ b/kopete/protocols/yahoo/yahooconferencemessagemanager.cpp
@@ -95,7 +95,7 @@ void YahooConferenceChatSession::slotInviteOthers()
Kopete::Contact *myself = account()->myself();
for( ; it.current(); ++it )
{
- if( (*it) != myself && !members().tqcontains( *it ) )
+ if( (*it) != myself && !members().contains( *it ) )
buddies.push_back( (*it)->contactId() );
}
diff --git a/kopete/protocols/yahoo/yahoocontact.cpp b/kopete/protocols/yahoo/yahoocontact.cpp
index 377103c8..06559f8f 100644
--- a/kopete/protocols/yahoo/yahoocontact.cpp
+++ b/kopete/protocols/yahoo/yahoocontact.cpp
@@ -232,7 +232,7 @@ TQString YahooContact::prepareMessage( const TQString &messageText )
pos = regExp.search( messageText, pos );
if ( pos >= 0 ) {
pos += regExp.matchedLength();
- newMsg.tqreplace( regExp, TQString::tqfromLatin1("\033[1m\\3\033[x1m" ) );
+ newMsg.replace( regExp, TQString::tqfromLatin1("\033[1m\\3\033[x1m" ) );
}
}
@@ -243,7 +243,7 @@ TQString YahooContact::prepareMessage( const TQString &messageText )
pos = regExp.search( messageText, pos );
if ( pos >= 0 ) {
pos += regExp.matchedLength();
- newMsg.tqreplace( regExp, TQString::tqfromLatin1("\033[4m\\3\033[x4m" ) );
+ newMsg.replace( regExp, TQString::tqfromLatin1("\033[4m\\3\033[x4m" ) );
}
}
@@ -254,7 +254,7 @@ TQString YahooContact::prepareMessage( const TQString &messageText )
pos = regExp.search( messageText, pos );
if ( pos >= 0 ) {
pos += regExp.matchedLength();
- newMsg.tqreplace( regExp, TQString::tqfromLatin1("\033[2m\\3\033[x2m" ) );
+ newMsg.replace( regExp, TQString::tqfromLatin1("\033[2m\\3\033[x2m" ) );
}
}
@@ -265,7 +265,7 @@ TQString YahooContact::prepareMessage( const TQString &messageText )
pos = regExp.search( messageText, pos );
if ( pos >= 0 ) {
pos += regExp.matchedLength();
- newMsg.tqreplace( regExp, TQString::tqfromLatin1("\033[#\\2m\\4\033[#000000m" ) );
+ newMsg.replace( regExp, TQString::tqfromLatin1("\033[#\\2m\\4\033[#000000m" ) );
}
}
@@ -276,7 +276,7 @@ TQString YahooContact::prepareMessage( const TQString &messageText )
pos = regExp.search( messageText, pos );
if ( pos >= 0 ) {
pos += regExp.matchedLength();
- newMsg.tqreplace( regExp, TQString::tqfromLatin1("\\4" ) );
+ newMsg.replace( regExp, TQString::tqfromLatin1("\\4" ) );
}
}
@@ -287,7 +287,7 @@ TQString YahooContact::prepareMessage( const TQString &messageText )
pos = regExp.search( messageText, pos );
if ( pos >= 0 ) {
pos += regExp.matchedLength();
- newMsg.tqreplace( regExp, TQString::tqfromLatin1("\\4" ) );
+ newMsg.replace( regExp, TQString::tqfromLatin1("\\4" ) );
}
}
@@ -298,18 +298,18 @@ TQString YahooContact::prepareMessage( const TQString &messageText )
pos = regExp.search( messageText, pos );
if ( pos >= 0 ) {
pos += regExp.matchedLength();
- newMsg.tqreplace( regExp, TQString::tqfromLatin1("\\2") );
+ newMsg.replace( regExp, TQString::tqfromLatin1("\\2") );
}
}
// convert escaped chars
- newMsg.tqreplace( TQString::tqfromLatin1( ">" ), TQString::tqfromLatin1( ">" ) );
- newMsg.tqreplace( TQString::tqfromLatin1( "<" ), TQString::tqfromLatin1( "<" ) );
- newMsg.tqreplace( TQString::tqfromLatin1( """ ), TQString::tqfromLatin1( "\"" ) );
- newMsg.tqreplace( TQString::tqfromLatin1( " " ), TQString::tqfromLatin1( " " ) );
- newMsg.tqreplace( TQString::tqfromLatin1( "&" ), TQString::tqfromLatin1( "&" ) );
- newMsg.tqreplace( TQString::tqfromLatin1( " " ), TQString::tqfromLatin1( "\r" ) );
- newMsg.tqreplace( TQString::tqfromLatin1( " " ), TQString::tqfromLatin1( "\r" ) );
+ newMsg.replace( TQString::tqfromLatin1( ">" ), TQString::tqfromLatin1( ">" ) );
+ newMsg.replace( TQString::tqfromLatin1( "<" ), TQString::tqfromLatin1( "<" ) );
+ newMsg.replace( TQString::tqfromLatin1( """ ), TQString::tqfromLatin1( "\"" ) );
+ newMsg.replace( TQString::tqfromLatin1( " " ), TQString::tqfromLatin1( " " ) );
+ newMsg.replace( TQString::tqfromLatin1( "&" ), TQString::tqfromLatin1( "&" ) );
+ newMsg.replace( TQString::tqfromLatin1( " " ), TQString::tqfromLatin1( "\r" ) );
+ newMsg.replace( TQString::tqfromLatin1( " " ), TQString::tqfromLatin1( "\r" ) );
return newMsg;
}
@@ -549,7 +549,7 @@ void YahooContact::setDisplayPicture(const TQByteArray &data, int checksum)
{
kdDebug(YAHOO_GEN_DEBUG) << k_funcinfo << data.size() << endl;
- TQString newlocation = locateLocal( "appdata", "yahoopictures/"+ contactId().lower().tqreplace(TQRegExp("[./~]"),"-") +".png" ) ;
+ TQString newlocation = locateLocal( "appdata", "yahoopictures/"+ contactId().lower().replace(TQRegExp("[./~]"),"-") +".png" ) ;
setProperty( YahooProtocol::protocol()->iconCheckSum, checksum );
TQFile f( newlocation );
@@ -590,7 +590,7 @@ const YABEntry *YahooContact::yabEntry()
void YahooContact::slotEmitDisplayPictureChanged()
{
kdDebug(YAHOO_GEN_DEBUG) << k_funcinfo << endl;
- TQString newlocation=locateLocal( "appdata", "yahoopictures/"+ contactId().lower().tqreplace(TQRegExp("[./~]"),"-") +".png" ) ;
+ TQString newlocation=locateLocal( "appdata", "yahoopictures/"+ contactId().lower().replace(TQRegExp("[./~]"),"-") +".png" ) ;
setProperty( Kopete::Global::Properties::self()->photo(), TQString() );
setProperty( Kopete::Global::Properties::self()->photo() , newlocation );
emit displayPictureChanged();
@@ -838,5 +838,5 @@ void YahooContact::readYABEntry()
#include "yahoocontact.moc"
// vim: set noet ts=4 sts=4 sw=4:
-//kate: space-indent off; tqreplace-tabs off; indent-mode csands;
+//kate: space-indent off; replace-tabs off; indent-mode csands;
diff --git a/kopete/styles/Hacker/gpl.txt b/kopete/styles/Hacker/gpl.txt
index fa85e301..3912109b 100644
--- a/kopete/styles/Hacker/gpl.txt
+++ b/kopete/styles/Hacker/gpl.txt
@@ -59,7 +59,7 @@ modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
- 0. This License applies to any program or other work which tqcontains
+ 0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
@@ -154,7 +154,7 @@ Sections 1 and 2 above provided that you also do one of the following:
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
-code means all the source code for all modules it tqcontains, plus any
+code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
diff --git a/kpf/src/AppletItem.cpp b/kpf/src/AppletItem.cpp
index 9e49679d..f6eb7dd4 100644
--- a/kpf/src/AppletItem.cpp
+++ b/kpf/src/AppletItem.cpp
@@ -132,7 +132,7 @@ namespace KPF
break;
}
- if (!TQT_TQRECT_OBJECT(rect()).tqcontains(e->pos()))
+ if (!TQT_TQRECT_OBJECT(rect()).contains(e->pos()))
{
break;
}
diff --git a/kpf/src/ByteRange.cpp b/kpf/src/ByteRange.cpp
index b5bdf0a1..2db5de6b 100644
--- a/kpf/src/ByteRange.cpp
+++ b/kpf/src/ByteRange.cpp
@@ -128,7 +128,7 @@ namespace KPF
{
kpfDebug << "addByteRange(" << s << ")" << endl;
- int dashPos = s.tqfind('-');
+ int dashPos = s.find('-');
if (-1 == dashPos)
{
diff --git a/kpf/src/Request.cpp b/kpf/src/Request.cpp
index 886aac44..702b4989 100644
--- a/kpf/src/Request.cpp
+++ b/kpf/src/Request.cpp
@@ -56,7 +56,7 @@ namespace KPF
{
TQString line(*it);
- int colonPos = line.tqfind(':');
+ int colonPos = line.find(':');
if (-1 != colonPos)
{
@@ -114,7 +114,7 @@ namespace KPF
s.remove(0, 5);
- int dotPos = s.tqfind('.');
+ int dotPos = s.find('.');
if (-1 != dotPos)
{
@@ -367,7 +367,7 @@ namespace KPF
// Double slash -> slash.
TQRegExp r("\\/\\/+");
- s.tqreplace(r, "/");
+ s.replace(r, "/");
return s;
}
diff --git a/kpf/src/Response.cpp b/kpf/src/Response.cpp
index 1299fd44..67d4f206 100644
--- a/kpf/src/Response.cpp
+++ b/kpf/src/Response.cpp
@@ -152,9 +152,9 @@ namespace KPF
{
TQString line(str.readLine());
- line.tqreplace(regexpMessage, responseName(code));
- line.tqreplace(regexpCode, TQString::number(code));
- line.tqreplace(regexpResource, request.path());
+ line.replace(regexpMessage, responseName(code));
+ line.replace(regexpCode, TQString::number(code));
+ line.replace(regexpResource, request.path());
html = line + "\r\n";
}
diff --git a/kpf/src/Server.cpp b/kpf/src/Server.cpp
index 00904132..62566b63 100644
--- a/kpf/src/Server.cpp
+++ b/kpf/src/Server.cpp
@@ -255,7 +255,7 @@ namespace KPF
// simply not be found, but I'm worried that the TQDir/TQFile/TQFileInfo
// stuff might try to expand it, so I'm not taking any chances.
- if (d->request.path().tqcontains("..") || d->request.path().tqcontains('~'))
+ if (d->request.path().contains("..") || d->request.path().contains('~'))
{
kpfDebug << d->id << ": readRequest: bogus path" << endl;
d->state = Responding;
diff --git a/kppp/Rules/checkrules b/kppp/Rules/checkrules
index 2ac45ec1..9e695d5b 100755
--- a/kppp/Rules/checkrules
+++ b/kppp/Rules/checkrules
@@ -4,8 +4,8 @@ KPPP=`which kppp` || (echo "cannot find kppp"; exit 1)
cd `dirname $0 2> /dev/null` || (echo "\"dirname\" required"; exit 1)
-FILESTOCHECK=`tqfind -name "*.rst" -type f 2> /dev/null` || \
- (echo "\"tqfind\" required\""; exit 1)
+FILESTOCHECK=`find -name "*.rst" -type f 2> /dev/null` || \
+ (echo "\"find\" required\""; exit 1)
for i in ${FILESTOCHECK}
do
diff --git a/kppp/accounting.cpp b/kppp/accounting.cpp
index b9280eda..6ee8ee45 100644
--- a/kppp/accounting.cpp
+++ b/kppp/accounting.cpp
@@ -384,11 +384,11 @@ void ExecutableAccounting::gotData(KProcess */*proc*/, char *buffer, int /*bufle
// split string
TQString b(buffer);
- pos = b.tqfind(':');
+ pos = b.find(':');
while(pos != -1 && nFields < 8) {
field[nFields++] = b.mid(last_pos, pos-last_pos);
last_pos = pos+1;
- pos = b.tqfind(':', last_pos);
+ pos = b.find(':', last_pos);
}
for(int i = 0; i < nFields;i++)
@@ -398,9 +398,9 @@ void ExecutableAccounting::gotData(KProcess */*proc*/, char *buffer, int /*bufle
TQString s(buffer);
int del1, del2, del3;
- del1 = s.tqfind(':');
- del2 = s.tqfind(':', del1+1);
- del3 = s.tqfind(':', del2+1);
+ del1 = s.find(':');
+ del2 = s.find(':', del1+1);
+ del3 = s.find(':', del2+1);
if(del1 == -1 || del2 == -1 || del3 == -1) {
// TODO: do something usefull here
return;
diff --git a/kppp/accounts.cpp b/kppp/accounts.cpp
index cbfe03d7..eadace7e 100644
--- a/kppp/accounts.cpp
+++ b/kppp/accounts.cpp
@@ -293,7 +293,7 @@ void AccountWidget::newaccount() {
if(result == TQDialog::Accepted) {
accountlist_l->insertItem(gpppdata.accname());
- accountlist_l->setSelected(accountlist_l->tqfindItem(gpppdata.accname()),
+ accountlist_l->setSelected(accountlist_l->findItem(gpppdata.accname()),
true);
emit resetaccounts();
gpppdata.save();
diff --git a/kppp/acctselect.cpp b/kppp/acctselect.cpp
index 4cad3aeb..fd456202 100644
--- a/kppp/acctselect.cpp
+++ b/kppp/acctselect.cpp
@@ -134,7 +134,7 @@ AccountingSelector::AccountingSelector(TQWidget *tqparent, bool _isnewaccount, c
TQString AccountingSelector::fileNameToName(TQString s) {
- s.tqreplace('_', " ");
+ s.replace('_', " ");
return KURL::decode_string(s);
}
@@ -142,7 +142,7 @@ TQString AccountingSelector::fileNameToName(TQString s) {
TQString AccountingSelector::nameToFileName(TQString s) {
- s.tqreplace(' ', "_");
+ s.replace(' ', "_");
return s;
}
diff --git a/kppp/connect.cpp b/kppp/connect.cpp
index bb2c17a2..b02da8db 100644
--- a/kppp/connect.cpp
+++ b/kppp/connect.cpp
@@ -425,7 +425,7 @@ void ConnectWidget::timerEvent(TQTimerEvent *) {
return;
}
- if(readbuffer.tqcontains(gpppdata.modemBusyResp())) {
+ if(readbuffer.contains(gpppdata.modemBusyResp())) {
timeout_timer->stop();
timeout_timer->start(gpppdata.modemTimeout()*1000);
@@ -451,7 +451,7 @@ void ConnectWidget::timerEvent(TQTimerEvent *) {
return;
}
- if(readbuffer.tqcontains(gpppdata.modemNoDialtoneResp())) {
+ if(readbuffer.contains(gpppdata.modemNoDialtoneResp())) {
timeout_timer->stop();
messg->setText(i18n("No Dial Tone"));
@@ -461,7 +461,7 @@ void ConnectWidget::timerEvent(TQTimerEvent *) {
return;
}
- if(readbuffer.tqcontains(gpppdata.modemNoCarrierResp())) {
+ if(readbuffer.contains(gpppdata.modemNoCarrierResp())) {
if (gpppdata.get_redial_on_nocarrier()) {
timeout_timer->stop();
timeout_timer->start(gpppdata.modemTimeout()*1000);
@@ -492,7 +492,7 @@ void ConnectWidget::timerEvent(TQTimerEvent *) {
return;
}
- if(readbuffer.tqcontains(gpppdata.modemDLPResp())) {
+ if(readbuffer.contains(gpppdata.modemDLPResp())) {
timeout_timer->stop();
messg->setText(i18n("Digital Line Protection Detected."));
@@ -583,12 +583,12 @@ void ConnectWidget::timerEvent(TQTimerEvent *) {
if (scriptCommand == "Send" || scriptCommand == "SendNoEcho") {
TQString bm = i18n("Sending %1");
- // tqreplace %USERNAME% and %PASSWORD%
+ // replace %USERNAME% and %PASSWORD%
TQString arg = scriptArgument;
TQRegExp re1("%USERNAME%");
TQRegExp re2("%PASSWORD%");
- arg = arg.tqreplace(re1, gpppdata.storedUsername());
- arg = arg.tqreplace(re2, gpppdata.storedPassword());
+ arg = arg.replace(re1, gpppdata.storedUsername());
+ arg = arg.replace(re2, gpppdata.storedPassword());
if (scriptCommand == "Send")
bm = bm.tqarg(scriptArgument);
@@ -752,7 +752,7 @@ void ConnectWidget::timerEvent(TQTimerEvent *) {
// variable (from the subsequent scan).
TQString ts = scriptArgument;
- int vstart = ts.tqfind( "##" );
+ int vstart = ts.find( "##" );
if( vstart != -1 ) {
ts.remove( vstart, 2 );
ts.insert( vstart, scanvar );
@@ -994,11 +994,11 @@ void ConnectWidget::checkBuffers() {
// Let's check if we are finished with scanning:
// The scanstring have to be in the buffer and the latest character
// was a carriage return or an linefeed (depending on modem setup)
- if( scanning && scanbuffer.tqcontains(scanstr) &&
+ if( scanning && scanbuffer.contains(scanstr) &&
( scanbuffer.right(1) == "\n" || scanbuffer.right(1) == "\r") ) {
scanning = false;
- int vstart = scanbuffer.tqfind( scanstr ) + scanstr.length();
+ int vstart = scanbuffer.find( scanstr ) + scanstr.length();
scanvar = scanbuffer.mid( vstart, scanbuffer.length() - vstart);
scanvar = scanvar.stripWhiteSpace();
@@ -1008,10 +1008,10 @@ void ConnectWidget::checkBuffers() {
}
if(expecting) {
- if(readbuffer.tqcontains(expectstr)) {
+ if(readbuffer.contains(expectstr)) {
expecting = false;
// keep everything after the expected string
- readbuffer.remove(0, readbuffer.tqfind(expectstr) + expectstr.length());
+ readbuffer.remove(0, readbuffer.find(expectstr) + expectstr.length());
TQString ts = i18n("Found: %1").tqarg(expectstr);
emit debugMessage(ts);
@@ -1021,7 +1021,7 @@ void ConnectWidget::checkBuffers() {
}
}
- if (loopend && readbuffer.tqcontains(loopstr[loopnest])) {
+ if (loopend && readbuffer.contains(loopstr[loopnest])) {
expecting = false;
readbuffer = "";
TQString ts = i18n("Looping: %1").tqarg(loopstr[loopnest]);
@@ -1127,7 +1127,7 @@ void ConnectWidget::setExpect(const TQString &n) {
expectstr = n;
TQString ts = i18n("Expecting: %1").tqarg(n);
- ts.tqreplace(TQRegExp("\n"), "");
+ ts.replace(TQRegExp("\n"), "");
emit debugMessage(ts);
// check if the expected string is in the read buffer already.
@@ -1382,7 +1382,7 @@ void auto_hostname() {
if (hostname_entry != 0L) {
new_hostname=hostname_entry->h_name;
- dot=new_hostname.tqfind('.');
+ dot=new_hostname.find('.');
new_hostname=new_hostname.remove(dot,new_hostname.length()-dot);
Requester::rq->setHostname(new_hostname);
modified_hostname = TRUE;
@@ -1427,11 +1427,11 @@ void add_domain(const TQString &domain) {
write(fd, tmp.data(), tmp.length());
for(int j=0; j < i; j++) {
- if((resolv[j].tqcontains("domain") ||
- ( resolv[j].tqcontains("nameserver")
- && !resolv[j].tqcontains("#kppp temp entry")
+ if((resolv[j].contains("domain") ||
+ ( resolv[j].contains("nameserver")
+ && !resolv[j].contains("#kppp temp entry")
&& gpppdata.exDNSDisabled()))
- && !resolv[j].tqcontains("#entry disabled by kppp")) {
+ && !resolv[j].contains("#entry disabled by kppp")) {
TQCString tmp = "# " + resolv[j].local8Bit() +
" \t#entry disabled by kppp\n";
write(fd, tmp, tmp.length());
@@ -1510,8 +1510,8 @@ void removedns() {
if((fd = Requester::rq->openResolv(O_WRONLY|O_TRUNC)) >= 0) {
for(int j=0; j < i; j++) {
- if(resolv[j].tqcontains("#kppp temp entry")) continue;
- if(resolv[j].tqcontains("#entry disabled by kppp")) {
+ if(resolv[j].contains("#kppp temp entry")) continue;
+ if(resolv[j].contains("#entry disabled by kppp")) {
TQCString tmp = resolv[j].local8Bit();
write(fd, tmp.data()+2, tmp.length() - 27);
write(fd, "\n", 1);
diff --git a/kppp/edit.cpp b/kppp/edit.cpp
index e9f049ab..fb1156be 100644
--- a/kppp/edit.cpp
+++ b/kppp/edit.cpp
@@ -724,7 +724,7 @@ DNSWidget::DNSWidget( TQWidget *tqparent, bool isnewaccount, const char *name )
void DNSWidget::DNS_Edit_Changed(const TQString &text) {
TQRegExp r("[0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+");
- add->setEnabled(text.tqfind(r) != -1);
+ add->setEnabled(text.find(r) != -1);
}
void DNSWidget::DNS_Entry_Selected(int) {
diff --git a/kppp/kpppwidget.cpp b/kppp/kpppwidget.cpp
index 7549581a..4a335d45 100644
--- a/kppp/kpppwidget.cpp
+++ b/kppp/kpppwidget.cpp
@@ -733,7 +733,7 @@ void KPPPWidget::beginConnect() {
if(!info2.exists()){
TQString string;
- string = i18n("kppp can not tqfind:\n %1\nPlease make sure you have setup "
+ string = i18n("kppp can not find:\n %1\nPlease make sure you have setup "
"your modem device properly "
"and/or adjust the location of the modem device on "
"the modem tab of "
@@ -994,7 +994,7 @@ void KPPPWidget::resetVolume(const TQString &s) {
*/
TQString KPPPWidget::encodeWord(const TQString &s) {
TQString r = s;
- r.tqreplace(TQRegExp("\\"), "\\\\");
+ r.replace(TQRegExp("\\"), "\\\\");
return r;
}
diff --git a/kppp/logview/monthly.cpp b/kppp/logview/monthly.cpp
index 8ac58c16..80adc7bf 100644
--- a/kppp/logview/monthly.cpp
+++ b/kppp/logview/monthly.cpp
@@ -304,7 +304,7 @@ void MonthlyWidget::plotMonth() {
con = li->connectionName();
// this connection name not in the list and combo box
- if(lstConnections.tqfindIndex(con) == -1) {
+ if(lstConnections.findIndex(con) == -1) {
lstConnections.append(con);
cboConnections->insertItem(con);
}
@@ -513,7 +513,7 @@ void MonthlyWidget::exportWizard() {
con = li->connectionName();
// this connection name not in the list and combo box
- if(lstConnections.tqfindIndex(con) == -1) {
+ if(lstConnections.findIndex(con) == -1) {
lstConnections.append(con);
cboConnections->insertItem(con);
}
diff --git a/kppp/modemdb.cpp b/kppp/modemdb.cpp
index 74488dca..4da23213 100644
--- a/kppp/modemdb.cpp
+++ b/kppp/modemdb.cpp
@@ -152,7 +152,7 @@ TQStringList *ModemDatabase::models(TQString vendor) {
for(uint i = 0; i < modems.count(); i++) {
CharDict *dict = modems.at(i);
- if(dict->tqfind("Vendor") != 0) {
+ if(dict->find("Vendor") != 0) {
if(vendor == *(*dict)["Vendor"] && (*(*dict)["Name"]).at(0) != '!')
sl->append(*(*dict)["Name"]);
}
@@ -179,7 +179,7 @@ void ModemDatabase::loadModem(const TQString &key, CharDict &dict) {
// e = it->current();
while(!it.key().isNull()) {
- if(dict.tqfind(it.key()) == 0) {
+ if(dict.find(it.key()) == 0) {
dict.insert(it.key(), new TQString(it.data()));
}
it++;
@@ -187,7 +187,7 @@ void ModemDatabase::loadModem(const TQString &key, CharDict &dict) {
// check name attribute
if(dict["Name"] == 0 || key[0]=='!') {
- dict.tqreplace("Name", new TQString(key));
+ dict.replace("Name", new TQString(key));
}
// check tqparent attribute
@@ -217,16 +217,16 @@ void ModemDatabase::load() {
// if(strcmp(it->latin1(), "Common") == 0) {
if(*it == "Common") {
TQString s = i18n("Hayes(tm) compatible modem");
- c->tqreplace("Name", new TQString (s));
+ c->replace("Name", new TQString (s));
s = i18n("");
- c->tqreplace("Vendor", new TQString(s));
+ c->replace("Vendor", new TQString(s));
}
modems.append(c);
if(modemDB->hasKey("Vendor")) {
TQString vendor = modemDB->readEntry("Vendor");
- if(lvendors->tqfindIndex(vendor) == -1)
+ if(lvendors->findIndex(vendor) == -1)
lvendors->append(vendor);
}
++it;
diff --git a/kppp/modeminfo.cpp b/kppp/modeminfo.cpp
index 9aa79b8a..737d468a 100644
--- a/kppp/modeminfo.cpp
+++ b/kppp/modeminfo.cpp
@@ -207,7 +207,7 @@ void ModemTransfer::readtty() {
if (step == 0)
return;
- readbuffer.tqreplace(TQRegExp("[\n\r]")," "); // remove stray \n and \r
+ readbuffer.replace(TQRegExp("[\n\r]")," "); // remove stray \n and \r
readbuffer = readbuffer.stripWhiteSpace(); // strip of leading or trailing white
// space
diff --git a/kppp/modems.cpp b/kppp/modems.cpp
index 6fb3a650..84b0979e 100644
--- a/kppp/modems.cpp
+++ b/kppp/modems.cpp
@@ -159,7 +159,7 @@ void ModemsWidget::newmodem() {
if(result == TQDialog::Accepted) {
modemlist_l->insertItem(gpppdata.modname());
- modemlist_l->setSelected(modemlist_l->tqfindItem(gpppdata.modname()),
+ modemlist_l->setSelected(modemlist_l->findItem(gpppdata.modname()),
true);
emit resetmodems();
gpppdata.save();
diff --git a/kppp/pppdata.cpp b/kppp/pppdata.cpp
index e856dd2c..62dfeaa9 100644
--- a/kppp/pppdata.cpp
+++ b/kppp/pppdata.cpp
@@ -929,7 +929,7 @@ bool PPPData::setAccountByIndex(int i) {
bool PPPData::isUniqueAccname(const TQString &n) {
- if(n.tqcontains(':'))
+ if(n.contains(':'))
return false;
int current = caccount;
for(int i=0; i <= accounthighcount; i++) {
diff --git a/kppp/ppplog.cpp b/kppp/ppplog.cpp
index 597cd53d..a5075b3e 100644
--- a/kppp/ppplog.cpp
+++ b/kppp/ppplog.cpp
@@ -163,7 +163,7 @@ void PPPL_AnalyseLog(TQStringList &list, TQStringList &result) {
for ( TQStringList::Iterator it = list.begin(); it != list.end(); ++it )
{
// look for remote message
- int pos = (*it).tqfind(rmsg);
+ int pos = (*it).find(rmsg);
if (pos != -1)
{
TQString str = (*it);
@@ -180,7 +180,7 @@ void PPPL_AnalyseLog(TQStringList &list, TQStringList &result) {
for(uint k = 0; hints[k].regexp != 0; k++) {
TQRegExp rx(hints[k].regexp);
TQString l(*it);
- if(l.tqcontains(rx)) {
+ if(l.contains(rx)) {
result.append(i18n(hints[k].answer));
break;
}
@@ -206,11 +206,11 @@ void PPPL_ShowLog() {
TQString conn = TQString::tqfromLatin1("Connect:");
TQStringList::ConstIterator it = sl.begin();
for( ; it != sl.end(); it++) {
- if((*it).tqfind(lcp) >= 0) {
+ if((*it).find(lcp) >= 0) {
foundLCP = true;
break;
}
- if((*it).tqfind(conn) >= 0)
+ if((*it).find(conn) >= 0)
foundConnect = true;
}
if(foundConnect && !foundLCP) {
diff --git a/kppp/providerdb.cpp b/kppp/providerdb.cpp
index a86b915d..f27c5528 100644
--- a/kppp/providerdb.cpp
+++ b/kppp/providerdb.cpp
@@ -143,11 +143,11 @@ void ProviderDB::accept() {
while(it != map.end()) {
TQString key = it.key();
TQString value = *it;
- if(value.tqcontains(re_username))
- value.tqreplace(re_username, page4->username());
+ if(value.contains(re_username))
+ value.replace(re_username, page4->username());
- if(value.tqcontains(re_password))
- value.tqreplace(re_password, page4->password());
+ if(value.contains(re_password))
+ value.replace(re_password, page4->password());
gpppdata.writeConfig(gpppdata.currentAccountGroup(), key, value);
@@ -296,7 +296,7 @@ void PDB_Provider::setDir(const TQString &_dir) {
TQString dir1 = KGlobal::dirs()->findDirs("appdata", "Provider").first();
TQRegExp re1(" ");
- dir = dir.tqreplace(re1, "_");
+ dir = dir.replace(re1, "_");
dir1 += dir;
TQDir d(dir1);
@@ -458,7 +458,7 @@ void urlEncode(TQString &s) {
TQString s1, tmp;
for(uint i = 0; i < s.length(); i++) {
- if(TQString(UNENCODED_CHARS).tqfind(s[i]) >= 0)
+ if(TQString(UNENCODED_CHARS).find(s[i]) >= 0)
s1 += s[i];
else {
tmp.sprintf("%%%03i", s[i].tqunicode());
diff --git a/kppp/ruleset.cpp b/kppp/ruleset.cpp
index 6c2131a6..ef9d9517 100644
--- a/kppp/ruleset.cpp
+++ b/kppp/ruleset.cpp
@@ -127,7 +127,7 @@ int RuleSet::load(const TQString &filename) {
} while(!f.atEnd() && backslashed);
// strip whitespace
- line = line.tqreplace(TQRegExp("[ \t\r]"), "");
+ line = line.replace(TQRegExp("[ \t\r]"), "");
// skip comment lines
if((line.left(1) == "#") || line.isEmpty())
continue;
@@ -183,7 +183,7 @@ void RuleSet::addRule(RULE r) {
}
bool RuleSet::parseEntry(RULE &ret, TQString s, int year) {
- if(s.tqcontains(TQRegExp("^[0-9]+/[0-9]+$"))) {
+ if(s.contains(TQRegExp("^[0-9]+/[0-9]+$"))) {
int d, m;
sscanf(s.ascii(), "%d/%d", &m, &d);
ret.type = 1;
@@ -192,7 +192,7 @@ bool RuleSet::parseEntry(RULE &ret, TQString s, int year) {
return TRUE;
}
- if(s.tqcontains(TQRegExp("^[0-9]+\\.[0-9]+$"))) {
+ if(s.contains(TQRegExp("^[0-9]+\\.[0-9]+$"))) {
int d, m;
sscanf(s.ascii(), "%d.%d", &d, &m);
ret.type = 1;
@@ -245,7 +245,7 @@ bool RuleSet::parseEntries(TQString s, int year,
s = "monday..sunday";
while(s.length()) {
- int pos = s.tqfind(',');
+ int pos = s.find(',');
TQString token;
if(pos == -1) {
token = s;
@@ -258,9 +258,9 @@ bool RuleSet::parseEntries(TQString s, int year,
// we've a token, now check if it defines a
// range
RULE r;
- if(token.tqcontains("..")) {
+ if(token.contains("..")) {
TQString left, right;
- left = token.left(token.tqfind(".."));
+ left = token.left(token.find(".."));
right = token.right(token.length()-2-left.length());
RULE lr, rr;
if(parseEntry(lr, left, year) && parseEntry(rr, right, year)) {
@@ -317,13 +317,13 @@ bool RuleSet::parseRate(double &costs, double &len, double &after, TQString s) {
bool RuleSet::parseLine(const TQString &s) {
- // ### use TQRegExp::cap() instead of mid() and tqfind()
+ // ### use TQRegExp::cap() instead of mid() and find()
// for our french friends -- Bernd
- if(s.tqcontains(TQRegExp("flat_init_costs=\\(.*"))) {
+ if(s.contains(TQRegExp("flat_init_costs=\\(.*"))) {
// parse the time fields
- TQString token = s.mid(s.tqfind("flat_init_costs=(") + 17,
- s.tqfind(")")-s.tqfind("flat_init_costs=(") - 17);
+ TQString token = s.mid(s.find("flat_init_costs=(") + 17,
+ s.find(")")-s.find("flat_init_costs=(") - 17);
// printf("TOKEN=%s\n",token.ascii());
double after;
@@ -342,17 +342,17 @@ bool RuleSet::parseLine(const TQString &s) {
}
- if(s.tqcontains(TQRegExp("on\\(.*\\)between\\(.*\\)use\\(.*\\)"))) {
+ if(s.contains(TQRegExp("on\\(.*\\)between\\(.*\\)use\\(.*\\)"))) {
// parse the time fields
- TQString token = s.mid(s.tqfind("between(") + 8,
- s.tqfind(")use")-s.tqfind("between(") - 8);
+ TQString token = s.mid(s.find("between(") + 8,
+ s.find(")use")-s.find("between(") - 8);
TQTime t1, t2;
if(!parseTime(t1, t2, token))
return FALSE;
// parse the rate fields
- token = s.mid(s.tqfind("use(") + 4,
- s.tqfindRev(")")-s.tqfind("use(") - 4);
+ token = s.mid(s.find("use(") + 4,
+ s.findRev(")")-s.find("use(") - 4);
double costs;
double len;
double after;
@@ -360,8 +360,8 @@ bool RuleSet::parseLine(const TQString &s) {
return FALSE;
// parse the days
- token = s.mid(s.tqfind("on(") + 3,
- s.tqfind(")betw")-s.tqfind("on(") - 3);
+ token = s.mid(s.find("on(") + 3,
+ s.find(")betw")-s.find("on(") - 3);
if(!parseEntries(token, TQDate::tqcurrentDate().year(),
t1, t2, costs, len, after))
return FALSE;
@@ -370,14 +370,14 @@ bool RuleSet::parseLine(const TQString &s) {
}
// check for the name
- if(s.tqcontains(TQRegExp("name=.*"))) {
+ if(s.contains(TQRegExp("name=.*"))) {
_name = s.right(s.length()-5);
return !_name.isEmpty();
}
// check default entry
- if(s.tqcontains(TQRegExp("default=\\(.*\\)"))) {
+ if(s.contains(TQRegExp("default=\\(.*\\)"))) {
TQString token = s.mid(9, s.length() - 10);
double after;
if(parseRate(default_costs, default_len, after, token))
@@ -385,7 +385,7 @@ bool RuleSet::parseLine(const TQString &s) {
}
// check for "minimum costs"
- if(s.tqcontains(TQRegExp("minimum_costs=.*"))) {
+ if(s.contains(TQRegExp("minimum_costs=.*"))) {
TQString token = s.right(s.length() - strlen("minimum_costs="));
bool ok;
_minimum_costs = token.toDouble(&ok);
@@ -398,7 +398,7 @@ bool RuleSet::parseLine(const TQString &s) {
return TRUE;
}
- if(s.tqcontains(TQRegExp("currency_digits=.*"))) {
+ if(s.contains(TQRegExp("currency_digits=.*"))) {
TQString token = s.mid(16, s.length() - 16);
bool ok;
_currency_digits = token.toInt(&ok);
@@ -406,11 +406,11 @@ bool RuleSet::parseLine(const TQString &s) {
}
// "currency_position" is deprecated so we'll simply ignore it
- if(s.tqcontains(TQRegExp("currency_position=.*")))
+ if(s.contains(TQRegExp("currency_position=.*")))
return TRUE;
// check per connection fee
- if(s.tqcontains(TQRegExp("per_connection="))) {
+ if(s.contains(TQRegExp("per_connection="))) {
TQString token = s.mid(15, s.length()-15);
bool ok;
pcf = token.toDouble(&ok);
diff --git a/krdc/krdc.cpp b/krdc/krdc.cpp
index 5719ad65..e6384ccd 100644
--- a/krdc/krdc.cpp
+++ b/krdc/krdc.cpp
@@ -303,9 +303,9 @@ bool KRDC::parseHost(TQString &str, Protocol &prot, TQString &serverHost, int &s
if(s.startsWith("smb:/")>0) { //we know it's more likely to be windows..
s = "rdp:/" + s.section("smb:/", 1);
prot = PROTOCOL_RDP;
- } else if(s.tqcontains("://") > 0) {
+ } else if(s.contains("://") > 0) {
s = s.section("://",1);
- } else if(s.tqcontains(":/") > 0) {
+ } else if(s.contains(":/") > 0) {
s = s.section(":/", 1);
}
}
diff --git a/krdc/maindialogwidget.cpp b/krdc/maindialogwidget.cpp
index 2ce61c2e..a76e31d1 100644
--- a/krdc/maindialogwidget.cpp
+++ b/krdc/maindialogwidget.cpp
@@ -148,9 +148,9 @@ TQString MainDialogWidget::remoteHost()
void MainDialogWidget::hostChanged( const TQString &text )
{
- emit hostValid(text.tqcontains(TQRegExp(":[0-9]+$")) ||
- text.tqcontains(TQRegExp("^vnc:/.+")) ||
- text.tqcontains(TQRegExp("^rdp:/.+")));
+ emit hostValid(text.contains(TQRegExp(":[0-9]+$")) ||
+ text.contains(TQRegExp("^vnc:/.+")) ||
+ text.contains(TQRegExp("^rdp:/.+")));
}
void MainDialogWidget::toggleBrowsingArea()
@@ -166,7 +166,7 @@ void MainDialogWidget::enableBrowsingArea( bool enable )
m_browsingPanel->show();
m_browsingPanel->setMaximumSize(1000, 1000);
m_browsingPanel->setEnabled(true);
- m_browseButton->setText(m_browseButton->text().tqreplace(">>", "<<"));
+ m_browseButton->setText(m_browseButton->text().replace(">>", "<<"));
}
else
{
@@ -174,7 +174,7 @@ void MainDialogWidget::enableBrowsingArea( bool enable )
m_browsingPanel->hide();
m_browsingPanel->setMaximumSize(0, 0);
m_browsingPanel->setEnabled(false);
- m_browseButton->setText(m_browseButton->text().tqreplace("<<", ">>"));
+ m_browseButton->setText(m_browseButton->text().replace("<<", ">>"));
int h = tqminimumSize().height()-hOffset;
setMinimumSize(tqminimumSize().width(), (h > 0) ? h : 0);
resize(width(), height()-hOffset);
@@ -344,11 +344,11 @@ void MainDialogWidget::lastSignalServices( bool success )
void MainDialogWidget::foundScopes( TQStringList scopeList )
{
- int di = scopeList.tqfindIndex( DEFAULT_SCOPE );
+ int di = scopeList.findIndex( DEFAULT_SCOPE );
if ( di >= 0 )
scopeList[ di ] = i18n( "default" );
- int ct = scopeList.tqfindIndex( m_scopeCombo->currentText() );
+ int ct = scopeList.findIndex( m_scopeCombo->currentText() );
m_scopeCombo->clear();
m_scopeCombo->insertStringList( scopeList );
if ( ct >= 0 )
diff --git a/krdc/vnc/kvncview.cpp b/krdc/vnc/kvncview.cpp
index e5add6c8..59ac4c9f 100644
--- a/krdc/vnc/kvncview.cpp
+++ b/krdc/vnc/kvncview.cpp
@@ -659,7 +659,7 @@ bool KVncView::x11Event(XEvent *e) {
case XK_Shift_R:
if (pressed)
m_mods[s] = true;
- else if (m_mods.tqcontains(s))
+ else if (m_mods.contains(s))
m_mods.remove(s);
else
unpressModifiers();
diff --git a/krfb/kinetd/kinetd.cpp b/krfb/kinetd/kinetd.cpp
index 5e12ca08..f20076de 100644
--- a/krfb/kinetd/kinetd.cpp
+++ b/krfb/kinetd/kinetd.cpp
@@ -257,11 +257,11 @@ TQStringList PortListener::processServiceTemplate(const TQString &a) {
TQString hostName = address->nodeName();
KUser u;
TQString x = a; // replace does not work in const TQString. Why??
- l.append(x.tqreplace(TQRegExp("%h"), KServiceRegistry::encodeAttributeValue(hostName))
- .tqreplace(TQRegExp("%p"), TQString::number(m_port))
- .tqreplace(TQRegExp("%u"), KServiceRegistry::encodeAttributeValue(u.loginName()))
- .tqreplace(TQRegExp("%i"), KServiceRegistry::encodeAttributeValue(m_uuid))
- .tqreplace(TQRegExp("%f"), KServiceRegistry::encodeAttributeValue(u.fullName())));
+ l.append(x.replace(TQRegExp("%h"), KServiceRegistry::encodeAttributeValue(hostName))
+ .replace(TQRegExp("%p"), TQString::number(m_port))
+ .replace(TQRegExp("%u"), KServiceRegistry::encodeAttributeValue(u.loginName()))
+ .replace(TQRegExp("%i"), KServiceRegistry::encodeAttributeValue(m_uuid))
+ .replace(TQRegExp("%f"), KServiceRegistry::encodeAttributeValue(u.fullName())));
}
return l;
}
diff --git a/krfb/krfb/trayicon.cpp b/krfb/krfb/trayicon.cpp
index c9215d46..d4b520d6 100644
--- a/krfb/krfb/trayicon.cpp
+++ b/krfb/krfb/trayicon.cpp
@@ -124,7 +124,7 @@ void TrayIcon::setDesktopControlSetting(bool b) {
void TrayIcon::mousePressEvent(TQMouseEvent *e)
{
- if (!TQT_TQRECT_OBJECT(rect()).tqcontains(e->pos()))
+ if (!TQT_TQRECT_OBJECT(rect()).contains(e->pos()))
return;
if (e->button() == Qt::LeftButton) {
diff --git a/krfb/libvncserver/fontsel.c b/krfb/libvncserver/fontsel.c
index 5d7664de..100db817 100644
--- a/krfb/libvncserver/fontsel.c
+++ b/krfb/libvncserver/fontsel.c
@@ -54,7 +54,7 @@ int main(int argc,char** argv)
rfbScreen = s;
font=rfbLoadConsoleFont(DEFAULTFONT);
if(!font) {
- fprintf(stderr,"Couldn't tqfind %s\n",DEFAULTFONT);
+ fprintf(stderr,"Couldn't find %s\n",DEFAULTFONT);
exit(1);
}
diff --git a/krfb/libvncserver/rfb.h b/krfb/libvncserver/rfb.h
index 55051819..ef79227c 100644
--- a/krfb/libvncserver/rfb.h
+++ b/krfb/libvncserver/rfb.h
@@ -263,7 +263,7 @@ typedef struct _rfbScreenInfo
themselves end up invoking drawing routines.
Removing the cursor (rfbUndrawCursor) is eventually achieved by
- doing a CopyArea from a pixmap to the screen, where the pixmap tqcontains
+ doing a CopyArea from a pixmap to the screen, where the pixmap contains
the saved contents of the screen under the cursor. Before doing this,
however, we set cursorIsDrawn to FALSE. Then, when CopyArea is called,
it sees that cursorIsDrawn is FALSE and so doesn't feel the need to
diff --git a/ksirc/FilterRuleEditor.cpp b/ksirc/FilterRuleEditor.cpp
index df1e9509..c9459864 100644
--- a/ksirc/FilterRuleEditor.cpp
+++ b/ksirc/FilterRuleEditor.cpp
@@ -228,13 +228,13 @@ void FilterRuleEditor::lowerRule()
TQString FilterRuleEditor::convertSpecial(TQString str)
{
- str.tqreplace(TQRegExp("\\$"), "$$");
+ str.replace(TQRegExp("\\$"), "$$");
return str;
}
TQString FilterRuleEditor::convertSpecialBack(TQString str)
{
- str.tqreplace(TQRegExp("\\$\\$"), "$");
+ str.replace(TQRegExp("\\$\\$"), "$");
return str;
}
diff --git a/ksirc/KSOpenkSirc/open_ksirc.cpp b/ksirc/KSOpenkSirc/open_ksirc.cpp
index f005394b..9f9bebf8 100644
--- a/ksirc/KSOpenkSirc/open_ksirc.cpp
+++ b/ksirc/KSOpenkSirc/open_ksirc.cpp
@@ -137,7 +137,7 @@ void open_ksirc::insertGroupList()
Server *serv;
for ( serv=Groups.first(); serv != 0; serv=Groups.next() ) {
- if (tempgroups.tqfind(serv->group()) == -1)
+ if (tempgroups.find(serv->group()) == -1)
tempgroups.inSort( serv->group() );
}
@@ -307,8 +307,8 @@ void open_ksirc::clickConnect()
conf->setGroup("ServerList");
conf->writeEntry("StorePasswords", CheckB_StorePassword->isChecked());
TQStringList recent = conf->readListEntry("RecentServers");
- if(recent.tqcontains(server)){
- TQStringList::Iterator it = recent.tqfind(server);
+ if(recent.contains(server)){
+ TQStringList::Iterator it = recent.find(server);
recent.remove(it);
}
diff --git a/ksirc/KSPrefs/page_colors.cpp b/ksirc/KSPrefs/page_colors.cpp
index a31acb64..0aca72ed 100644
--- a/ksirc/KSPrefs/page_colors.cpp
+++ b/ksirc/KSPrefs/page_colors.cpp
@@ -162,13 +162,13 @@ void PageColors::readConfig( const KSOColors *opts )
conf->setGroup("ColourSchemes");
themeLB->clear();
TQStringList names = conf->readListEntry("Names");
- if(names.tqcontains("Custom")){
- names.remove(names.tqfind("Custom"));
+ if(names.contains("Custom")){
+ names.remove(names.find("Custom"));
}
names.prepend("Custom");
themeLB->insertStringList(names);
- if(themeLB->tqfindItem(ksopts->colourTheme, TQt::ExactMatch))
- themeLB->setCurrentItem(themeLB->tqfindItem(ksopts->colourTheme, TQt::ExactMatch));
+ if(themeLB->findItem(ksopts->colourTheme, TQt::ExactMatch))
+ themeLB->setCurrentItem(themeLB->findItem(ksopts->colourTheme, TQt::ExactMatch));
else
themeLB->setCurrentItem(0);
themeLE->setText(themeLB->currentText());
@@ -243,7 +243,7 @@ void PageColors::themeAddPB_clicked()
kdDebug(5008) << "Got add: " << themeLB->currentText() << endl;
- m_dcol.tqreplace(name, new KSOColors());
+ m_dcol.replace(name, new KSOColors());
m_dcol[name]->backgroundColor = backCBtn->color();
m_dcol[name]->selBackgroundColor = selBackCBtn->color();
@@ -257,11 +257,11 @@ void PageColors::themeAddPB_clicked()
m_dcol[name]->nickForeground = nickFGCBtn->color();
m_dcol[name]->nickBackground = nickBGCBtn->color();
- if(themeLB->tqfindItem(name, TQt::ExactMatch) == 0){
+ if(themeLB->findItem(name, TQt::ExactMatch) == 0){
themeLB->insertItem(name);
}
- themeLB->setCurrentItem(themeLB->tqfindItem(name, TQt::ExactMatch));
+ themeLB->setCurrentItem(themeLB->findItem(name, TQt::ExactMatch));
}
diff --git a/ksirc/KSPrefs/page_general.cpp b/ksirc/KSPrefs/page_general.cpp
index 119201e1..f90016a5 100644
--- a/ksirc/KSPrefs/page_general.cpp
+++ b/ksirc/KSPrefs/page_general.cpp
@@ -87,15 +87,15 @@ void PageGeneral::readConfig( const KSOGeneral *opts )
// remove utf16/ucs2 as it just doesn't work for IRC
TQStringList::Iterator encodingIt = encodings.begin();
while ( encodingIt != encodings.end() ) {
- if ( ( *encodingIt ).tqfind( "utf16" ) != -1 ||
- ( *encodingIt ).tqfind( "iso-10646" ) != -1 )
+ if ( ( *encodingIt ).find( "utf16" ) != -1 ||
+ ( *encodingIt ).find( "iso-10646" ) != -1 )
encodingIt = encodings.remove( encodingIt );
else
++encodingIt;
}
encodings.prepend( i18n( "Default" ) );
encodingsCB->insertStringList(encodings);
- int eindex = encodings.tqfindIndex(ksopts->channel["global"]["global"].encoding);
+ int eindex = encodings.findIndex(ksopts->channel["global"]["global"].encoding);
if(eindex == -1)
encodingsCB->setCurrentItem(0);
else
diff --git a/ksirc/KSPrefs/page_startup.cpp b/ksirc/KSPrefs/page_startup.cpp
index 37b3f875..60e3402f 100644
--- a/ksirc/KSPrefs/page_startup.cpp
+++ b/ksirc/KSPrefs/page_startup.cpp
@@ -49,7 +49,7 @@ void PageStartup::saveConfig()
for( ; it != items.end(); ++it){
ksopts->server[*it] = server[*it];
}
- if(!ksopts->server.tqcontains("global")){
+ if(!ksopts->server.contains("global")){
ksopts->server["global"] = glb;
}
@@ -65,7 +65,7 @@ void PageStartup::readConfig( const KSOptions *opts )
if(it.data().globalCopy == false)
serverLB->insertItem(it.key());
}
- TQListBoxItem *item = serverLB->listBox()->tqfindItem("global");
+ TQListBoxItem *item = serverLB->listBox()->findItem("global");
serverLB->listBox()->setSelected(item, true);
changing = false;
clickedLB(serverLB->listBox()->index(item));
@@ -107,7 +107,7 @@ void PageStartup::clickedLB(int index)
{
TQString text = serverLB->text(index);
- if(!server.tqcontains(text)){
+ if(!server.contains(text)){
server[text] = server["global"];
server[text].globalCopy = true;
}
diff --git a/ksirc/KSTicker/ksticker.cpp b/ksirc/KSTicker/ksticker.cpp
index bedc0328..d2f5d228 100644
--- a/ksirc/KSTicker/ksticker.cpp
+++ b/ksirc/KSTicker/ksticker.cpp
@@ -151,7 +151,7 @@ void KSTicker::mergeString(TQString str)
int value = nickColourMaker::colourMaker()->findIdx(rx.cap(1));
if(value >= 0){
TQString newText = TQString("~%1\\1~c").tqarg(value);
- str.tqreplace(rx, newText);
+ str.replace(rx, newText);
}
}
@@ -162,8 +162,8 @@ void KSTicker::mergeString(TQString str)
int found = 0;
TQStringList::Iterator it = strlist.begin();
for(; it != strlist.end(); it++){
- if(((*it).tqfind(ksopts->server["global"].nick, 0, FALSE) == -1) &&
- ((*it).tqfind(ksopts->server["global"].altNick, 0, FALSE) == -1)){
+ if(((*it).find(ksopts->server["global"].nick, 0, FALSE) == -1) &&
+ ((*it).find(ksopts->server["global"].altNick, 0, FALSE) == -1)){
strlist.remove(it);
found = 1;
break;
diff --git a/ksirc/KSTicker/ksttest.cpp b/ksirc/KSTicker/ksttest.cpp
index 904aedf1..581bd2dc 100644
--- a/ksirc/KSTicker/ksttest.cpp
+++ b/ksirc/KSTicker/ksttest.cpp
@@ -46,7 +46,7 @@ void StdInTicker::readsocket(int socket)
int bytes = read(socket, buf, 1024);
if(bytes){
TQCString str(buf, bytes);
- str.tqreplace(TQRegExp("\n"), " // ");
+ str.replace(TQRegExp("\n"), " // ");
mergeString(str);
}
}
diff --git a/ksirc/ahistlineedit.cpp b/ksirc/ahistlineedit.cpp
index 80eb2eec..2baa2381 100644
--- a/ksirc/ahistlineedit.cpp
+++ b/ksirc/ahistlineedit.cpp
@@ -93,7 +93,7 @@ int aHistLineEdit::cursorPosition() const
void aHistLineEdit::slotMaybeResize()
{
/*
- if(TQTextEdit::text().tqcontains("\n")){
+ if(TQTextEdit::text().contains("\n")){
setText(text());
setCursorPosition(text().length());
}
@@ -385,7 +385,7 @@ void aHistLineEdit::paste()
}
else {
TQString paste = TQApplication::tqclipboard()->text(TQClipboard::Selection);
- paste.tqreplace("\n", " ~ ");
+ paste.replace("\n", " ~ ");
insert(paste);
}
}
diff --git a/ksirc/alistbox.cpp b/ksirc/alistbox.cpp
index 9702cd5e..ca0609e8 100644
--- a/ksirc/alistbox.cpp
+++ b/ksirc/alistbox.cpp
@@ -208,7 +208,7 @@ int aListBox::findNick(const TQString &str)
index = searchFor(str, found, FALSE);
if(found == TRUE)
return index;
-// debug("Did not tqfind: %s", str.data());
+// debug("Did not find: %s", str.data());
return -1;
}
diff --git a/ksirc/chanparser.cpp b/ksirc/chanparser.cpp
index 9c65c3bb..ece0864e 100644
--- a/ksirc/chanparser.cpp
+++ b/ksirc/chanparser.cpp
@@ -143,12 +143,12 @@ parseResult * ChannelParser::parseSSFEtqStatus(TQString string)
/*
* fix up modes which may have gotten the (away) part
*/
- if(modes.tqcontains("away")){
+ if(modes.contains("away")){
modes = "";
}
bool away = false;
- if(string.tqcontains("(away)"))
+ if(string.contains("(away)"))
away = true;
if(away){
@@ -165,29 +165,29 @@ parseResult * ChannelParser::parseSSFEtqStatus(TQString string)
}
top->ksircProcess()->setNick(nick);
- if (chanmode.tqfindRev("t") != -1)
+ if (chanmode.findRev("t") != -1)
top->channelButtons->setProtectMode(true);
else top->channelButtons->setProtectMode(false);
- if (chanmode.tqfindRev("m") != -1)
+ if (chanmode.findRev("m") != -1)
top->channelButtons->setModerateMode(true);
else top->channelButtons->setModerateMode(false);
- if (chanmode.tqfindRev("n") != -1)
+ if (chanmode.findRev("n") != -1)
top->channelButtons->setNooutsideMode(true);
else top->channelButtons->setNooutsideMode(false);
- if (chanmode.tqfindRev("i") != -1)
+ if (chanmode.findRev("i") != -1)
top->channelButtons->setMenuItemMode(0, true);
else top->channelButtons->setMenuItemMode(0, false);
- if (chanmode.tqfindRev("s") != -1)
+ if (chanmode.findRev("s") != -1)
top->channelButtons->setMenuItemMode(3, true);
else top->channelButtons->setMenuItemMode(3, false);
- if (modes.tqfindRev("i") != -1)
+ if (modes.findRev("i") != -1)
top->channelButtons->setMenuItemMode(4, true);
else top->channelButtons->setMenuItemMode(4, false);
- if (modes.tqfindRev("w") != -1)
+ if (modes.findRev("w") != -1)
top->channelButtons->setMenuItemMode(5, true);
else top->channelButtons->setMenuItemMode(5, false);
- if (modes.tqfindRev("s") != -1)
+ if (modes.findRev("s") != -1)
top->channelButtons->setMenuItemMode(6, true);
else top->channelButtons->setMenuItemMode(6, false);
@@ -300,7 +300,7 @@ parseResult * ChannelParser::parseSSFEPrompt(TQString string)
}
if(last[0] == '['){ /* strip time stamp */
- prompt = last.mid(last.tqfind(' '));
+ prompt = last.mid(last.find(' '));
}
else {
prompt = last;
@@ -399,7 +399,7 @@ parseResult * ChannelParser::parseINFONicks(TQString in_string)
top->nicks->clear();
}
- //int start = string.tqfind(": ", 0, FALSE); // Find start of nicks
+ //int start = string.find(": ", 0, FALSE); // Find start of nicks
//if (start < 0)
// return new parseError(string, i18n("Could not find start of nicks"));
//
@@ -638,7 +638,7 @@ parseResult * ChannelParser::parseINFOChangeNick(TQString string)
//kdDebug(5008) << "Nick change: " << string << endl;
TQRegExp rx("(\\S+) is now known as (\\S+)");
if(rx.search(string) == -1){
- if(string.tqcontains("already taken")){
+ if(string.contains("already taken")){
return new parseSucc(" " + string, ksopts->errorColor, "user|error");
}
@@ -747,7 +747,7 @@ parseResult * ChannelParser::parseINFOMode(TQString string)
TQString modes, args, channel;
int found = 0;
- if(string.tqfind("for user") >= 0)
+ if(string.find("for user") >= 0)
return new parseSucc(" " + string, ksopts->infoColor, "user|mode");
/*
@@ -993,7 +993,7 @@ parseResult * ChannelParser::parseINFOTopic(TQString string)
if(rx.search( string ) != -1){
TQString channel = rx.cap(1);
TQString topic = rx.cap(2);
- topic.tqreplace( TQRegExp( "~~" ), "~" );
+ topic.replace( TQRegExp( "~~" ), "~" );
/*
* check where it's going.
@@ -1025,7 +1025,7 @@ parseResult * ChannelParser::parseINFOTopic(TQString string)
if(top->channelInfo().channel().lower() == channel.lower()){
TQString topic = rx.cap(3);
//kdDebug(5008) << "Topic: " << topic << endl;
- topic.tqreplace(TQRegExp("~~"), "~");
+ topic.replace(TQRegExp("~~"), "~");
/*
* topic is in double quotes, so remove them
*/
@@ -1042,6 +1042,6 @@ parseResult * ChannelParser::parseINFOTopic(TQString string)
void ChannelParser::highlightNick(TQString &string, TQString &nick)
{
TQRegExp rx(TQString("(^|\\s+)%1(\\s+|$)").tqarg(TQRegExp::escape(nick)));
- string.tqreplace(rx, "\\1~n" + nick + "~n\\2");
+ string.replace(rx, "\\1~n" + nick + "~n\\2");
}
diff --git a/ksirc/colorpicker.cpp b/ksirc/colorpicker.cpp
index ebdc9eed..c16c8048 100644
--- a/ksirc/colorpicker.cpp
+++ b/ksirc/colorpicker.cpp
@@ -249,7 +249,7 @@ bool ColorBar::focusNextPrevChild( bool next )
void ColorBar::mousePressEvent( TQMouseEvent *ev )
{
const TQPoint &p = ev->pos();
- if ( contentsRect().tqcontains( p ) )
+ if ( contentsRect().contains( p ) )
{
m_focusedCell = p.x() / m_cellSize;
update();
diff --git a/ksirc/dccNew.cpp b/ksirc/dccNew.cpp
index 961d01d4..74fdd56e 100644
--- a/ksirc/dccNew.cpp
+++ b/ksirc/dccNew.cpp
@@ -47,7 +47,7 @@ dccNew::dccNew( TQWidget *tqparent, const char *name, int type, TQString nick )
TQString name = (*it).section("::", 1);
kdDebug(5008) << "Looking at: " << *it << "/" << name << endl;
- aListBox *a = static_cast(TQT_TQWIDGET(objFinder::tqfind(name.latin1(), "aListBox")));
+ aListBox *a = static_cast(TQT_TQWIDGET(objFinder::find(name.latin1(), "aListBox")));
if(a){
TQListBoxItem *i;
for(i = a->firstItem(); i != 0x0; i = i->next()){
@@ -56,7 +56,7 @@ dccNew::dccNew( TQWidget *tqparent, const char *name, int type, TQString nick )
}
}
else {
- kdDebug(5008) << "Didn't tqfind: " << name << endl;
+ kdDebug(5008) << "Didn't find: " << name << endl;
}
}
diff --git a/ksirc/displayMgrMDI.cpp b/ksirc/displayMgrMDI.cpp
index 4e6020e9..f2805426 100644
--- a/ksirc/displayMgrMDI.cpp
+++ b/ksirc/displayMgrMDI.cpp
@@ -152,7 +152,7 @@ void DisplayMgrMDI::setCaption(TQWidget *w, const TQString& cap)
w->setCaption(cap);
TQString esc = cap;
- esc.tqreplace("&", "&&");
+ esc.replace("&", "&&");
kdDebug(5008) << "Set caption: " << esc << endl;
m_topLevel->tabWidget()->setTabLabel( w, esc );
@@ -213,10 +213,10 @@ void DisplayMgrMDI::reparentReq()
TQMenuData *tmenu = kst->menuBar();
if(tmenu){
- TQMenuItem *menui = tmenu->tqfindItem(DMM_MDI_ID);
+ TQMenuItem *menui = tmenu->findItem(DMM_MDI_ID);
if(menui){
TQMenuData *cmenu = menui->popup();
- if(cmenu->tqfindItem(DMM_DEATCH_ID) && cmenu->isItemChecked(DMM_DEATCH_ID)){
+ if(cmenu->findItem(DMM_DEATCH_ID) && cmenu->isItemChecked(DMM_DEATCH_ID)){
kst->reparent( topLevel()->tabWidget(), 0, TQPoint( 0, 0 ), true );
show(kst);
cmenu->setItemChecked(DMM_DEATCH_ID, false);
@@ -293,9 +293,9 @@ void DisplayMgrMDI::moveWindow(int step)
m_topLevel->setUpdatesEnabled(false);
m_topLevel->hideWidget(w);
- int space = w->caption().tqfind(" ");
+ int space = w->caption().find(" ");
TQString esc = space < 1 ? w->caption():w->caption().left(space);
- esc.tqreplace("&", "&&");
+ esc.replace("&", "&&");
kdDebug(5008) << "Insert tab: " << esc << endl;
m_topLevel->tabWidget()->insertTab( w, esc, index );
m_topLevel->tabWidget()->showPage( w );
diff --git a/ksirc/dockservercontroller.cpp b/ksirc/dockservercontroller.cpp
index cdb3d2ae..4c553df6 100644
--- a/ksirc/dockservercontroller.cpp
+++ b/ksirc/dockservercontroller.cpp
@@ -240,9 +240,9 @@ void dockServerController::subItemActivated(int sub_id)
servercontroller::self()->new_toplevel(KSircChannel(server, nick));
}
else {
- KSircProcess *kp = servercontroller::self()->processes().tqfind(server);
+ KSircProcess *kp = servercontroller::self()->processes().find(server);
if(kp){
- KSircTopLevel *wm = dynamic_cast(kp->getWindowList().tqfind("!default"));
+ KSircTopLevel *wm = dynamic_cast(kp->getWindowList().find("!default"));
if(wm){
if(cmd == i18n("Ping")){
wm->sirc_line_return("/ping " + nick + "\n");
@@ -433,10 +433,10 @@ void dockServerController::configNotify()
void dockServerController::raiseWindow(TQString server, TQString name)
{
TQCString txt = server.utf8() + "_" + name.utf8() + "_toplevel";
- TQWidget *obj = dynamic_cast( objFinder::tqfind(txt, "KSircTopLevel"));
+ TQWidget *obj = dynamic_cast( objFinder::find(txt, "KSircTopLevel"));
if(obj == 0x0){
txt = server.utf8() + "_!" + name.utf8() + "_toplevel";
- obj = dynamic_cast( objFinder::tqfind(txt, "KSircTopLevel"));
+ obj = dynamic_cast( objFinder::find(txt, "KSircTopLevel"));
}
if(obj != 0x0){
diff --git a/ksirc/dsirc b/ksirc/dsirc
index eddc5fd2..f358fcd7 100755
--- a/ksirc/dsirc
+++ b/ksirc/dsirc
@@ -2082,7 +2082,7 @@ sub donumeric {
if ($cmd eq '401') {
&yetonearg;
&yetonearg;
- &tell("*\cb?\cb* Cannot tqfind $newarg on irc$from");
+ &tell("*\cb?\cb* Cannot find $newarg on irc$from");
} elsif ($cmd eq '402') {
&yetonearg;
&yetonearg;
@@ -2176,7 +2176,7 @@ sub donumeric {
eval $err;
$@ =~ s/\n$//, &tell("*\cbE\cb* error in userhost: $@") if $@ ne '';
} else {
- &tell("*\cb?\cb* Cannot tqfind $n on irc");
+ &tell("*\cb?\cb* Cannot find $n on irc");
}
}
} elsif ($cmd eq '303') {
diff --git a/ksirc/ioDCC.cpp b/ksirc/ioDCC.cpp
index e718a452..7f601ace 100644
--- a/ksirc/ioDCC.cpp
+++ b/ksirc/ioDCC.cpp
@@ -58,7 +58,7 @@ void KSircIODCC::sirc_receive(TQCString str, bool )
// Then we look at the one time start/stop messages. They only arrive
// once in a long long time (compared to the byte messages) so if it takes
// a few extra clock cycles to find them, who cares?
- if(str.tqfind("DCC GET read:", 0) != -1){ /*fold01*/
+ if(str.find("DCC GET read:", 0) != -1){ /*fold01*/
TQRegExp rx("read: (.+) who: (.+) bytes: (.*)");
if(rx.search(str)){
TQString key = TQString("%1/%2").tqarg(rx.cap(1)).tqarg(rx.cap(2));
@@ -73,7 +73,7 @@ void KSircIODCC::sirc_receive(TQCString str, bool )
}
}
}
- else if(str.tqfind("DCC SEND write:", 0) != -1){ /*fold01*/
+ else if(str.find("DCC SEND write:", 0) != -1){ /*fold01*/
TQRegExp rx("write: (.+) who: (.+) bytes: (.*)");
if(rx.search(str)){
TQString key = TQString("%1/%2").tqarg(rx.cap(1)).tqarg(rx.cap(2));
@@ -84,7 +84,7 @@ void KSircIODCC::sirc_receive(TQCString str, bool )
}
}
}
- else if(str.tqfind("INBOUND DCC SEND", 0) != -1){ /*FOLD01*/
+ else if(str.find("INBOUND DCC SEND", 0) != -1){ /*FOLD01*/
TQRegExp rx("who: (.+) file: (.+) size: (.*) ip: (.+) port: (.+)");
if(rx.search(str)){
TQString who = rx.cap(1);
@@ -127,7 +127,7 @@ void KSircIODCC::sirc_receive(TQCString str, bool )
kdDebug(5008) << "DCC SEND was unable to parse: " << str << endl;
}
}
- else if(str.tqfind("Sent DCC SEND", 0) != -1){ /*FOLD01*/
+ else if(str.find("Sent DCC SEND", 0) != -1){ /*FOLD01*/
TQRegExp rx("who: (.+) file: (.+) size: (.*)");
if(rx.search(str)){
TQString who = rx.cap(1);
@@ -164,7 +164,7 @@ void KSircIODCC::sirc_receive(TQCString str, bool )
kdDebug(5008) << "DCC SENT was unable to parse: " << str << endl;
}
}
- else if(str.tqfind("DCC CHAT OFFERED", 0) != -1){ /*FOLD01*/
+ else if(str.find("DCC CHAT OFFERED", 0) != -1){ /*FOLD01*/
TQRegExp rx("who: (.+) ip: (.+) port: (.+)");
if(rx.search(str)){
TQString who = rx.cap(1);
@@ -182,7 +182,7 @@ void KSircIODCC::sirc_receive(TQCString str, bool )
kdDebug(5008) << "DCC CHAT SEND was unable to parse: " << str << endl;
}
}
- else if(str.tqfind("DCC CHAT SEND", 0) != -1){ /*FOLD01*/
+ else if(str.find("DCC CHAT SEND", 0) != -1){ /*FOLD01*/
TQRegExp rx("who: (.+)");
if(rx.search(str)){
TQString who = rx.cap(1);
@@ -198,7 +198,7 @@ void KSircIODCC::sirc_receive(TQCString str, bool )
kdDebug(5008) << "DCC CHAT SEND was unable to parse: " << str << endl;
}
}
- else if(str.tqfind("DCC SEND terminated") != -1){ /*FOLD01*/
+ else if(str.find("DCC SEND terminated") != -1){ /*FOLD01*/
TQRegExp rx("who: (.+) file: (.+) reason: (.*)");
if(rx.search(str)){
TQString who = rx.cap(1);
@@ -222,7 +222,7 @@ void KSircIODCC::sirc_receive(TQCString str, bool )
}
}
}
- else if(str.tqfind ("DCC GET terminated") != -1){ /*fold01*/
+ else if(str.find ("DCC GET terminated") != -1){ /*fold01*/
kdDebug(5008) << "Term: " << str << endl;
TQRegExp rx("who: (.+) file: (.+) reason: (.*)");
if(rx.search(str)){
@@ -247,7 +247,7 @@ void KSircIODCC::sirc_receive(TQCString str, bool )
kdDebug(5008) << "DCC Get term failed to parse: " << str << endl;
}
}
- else if(str.tqfind("DCC GET resumed") != -1){ /*fold01*/
+ else if(str.find("DCC GET resumed") != -1){ /*fold01*/
TQRegExp rx("who: (.+) file: (.+)");
if(rx.search(str)){
TQString who = rx.cap(1);
@@ -262,7 +262,7 @@ void KSircIODCC::sirc_receive(TQCString str, bool )
}
}
}
- else if(str.tqfind("DCC SEND resumed") != -1){ /*fold01*/
+ else if(str.find("DCC SEND resumed") != -1){ /*fold01*/
TQRegExp rx("who: (.+) file: (.+)");
if(rx.search(str)){
TQString who = rx.cap(1);
@@ -273,7 +273,7 @@ void KSircIODCC::sirc_receive(TQCString str, bool )
}
}
}
- else if(str.tqfind("DCC GET established") != -1){ /*fold01*/
+ else if(str.find("DCC GET established") != -1){ /*fold01*/
TQRegExp rx("who: (.+) file: (.+)");
if(rx.search(str)){
TQString who = rx.cap(1);
@@ -284,7 +284,7 @@ void KSircIODCC::sirc_receive(TQCString str, bool )
}
}
}
- else if(str.tqfind("DCC SEND established") != -1){ /*fold01*/
+ else if(str.find("DCC SEND established") != -1){ /*fold01*/
TQRegExp rx("who: (.+) file: (.+) ip: (\\S+)");
if(rx.search(str)){
TQString who = rx.cap(1);
@@ -297,7 +297,7 @@ void KSircIODCC::sirc_receive(TQCString str, bool )
}
}
}
- else if(str.tqfind("DCC CHAT established") != -1){ /*FOLD01*/
+ else if(str.find("DCC CHAT established") != -1){ /*FOLD01*/
TQRegExp rx("who: (.+)");
if(rx.search(str)){
TQString who = rx.cap(1);
@@ -307,7 +307,7 @@ void KSircIODCC::sirc_receive(TQCString str, bool )
}
}
}
- else if(str.tqfind("DCC CHAT inbound established") != -1){ /*FOLD01*/
+ else if(str.find("DCC CHAT inbound established") != -1){ /*FOLD01*/
TQRegExp rx("who: (.+) ip: (.+)");
if(rx.search(str)){
TQString who = rx.cap(1);
@@ -319,7 +319,7 @@ void KSircIODCC::sirc_receive(TQCString str, bool )
}
}
}
- else if(str.tqfind("DCC GET failed") != -1){ /*fold01*/
+ else if(str.find("DCC GET failed") != -1){ /*fold01*/
TQRegExp rx("who: (.+) file: (.+) reason: (.*)");
if(rx.search(str)){
TQString who = rx.cap(1);
@@ -332,7 +332,7 @@ void KSircIODCC::sirc_receive(TQCString str, bool )
KPassivePopup::message(i18n("DCC Get with %1 for %2 failed because of %3").tqarg(who).tqarg(filename).tqarg(error), mgr->mgr());
}
}
- else if(str.tqfind("DCC CHAT failed") != -1){ /*FOLD01*/
+ else if(str.find("DCC CHAT failed") != -1){ /*FOLD01*/
TQRegExp rx("who: (.+) reason: (.*)");
if(rx.search(str)){
TQString who = rx.cap(1);
@@ -343,19 +343,19 @@ void KSircIODCC::sirc_receive(TQCString str, bool )
KPassivePopup::message(i18n("DCC Chat with %1 failed because of %2").tqarg(who).tqarg(error), mgr->mgr());
}
}
- else if(str.tqfind("DCC CHAT renamed") != -1){ /*FOLD01*/
+ else if(str.find("DCC CHAT renamed") != -1){ /*FOLD01*/
TQRegExp rx("who: (.+) to: (.+)");
if(rx.search(str)){
TQString oldwho = rx.cap(1);
TQString newwho = rx.cap(2);
TQString oldwin = "=" + oldwho;
- if(proc->getWindowList().tqfind(oldwin)){
- proc->getWindowList().tqfind(oldwin)->control_message(CHANGE_CHANNEL,TQString("=" +newwho).lower());
+ if(proc->getWindowList().find(oldwin)){
+ proc->getWindowList().find(oldwin)->control_message(CHANGE_CHANNEL,TQString("=" +newwho).lower());
}
}
}
- else if(str.tqfind("Closing DCC GET") != -1){ /*fold01*/
+ else if(str.find("Closing DCC GET") != -1){ /*fold01*/
TQRegExp rx("who: (.+) file: (.+)");
if(rx.search(str)){
TQString who = rx.cap(1);
@@ -366,7 +366,7 @@ void KSircIODCC::sirc_receive(TQCString str, bool )
}
}
}
-// else if(str.tqfind("Closing DCC SEND") != -1){ /*FOLD01*/
+// else if(str.find("Closing DCC SEND") != -1){ /*FOLD01*/
// TQRegExp rx("who: (.+) file: (.+)");
// if(rx.search(str)){
// TQString who = rx.cap(1);
@@ -377,7 +377,7 @@ void KSircIODCC::sirc_receive(TQCString str, bool )
// }
// }
// }
- else if(str.tqfind("Closing DCC CHAT") != -1){ /*fold01*/
+ else if(str.find("Closing DCC CHAT") != -1){ /*fold01*/
TQRegExp rx("who: (.+)");
if(rx.search(str)){
TQString who = rx.cap(1);
@@ -386,7 +386,7 @@ void KSircIODCC::sirc_receive(TQCString str, bool )
}
}
}
- else if(str.tqfind("No DCC SEND") != -1){ /*fold01*/
+ else if(str.find("No DCC SEND") != -1){ /*fold01*/
TQRegExp rx("who: (.+) file: (.+)");
if(rx.search(str)){
TQString who = rx.cap(1);
@@ -412,7 +412,7 @@ void KSircIODCC::sirc_receive(TQCString str, bool )
toDel.clear();
}
}
- else if(str.tqfind("No DCC GET") != -1){ /*fold01*/
+ else if(str.find("No DCC GET") != -1){ /*fold01*/
TQRegExp rx("who: (.+) file: (.+)");
if(rx.search(str)){
TQString who = rx.cap(1);
@@ -436,7 +436,7 @@ void KSircIODCC::sirc_receive(TQCString str, bool )
toDel.clear();
}
}
- else if(str.tqfind("No DCC CHAT") != -1){ /*fold01*/
+ else if(str.find("No DCC CHAT") != -1){ /*fold01*/
TQRegExp rx("who: (.+)");
if(rx.search(str)){
TQString who = rx.cap(1);
@@ -482,9 +482,9 @@ void KSircIODCC::getFile()
{
/*
TQString text = pending->fileListing()->text(pending->fileListing()->currentItem());
- int pos = text.tqfind(" ", 0);
+ int pos = text.find(" ", 0);
TQString nick = text.mid(0, pos);
- pos = text.tqfind(" ", pos+1) + 1;
+ pos = text.find(" ", pos+1) + 1;
TQString filename = text.mid(pos, text.length() - pos);
//if(DlgList[filename]->isVisible() == FALSE)
// DlgList[filename]->show();
@@ -503,9 +503,9 @@ void KSircIODCC::forgetFile()
{
/*
TQString text = pending->fileListing()->text(pending->fileListing()->currentItem());
- int pos = text.tqfind(" ", 0);
+ int pos = text.find(" ", 0);
TQString nick = text.mid(0, pos);
- pos = text.tqfind(" ", pos+1) + 1;
+ pos = text.find(" ", pos+1) + 1;
TQString filename = text.mid(pos, text.length() - pos);
TQString command = "/dcc close get " + nick + " " + filename + "\n";
emit outputLine(command.ascii());
diff --git a/ksirc/ioLAG.cpp b/ksirc/ioLAG.cpp
index ee79094d..0a1a2ec7 100644
--- a/ksirc/ioLAG.cpp
+++ b/ksirc/ioLAG.cpp
@@ -32,9 +32,9 @@ KSircIOLAG::~KSircIOLAG()
void KSircIOLAG::sirc_receive(TQCString str, bool)
{
- if(str.tqcontains("*L*")){
+ if(str.contains("*L*")){
int s1, s2;
- s1 = str.tqfind("*L* ") + 4;
+ s1 = str.find("*L* ") + 4;
s2 = str.length();
if(s1 < 0 || s2 < 0){
kdDebug(5008) << "Lag mesage broken: " << str << endl;
diff --git a/ksirc/ioNotify.cpp b/ksirc/ioNotify.cpp
index c590c180..b3b4a52f 100644
--- a/ksirc/ioNotify.cpp
+++ b/ksirc/ioNotify.cpp
@@ -26,10 +26,10 @@ KSircIONotify::~KSircIONotify()
void KSircIONotify::sirc_receive(TQCString str, bool)
{
- if(str.tqcontains("*)*")){
+ if(str.contains("*)*")){
int s1, s2;
- s1 = str.tqfind("Signon by") + 10;
- s2 = str.tqfind(" ", s1);
+ s1 = str.find("Signon by") + 10;
+ s2 = str.find(" ", s1);
if(s1 < 0 || s2 < 0){
kdDebug(5008) << "Nick Notify mesage broken: " << str << endl;
return;
@@ -37,10 +37,10 @@ void KSircIONotify::sirc_receive(TQCString str, bool)
TQString nick = str.mid(s1, s2 - s1);
emit notify_online(nick);
}
- else if(str.tqcontains("*(*")){
+ else if(str.contains("*(*")){
int s1, s2;
- s1 = str.tqfind("Signoff by") + 11;
- s2 = str.tqfind(" ", s1);
+ s1 = str.find("Signoff by") + 11;
+ s2 = str.find(" ", s1);
if(s1 < 0 || s2 < 0){
kdDebug(5008) << "Nick Notify mesage broken: " << str << endl;
return;
diff --git a/ksirc/iocontroller.cpp b/ksirc/iocontroller.cpp
index e6514537..d63fba7b 100644
--- a/ksirc/iocontroller.cpp
+++ b/ksirc/iocontroller.cpp
@@ -193,7 +193,7 @@ void KSircIOController::stdout_read(KProcess *, char *_buffer, int buflen)
}
if(buffer[buffer.length()-1] != '\n'){
- pos = buffer.tqfindRev('\n');
+ pos = buffer.findRev('\n');
if(pos != -1){
holder = buffer.right(buffer.length()-(pos+1));
buffer.truncate(pos+1);
@@ -222,7 +222,7 @@ void KSircIOController::stdout_read(KProcess *, char *_buffer, int buflen)
m_debugLB->setUpdatesEnabled(false);
do{
- pos2 = buffer.tqfind('\n', pos);
+ pos2 = buffer.find('\n', pos);
if(pos2 == -1)
pos2 = buffer.length();
@@ -236,7 +236,7 @@ void KSircIOController::stdout_read(KProcess *, char *_buffer, int buflen)
//kdDebug(5008) << "Line: " << line << endl;
if((line.length() > 0) && (line[0] == '~')){
- pos3 = line.tqfind('~', 1);
+ pos3 = line.find('~', 1);
if(pos3 > 1){
name = line.mid(1,pos3-1).lower();
name = name.lower();
diff --git a/ksirc/ksirc.cpp b/ksirc/ksirc.cpp
index b391b28a..296e9049 100644
--- a/ksirc/ksirc.cpp
+++ b/ksirc/ksirc.cpp
@@ -120,7 +120,7 @@ extern "C" KDE_EXPORT int kdemain( int argc, char ** argv )
if ( !server.isEmpty() ) {
TQString ser = TQString::fromLocal8Bit( server );
TQString port = "6667";
- if(ser.tqcontains(":")){
+ if(ser.contains(":")){
port = ser.section(":", 1, 1);
ser = ser.section(":", 0, 0);
}
diff --git a/ksirc/ksircprocess.cpp b/ksirc/ksircprocess.cpp
index e0eb019c..3c07d8ad 100644
--- a/ksirc/ksircprocess.cpp
+++ b/ksirc/ksircprocess.cpp
@@ -203,7 +203,7 @@ KSircProcess::KSircProcess( TQString &server_id, KSircServer &kss, TQObject * tq
default_follow_focus = TRUE;
KSircChannel ci(kss.server(), "!no_channel");
new_toplevel(ci, true); //
- TopList.tqreplace("!default", TopList[ci.channel()]);
+ TopList.replace("!default", TopList[ci.channel()]);
running_window = FALSE; // set false so next changes the first name
@@ -341,7 +341,7 @@ void KSircProcess::new_toplevel(const KSircChannel &channelInfo, bool safe)
// TopList.remove("!no_channel"); // We're no longer !no_channel
TopList["!no_channel"]->control_message(CHANGE_CHANNEL, channelInfo.server() + "!!!" + channelInfo.channel() + "!!!" + channelInfo.key());
}
- else if(TopList.tqfind(channelInfo.channel()) == 0x0){ // If the window doesn't exist, continue
+ else if(TopList.find(channelInfo.channel()) == 0x0){ // If the window doesn't exist, continue
// If AutoCreate windows is on, let's make sure we're not being flooded.
if(ksopts->autoCreateWin == TRUE && safe == false){
time_t current_time = time(NULL);
@@ -407,7 +407,7 @@ void KSircProcess::new_toplevel(const KSircChannel &channelInfo, bool safe)
wm->lineEdit()->setFocus(); // Give focus back to the linee, someone takes it away on new create
}
else {
- TQWidget *w = dynamic_cast(TopList.tqfind(channelInfo.channel()));
+ TQWidget *w = dynamic_cast(TopList.find(channelInfo.channel()));
if(w)
displayMgr->raise(w);
}
@@ -452,7 +452,7 @@ void KSircProcess::close_toplevel(KSircTopLevel *wm, TQString name)
}
if (isDefault)
- TopList.tqreplace("!default", it.current());
+ TopList.replace("!default", it.current());
// Let's let em know she's deleted!
if(ksopts->autoCreateWin == TRUE){
@@ -526,7 +526,7 @@ void KSircProcess::default_window(KSircTopLevel *w)
//
if(w && (default_follow_focus == TRUE))
- TopList.tqreplace("!default", w);
+ TopList.replace("!default", w);
}
diff --git a/ksirc/ksopts.cpp b/ksirc/ksopts.cpp
index 38bf27fa..c0d6a927 100644
--- a/ksirc/ksopts.cpp
+++ b/ksirc/ksopts.cpp
@@ -251,7 +251,7 @@ void KSOptions::load( int sections )
/*
* do global first
*/
- if(channel.tqcontains("global") == FALSE){
+ if(channel.contains("global") == FALSE){
KSOChannel global;
ChannelOpMap coMap;
channel.insert(TQString("global"), coMap);
@@ -315,7 +315,7 @@ void KSOptions::load( int sections )
/*
* do global first
*/
- if(server.tqcontains("global") == FALSE){
+ if(server.contains("global") == FALSE){
KSOServer global;
server.insert(TQString("global"), global);
server["global"].server = "global";
@@ -490,11 +490,11 @@ void KSOptions::save( int sections )
void KSOptions::channelSetup(TQString serv, TQString chan)
{
- if(channel.tqcontains(serv) == FALSE){
+ if(channel.contains(serv) == FALSE){
ChannelOpMap coMap;
channel.insert(serv, coMap);
}
- if(channel[serv].tqcontains(chan) == FALSE){
+ if(channel[serv].contains(chan) == FALSE){
KSOChannel ksoc;
ksoc = channel["global"]["global"];
channel[serv].insert(chan, ksoc);
@@ -524,7 +524,7 @@ void KSOptions::applyChannelGlobal(void)
void KSOptions::serverSetup(TQString serv)
{
- if(server.tqcontains(serv) == FALSE){
+ if(server.contains(serv) == FALSE){
KSOServer ksos;
ksos = server["global"];
server.insert(serv, ksos);
diff --git a/ksirc/ksparser.cpp b/ksirc/ksparser.cpp
index cfdf59f5..e2ebf903 100644
--- a/ksirc/ksparser.cpp
+++ b/ksirc/ksparser.cpp
@@ -141,10 +141,10 @@ TQString KSParser::pushTag(const TQString &tag, const TQString &attributes)
{
TQString res;
m_tags.push(tag);
- if (!m_attributes.tqcontains(tag))
+ if (!m_attributes.contains(tag))
m_attributes.insert(tag, attributes);
else if (!attributes.isEmpty())
- m_attributes.tqreplace(tag, attributes);
+ m_attributes.replace(tag, attributes);
res.append("<" + tag);
if (!m_attributes[tag].isEmpty())
res.append(" " + m_attributes[tag]);
@@ -153,7 +153,7 @@ TQString KSParser::pushTag(const TQString &tag, const TQString &attributes)
TQString KSParser::popTag(const TQString &tag)
{
- if (!m_tags.tqcontains(tag))
+ if (!m_tags.contains(tag))
return TQString();
TQString res;
@@ -172,7 +172,7 @@ TQString KSParser::popTag(const TQString &tag)
TQString KSParser::toggleTag(const TQString &tag, const TQString &attributes)
{
- return m_attributes.tqcontains(tag) ? popTag(tag) : pushTag(tag, attributes);
+ return m_attributes.contains(tag) ? popTag(tag) : pushTag(tag, attributes);
}
TQString KSParser::popAll()
diff --git a/ksirc/kstextview.cpp b/ksirc/kstextview.cpp
index b12f8864..1ad22239 100644
--- a/ksirc/kstextview.cpp
+++ b/ksirc/kstextview.cpp
@@ -57,7 +57,7 @@ TQPixmap ksTextViewLoadPixmap( const TQString &icon )
qAddPostRoutine( cleanupKSTextViewPixmapDict );
}
- TQPixmap *pix = ksTextViewPixmapDict->tqfind( icon );
+ TQPixmap *pix = ksTextViewPixmapDict->find( icon );
if ( !pix )
{
TQImage img;
@@ -586,22 +586,22 @@ TQString Tokenizer::convertToRichText( const PString &ptext )
{
TQString entity = KGlobal::charsets()->toEntity( ch );
indexAdjustment = entity.length() - 1;
- result.tqreplace( i, 1, entity );
+ result.replace( i, 1, entity );
}
*/
if ( ch == '<' )
{
- result.tqreplace( i, 1, "<" );
+ result.replace( i, 1, "<" );
indexAdjustment = 3;
}
else if ( ch == '>' )
{
- result.tqreplace( i, 1, ">" );
+ result.replace( i, 1, ">" );
indexAdjustment = 3;
}
else if ( ch == '&' )
{
- result.tqreplace( i, 1, "&" );
+ result.replace( i, 1, "&" );
indexAdjustment = 4;
}
@@ -1056,7 +1056,7 @@ TQString TextLine::updateSelection( const SelectionPoint &start, const Selection
if ( start.line == this )
{
- const int idx = m_items.tqfindRef( start.item );
+ const int idx = m_items.findRef( start.item );
assert( idx != -1 );
}
else
@@ -1070,7 +1070,7 @@ TQString TextLine::updateSelection( const SelectionPoint &start, const Selection
{
const int oldCurrent = m_items.at();
- const int idx = m_items.tqfindRef( end.item );
+ const int idx = m_items.findRef( end.item );
assert( idx != -1 );
lastItem = m_items.next();
@@ -1381,11 +1381,11 @@ TQString TextParag::updateSelection( const SelectionPoint &start, const Selectio
// sanity check
// (don't put it lower because it changes the current list item)
if ( end.parag == this )
- assert( m_lines.tqfindRef( end.line ) != -1 );
+ assert( m_lines.findRef( end.line ) != -1 );
if ( start.parag == this )
{
- int idx = m_lines.tqfindRef( start.line );
+ int idx = m_lines.findRef( start.line );
assert( idx != -1 );
}
else
@@ -1742,7 +1742,7 @@ bool TextView::removeParag( const TextParagIterator ¶g )
return false;
TextParag *paragPtr = parag.m_paragIt.current();
- const int idx = m_parags.tqfindRef( paragPtr );
+ const int idx = m_parags.findRef( paragPtr );
if ( idx == -1 )
return false;
@@ -2138,8 +2138,8 @@ TQString TextView::updateSelection( const SelectionPoint &start, const Selection
}
else
{
- assert( m_parags.tqfindRef( end.parag ) != -1 );
- const int idx = m_parags.tqfindRef( start.parag );
+ assert( m_parags.findRef( end.parag ) != -1 );
+ const int idx = m_parags.findRef( start.parag );
assert( idx != -1 );
TextParag *p = m_parags.current();
diff --git a/ksirc/kstextview.h b/ksirc/kstextview.h
index b523d274..e033c0a0 100644
--- a/ksirc/kstextview.h
+++ b/ksirc/kstextview.h
@@ -81,12 +81,12 @@ public:
ConstIterator findAttribute( const char *key ) const
{
TQString qkey( key );
- return tqfind( StringPtr( qkey ) );
+ return find( StringPtr( qkey ) );
}
Iterator findAttribute( const char *key )
{
TQString qkey( key );
- return tqfind( StringPtr( qkey ) );
+ return find( StringPtr( qkey ) );
}
StringPtr operator[]( const char *key ) const
diff --git a/ksirc/ksview.cpp b/ksirc/ksview.cpp
index 85d0fd1f..8ad1ffd3 100644
--- a/ksirc/ksview.cpp
+++ b/ksirc/ksview.cpp
@@ -131,11 +131,11 @@ TQString KSircView::addLine(const TQString &pixmap, const TQColor &color, const
// 'nick< to catch queries.
TQRegExp bidiRe( "^(<\\S+>)(.+)$" );
- text.tqreplace( bidiRe, TQString::tqfromLatin1( "\\1\\2" ) );
+ text.replace( bidiRe, TQString::tqfromLatin1( "\\1\\2" ) );
TQRegExp bidiRe2( "^(\\[\\S+\\])(.+)$" );
- text.tqreplace( bidiRe2, TQString::tqfromLatin1( "\\1\\2" ) );
+ text.replace( bidiRe2, TQString::tqfromLatin1( "\\1\\2" ) );
TQRegExp bidiRe3( "^(>\\S+<)(.+)$" );
- text.tqreplace( bidiRe3, TQString::tqfromLatin1( "\\1\\2" ) );
+ text.replace( bidiRe3, TQString::tqfromLatin1( "\\1\\2" ) );
TQRegExp nickCol( "~n(.+)~n" );
nickCol.setMinimal(true);
@@ -168,7 +168,7 @@ TQString KSircView::addLine(const TQString &pixmap, const TQColor &color, const
newText.append("");
}
}
- text.tqreplace(pos, nickCol.matchedLength(), newText);
+ text.replace(pos, nickCol.matchedLength(), newText);
}
//kdDebug(5008) << "After Text: " << text << endl;
diff --git a/ksirc/mditoplevel.cpp b/ksirc/mditoplevel.cpp
index 122a934a..ffe0bb4c 100644
--- a/ksirc/mditoplevel.cpp
+++ b/ksirc/mditoplevel.cpp
@@ -76,7 +76,7 @@ MDITopLevel::~MDITopLevel()
void MDITopLevel::addWidget( TQWidget *widget, bool show )
{
- if ( m_tabWidgets.tqcontainsRef( widget ) )
+ if ( m_tabWidgets.containsRef( widget ) )
return;
kdDebug(5008) << "In add widget" << endl;
@@ -121,7 +121,7 @@ void MDITopLevel::hideWidget( TQWidget *widget )
void MDITopLevel::showWidget( TQWidget *widget )
{
if(m_tab->indexOf(widget) == -1){
- int space = widget->caption().tqfind(" ");
+ int space = widget->caption().find(" ");
TQString cap = space < 1 ? widget->caption():widget->caption().left(space);
m_tab->addTab( widget, cap);
m_tab->showPage( widget );
@@ -180,7 +180,7 @@ bool MDITopLevel::eventFilter( TQObject *obj, TQEvent *ev )
TQWidget *widget = dynamic_cast( obj );
- if ( !widget || !m_tabWidgets.tqcontainsRef( widget ) )
+ if ( !widget || !m_tabWidgets.containsRef( widget ) )
return false;
if ( m_tab->currentPage() == widget )
@@ -214,7 +214,7 @@ void MDITopLevel::slotMarkPageDirty( bool addressed )
if ( window != m_tab->currentPage() )
{
- if ( m_addressed.tqcontainsRef( window ) )
+ if ( m_addressed.containsRef( window ) )
addressed = true;
else if ( addressed ) {
m_addressed.append( window );
@@ -231,7 +231,7 @@ void MDITopLevel::slotChangeChannelName( const TQString &, const TQString &chann
return;
TQString esc = channelName;
- esc.tqreplace("&", "&&");
+ esc.replace("&", "&&");
m_tab->setTabLabel( window, esc );
removeFromAddressedList( window );
}
diff --git a/ksirc/objFinder.cpp b/ksirc/objFinder.cpp
index 27b3d0f2..c5283dbd 100644
--- a/ksirc/objFinder.cpp
+++ b/ksirc/objFinder.cpp
@@ -49,7 +49,7 @@ void objFinder::insert(TQObject *obj, const char *key){
emit objFind->inserted(obj);
}
-TQObject *objFinder::tqfind(const char *name, const char *inherits){
+TQObject *objFinder::find(const char *name, const char *inherits){
TQObject *found;
TQDictIterator it(*objList);
uint len = strlen(name);
diff --git a/ksirc/objFinder.h b/ksirc/objFinder.h
index 7303a31b..7da02dc4 100644
--- a/ksirc/objFinder.h
+++ b/ksirc/objFinder.h
@@ -14,7 +14,7 @@ public:
virtual ~objFinder();
static void insert(TQObject *obj, const char *key = 0);
- static TQObject *tqfind(const char *name, const char *inherits);
+ static TQObject *find(const char *name, const char *inherits);
static void dumpTree();
static TQStringList allObjects();
diff --git a/ksirc/puke/controller.cpp b/ksirc/puke/controller.cpp
index a4e13f3c..771a5676 100644
--- a/ksirc/puke/controller.cpp
+++ b/ksirc/puke/controller.cpp
@@ -590,7 +590,7 @@ void PukeController::hdlrPukeFetchWidget(int fd, PukeMessage *pm)
obj = tqparent();
}
else {
- obj = objFinder::tqfind(name, 0x0);
+ obj = objFinder::find(name, 0x0);
if(obj == 0){
wIret.fd = 0;
wIret.iWinId = 0;
@@ -642,10 +642,10 @@ void PukeController::hdlrPukeDeleteWidget(int fd, PukeMessage *pm)
kdDebug(5008) << "WidgetRunner:: no such set of widget descriptors?" << endl;
throw(errorCommandFailed(PUKE_INVALID, INVALID_DEL_NO_SUCH_CONNECTION));
}
- if(qidWS->tqfind(wI.iWinId)){
+ if(qidWS->find(wI.iWinId)){
// Remove the list item then delete the widget. This will stop
// the destroyed signal from trying to remove it again.
- PObject *pw = qidWS->tqfind(wI.iWinId)->pwidget;
+ PObject *pw = qidWS->find(wI.iWinId)->pwidget;
qidWS->remove(wI.iWinId);
delete pw; pw = 0;
pmRet.iCommand = PUKE_WIDGET_DELETE_ACK;
@@ -661,8 +661,8 @@ void PukeController::hdlrPukeDeleteWidget(int fd, PukeMessage *pm)
throw(errorCommandFailed(PUKE_INVALID, INVALID_DEL_NO_SUCH_WIDGET));
}
- WidgetList[fd]->tqfind(wI.iWinId)->pwidget->manTerm();
- delete WidgetList[fd]->tqfind(wI.iWinId)->pwidget;
+ WidgetList[fd]->find(wI.iWinId)->pwidget->manTerm();
+ delete WidgetList[fd]->find(wI.iWinId)->pwidget;
PukeMessage pmRet = *pm;
pmRet.iCommand = PUKE_WIDGET_DELETE_ACK;
@@ -745,7 +745,7 @@ void PukeController::closefd(int fd)
bool PukeController::checkWidgetId(widgetId *pwi)
{
if(WidgetList[pwi->fd] != NULL)
- if(WidgetList[pwi->fd]->tqfind(pwi->iWinId) != NULL)
+ if(WidgetList[pwi->fd]->find(pwi->iWinId) != NULL)
return TRUE;
return FALSE;
@@ -753,7 +753,7 @@ bool PukeController::checkWidgetId(widgetId *pwi)
PObject *PukeController::id2pobject(widgetId *pwi){
if(checkWidgetId(pwi) == TRUE){
- return WidgetList[pwi->fd]->tqfind(pwi->iWinId)->pwidget;
+ return WidgetList[pwi->fd]->find(pwi->iWinId)->pwidget;
}
throw(errorNoSuchWidget(*pwi));
return 0; // never reached
@@ -899,7 +899,7 @@ void PukeController::messageHandler(int fd, PukeMessage *pm) {
}
else{
if(checkWidgetId(&wI) == TRUE){
- WidgetList[wI.fd]->tqfind(wI.iWinId)->pwidget->messageHandler(fd, pm);
+ WidgetList[wI.fd]->find(wI.iWinId)->pwidget->messageHandler(fd, pm);
}
else{
PukeMessage pmRet;
@@ -943,7 +943,7 @@ widgetId PukeController::createWidget(widgetId wI, PukeMessage *pm)
wIret.fd = wI.fd;
if(checkWidgetId(&wI) == TRUE){
- PObject *obj = WidgetList[wI.fd]->tqfind(wI.iWinId)->pwidget;
+ PObject *obj = WidgetList[wI.fd]->find(wI.iWinId)->pwidget;
if(obj->widget()->isWidgetType() == FALSE){
throw(errorCommandFailed(PUKE_INVALID, 0));
}
diff --git a/ksirc/servercontroller.cpp b/ksirc/servercontroller.cpp
index c525ec65..1f4e62d7 100644
--- a/ksirc/servercontroller.cpp
+++ b/ksirc/servercontroller.cpp
@@ -767,10 +767,10 @@ void servercontroller::WindowSelected(TQListViewItem *item)
return;
TQString txt = TQString(parent_server->text(0)) + "_" + item->text(0) + "_toplevel";
- TQWidget *obj = dynamic_cast( objFinder::tqfind(txt.utf8(), "KSircTopLevel"));
+ TQWidget *obj = dynamic_cast( objFinder::find(txt.utf8(), "KSircTopLevel"));
if(obj == 0x0){
txt =TQString(parent_server->text(0)) + "_!" + item->text(0) + "_toplevel";
- obj = dynamic_cast( objFinder::tqfind(txt.utf8(), "KSircTopLevel"));
+ obj = dynamic_cast( objFinder::find(txt.utf8(), "KSircTopLevel"));
}
if(obj != 0x0){
diff --git a/ksirc/stringparserstate.h b/ksirc/stringparserstate.h
index 06167267..04fb96ea 100644
--- a/ksirc/stringparserstate.h
+++ b/ksirc/stringparserstate.h
@@ -33,7 +33,7 @@ public:
{
if ( m_current >= m_end )
return true;
- return m_endItems.tqfindIndex( currentValue() ) != -1;
+ return m_endItems.findIndex( currentValue() ) != -1;
}
ConstIterator current() const { return m_current; }
diff --git a/ksirc/topic.cpp b/ksirc/topic.cpp
index 3afa199d..1932fa03 100644
--- a/ksirc/topic.cpp
+++ b/ksirc/topic.cpp
@@ -51,11 +51,11 @@ void KSircTopic::setText( const TQString &_text)
TQString richText( "" );
richText = richText.tqarg( ksopts->textColor.name() );
- text.tqreplace('&', "&");
- text.tqreplace('<', "<");
- text.tqreplace('>', ">");
+ text.replace('&', "&");
+ text.replace('<', "<");
+ text.replace('>', ">");
- text.tqreplace('~', "~~");
+ text.replace('~', "~~");
// ### a bit of a hack: turn '<nick> message' into
// <nick> message' . span itself isn't supported but it
@@ -65,11 +65,11 @@ void KSircTopic::setText( const TQString &_text)
// 'nick< to catch queries.
TQRegExp bidiRe( "^(<\\S+>)(.+)$" );
- text.tqreplace( bidiRe, TQString::tqfromLatin1( "\\1\\2" ) );
+ text.replace( bidiRe, TQString::tqfromLatin1( "\\1\\2" ) );
TQRegExp bidiRe2( "^(\\[\\S+\\])(.+)$" );
- text.tqreplace( bidiRe2, TQString::tqfromLatin1( "\\1\\2" ) );
+ text.replace( bidiRe2, TQString::tqfromLatin1( "\\1\\2" ) );
TQRegExp bidiRe3( "^(>\\S+<)(.+)$" );
- text.tqreplace( bidiRe3, TQString::tqfromLatin1( "\\1\\2" ) );
+ text.replace( bidiRe3, TQString::tqfromLatin1( "\\1\\2" ) );
KSParser parser;
richText += parser.parse( text );
@@ -228,9 +228,9 @@ TQPopupMenu *KSircTopicEditor::createPopupMenu( const TQPoint &pos )
void KSircTopicEditor::slotMaybeResize()
{
- if(text().tqcontains("\n")){
+ if(text().contains("\n")){
TQString s = text();
- s.tqreplace('\n', " ");
+ s.replace('\n', " ");
setText(s);
setCursorPosition(0, s.length());
}
diff --git a/ksirc/toplevel.cpp b/ksirc/toplevel.cpp
index 43b2201e..bdc14b1d 100644
--- a/ksirc/toplevel.cpp
+++ b/ksirc/toplevel.cpp
@@ -189,8 +189,8 @@ KSircTopLevel::KSircTopLevel(KSircProcess *_proc, const KSircChannel &channelInf
// remove utf16/ucs2 as it just doesn't work for IRC
TQStringList::Iterator encodingIt = encodings.begin();
while ( encodingIt != encodings.end() ) {
- if ( ( *encodingIt ).tqfind( "utf16" ) != -1 ||
- ( *encodingIt ).tqfind( "iso-10646" ) != -1 )
+ if ( ( *encodingIt ).find( "utf16" ) != -1 ||
+ ( *encodingIt ).find( "iso-10646" ) != -1 )
encodingIt = encodings.remove( encodingIt );
else
++encodingIt;
@@ -200,7 +200,7 @@ KSircTopLevel::KSircTopLevel(KSircProcess *_proc, const KSircChannel &channelInf
encodingAction->setItems( encodings );
encodingAction->plug( file );
- int eindex = encodings.tqfindIndex(ksopts->chan(m_channelInfo).encoding);
+ int eindex = encodings.findIndex(ksopts->chan(m_channelInfo).encoding);
if(eindex == -1)
encodingAction->setCurrentItem( 0 );
else
@@ -553,7 +553,7 @@ KSircTopLevel::~KSircTopLevel()
ksit.atEnd() == 0;
++ksit) {
TQString rt = ksit.richText();
- if(rt.tqcontains(""))
+ if(rt.contains(""))
continue;
kdDebug(5008) << rt << endl;
@@ -719,7 +719,7 @@ void KSircTopLevel::TabNickCompletion(int dir)
s = linee->text();
tab_saved = s;
end = linee->cursorPosition() - 1;
- start = s.tqfindRev(" ", end, FALSE);
+ start = s.findRev(" ", end, FALSE);
tab_start = start;
tab_end = end;
first = true;
@@ -765,9 +765,9 @@ void KSircTopLevel::TabNickCompletion(int dir)
tab_pressed -= 1;
tab_nick = findNick(s.mid(0, end+1), tab_pressed);
}
- s.tqreplace(0, end + 1, "");
+ s.replace(0, end + 1, "");
if(s[0] == ':')
- s.tqreplace(0, 2, "");
+ s.replace(0, 2, "");
s.prepend(tab_nick + ": ");
extra = 2;
}
@@ -784,11 +784,11 @@ void KSircTopLevel::TabNickCompletion(int dir)
}
if((uint) end == s.length() - 1){ /* if we're at the end add a space */
- s.tqreplace(start + 1, end - start, tab_nick + " ");
+ s.replace(start + 1, end - start, tab_nick + " ");
extra = 1;
}
else {
- s.tqreplace(start + 1, end - start, tab_nick);
+ s.replace(start + 1, end - start, tab_nick);
extra = 0;
}
}
@@ -845,12 +845,12 @@ void KSircTopLevel::sirc_receive(TQString str, bool broadcast)
bool addressedLine = false;
- if(line.message.tqcontains( ">~o")){ /* highlighted with our nick */
+ if(line.message.contains( ">~o")){ /* highlighted with our nick */
addressedLine = true;
}
// detect /msg's -- needed when auto-create-window is off
- if ( line.message.tqfind( TQRegExp( "^\\[~b.+~b\\].+$" ) ) == 0 )
+ if ( line.message.find( TQRegExp( "^\\[~b.+~b\\].+$" ) ) == 0 )
addressedLine = true;
if ( addressedLine == true && line.message.startsWith("* " + ksircProcess()->getNick()))
@@ -911,7 +911,7 @@ void KSircTopLevel::sirc_write(const TQString &str)
plain.startsWith("/j ") ||
plain.startsWith("/query ")) {
- TQString s = plain.mid(plain.tqfind(' ')+1);
+ TQString s = plain.mid(plain.find(' ')+1);
TQStringList channels = TQStringList::split(",", s);
TQStringList::ConstIterator it = channels.begin();
@@ -949,7 +949,7 @@ void KSircTopLevel::sirc_write(const TQString &str)
bool ssl = false;
if(server.startsWith("+")){
- server.tqreplace(0, 1, "");
+ server.replace(0, 1, "");
ssl = true;
}
@@ -1075,7 +1075,7 @@ bool KSircTopLevel::parse_input(const TQString &string, TQString &plainText)
}
// If it contains our nick, move the speaker to the top
// of the nick completion list
- if(string.tqcontains("~o")){
+ if(string.contains("~o")){
TQRegExp rx("<(\\S+)>");
if ( (rx.search(logString) >= 0) &&
(rx.cap(1) != ksircProcess()->getNick()) ) {
@@ -1121,7 +1121,7 @@ void KSircTopLevel::returnPressed()
}
while(s.length() > IRC_SAFE_MAX_LINE){
- int wrap = s.tqfindRev(' ', IRC_SAFE_MAX_LINE);
+ int wrap = s.findRev(' ', IRC_SAFE_MAX_LINE);
if(wrap == -1)
wrap = IRC_SAFE_MAX_LINE;
sirc_line_return(s.left(wrap));
@@ -1156,7 +1156,7 @@ void KSircTopLevel::UserParseMenu(int id)
if (action.length() && action[0] == '/')
action.remove(0, 1);
s = TQString("/eval &docommand(eval{\"%1\"});\n").tqarg(action);
- s.tqreplace(TQRegExp("\\$\\$"), "$");
+ s.replace(TQRegExp("\\$\\$"), "$");
sirc_write(s);
}
@@ -1342,7 +1342,7 @@ void KSircTopLevel::control_message(int command, TQString str)
file->setItemChecked(beepitem, ksopts->chan(m_channelInfo).beepOnMsg);
file->setItemChecked(tsitem, ksopts->chan(m_channelInfo).timeStamp);
file->setItemChecked(fjpitem, ksopts->chan(m_channelInfo).filterJoinPart);
- int eindex = encodingAction->items().tqfindIndex(ksopts->chan(m_channelInfo).encoding);
+ int eindex = encodingAction->items().findIndex(ksopts->chan(m_channelInfo).encoding);
//kdDebug(5008) << "in change channel we want: " << ksopts->chan(m_channelInfo).encoding << " eindex: " << eindex << endl;
encodingAction->setCurrentItem(eindex < 0 ? 0 : eindex);
setEncoding();
@@ -1373,7 +1373,7 @@ void KSircTopLevel::control_message(int command, TQString str)
file->setItemChecked(beepitem, ksopts->channel[m_channelInfo.server()][m_channelInfo.channel()].beepOnMsg);
file->setItemChecked(tsitem, ksopts->channel[m_channelInfo.server()][m_channelInfo.channel()].timeStamp);
{
- int eindex = encodingAction->items().tqfindIndex(ksopts->channel[m_channelInfo.server()][m_channelInfo.channel()].encoding);
+ int eindex = encodingAction->items().findIndex(ksopts->channel[m_channelInfo.server()][m_channelInfo.channel()].encoding);
//kdDebug(5008) << "in re-readconfig we want: " << ksopts->channel[m_channelInfo.server()][m_channelInfo.channel()].encoding << " eindex: " << eindex << endl;
encodingAction->setCurrentItem(eindex < 0 ? 0 : eindex);
setEncoding();
@@ -1448,7 +1448,7 @@ TQString KSircTopLevel::findNick(TQString part, uint which)
}
for(uint i=0; i < nicks->count(); i++){
- if (matches.tqcontains(nicks->text(i)))
+ if (matches.contains(nicks->text(i)))
continue;
if(nicks->text(i).length() >= part.length()){
if(nicks->text(i).lower().startsWith( part.lower())){
@@ -1470,7 +1470,7 @@ TQString KSircTopLevel::findNick(TQString part, uint which)
void KSircTopLevel::removeCompleteNick(const TQString &nick)
{
- TQStringList::Iterator it = completeNicks.tqfind(nick);
+ TQStringList::Iterator it = completeNicks.find(nick);
if (it != completeNicks.end())
completeNicks.remove(it);
}
@@ -1483,7 +1483,7 @@ void KSircTopLevel::addCompleteNick(const TQString &nick)
void KSircTopLevel::changeCompleteNick(const TQString &oldNick, const TQString &newNick)
{
- TQStringList::Iterator it = completeNicks.tqfind(oldNick);
+ TQStringList::Iterator it = completeNicks.find(oldNick);
if (it != completeNicks.end())
*it = newNick;
}
@@ -1568,7 +1568,7 @@ void KSircTopLevel::slotTextDropped( const TQString& _text )
if (text[text.length()-1] != '\n')
text += "\n";
- int lines = text.tqcontains("\n");
+ int lines = text.contains("\n");
int approx_lines = text.length() / 75;
if ( lines > approx_lines )
approx_lines = lines;
@@ -1622,7 +1622,7 @@ void KSircTopLevel::slotTextDropped( const TQString& _text )
linee->update();
}
else{
- text.tqreplace(TQRegExp("\n"), "");
+ text.replace(TQRegExp("\n"), "");
linee->setText(text);
linee->setCursorPosition( curPos + _text.length() );
}
@@ -1834,7 +1834,7 @@ void KSircTopLevel::cmd_process(int id)
void KSircTopLevel::showDCCMgr()
{
- KSircMessageReceiver *kmr = ksircProcess()->mrList().tqfind("!dcc");
+ KSircMessageReceiver *kmr = ksircProcess()->mrList().find("!dcc");
if(kmr){
KSircIODCC *dcc = static_cast(kmr);
if(dcc){
diff --git a/ktalkd/ktalkd/readcfg++.cpp b/ktalkd/ktalkd/readcfg++.cpp
index df14af8a..53090af0 100644
--- a/ktalkd/ktalkd/readcfg++.cpp
+++ b/ktalkd/ktalkd/readcfg++.cpp
@@ -181,7 +181,7 @@ int process_config_file(void)
{
// Where is ktalkdlg installed ?
TQString ktalkdlg_dir = locate("exe", "ktalkdlg");
- ktalkdlg_dir.truncate( ktalkdlg_dir.tqfindRev('/') );
+ ktalkdlg_dir.truncate( ktalkdlg_dir.findRev('/') );
// Has to be done, for any $KDEBINDIR in ktalkdrc.
setenv("KDEBINDIR", TQFile::encodeName(ktalkdlg_dir), 0/*don't overwrite*/);
diff --git a/ktalkd/ktalkd/unixsock.cpp b/ktalkd/ktalkd/unixsock.cpp
index c99264b0..9547ccf5 100644
--- a/ktalkd/ktalkd/unixsock.cpp
+++ b/ktalkd/ktalkd/unixsock.cpp
@@ -105,7 +105,7 @@ bool sendToKtalk (const char *username, const char *announce)
// by me but someone else!)
//
// Besides, this approach allows me to snoop on the
- // talk requests other users receive; if I want to tqfind
+ // talk requests other users receive; if I want to find
// out who's talking to janet, all I need is to write
// a small app that listens on /tmp/ktalk-janet-foo
//
diff --git a/ktalkd/ktalkdlg/ktalkdlg.cpp b/ktalkd/ktalkdlg/ktalkdlg.cpp
index 9e2996e5..3ca199fb 100644
--- a/ktalkd/ktalkdlg/ktalkdlg.cpp
+++ b/ktalkd/ktalkdlg/ktalkdlg.cpp
@@ -140,7 +140,7 @@ int main (int argc, char **argv)
TQString konsole = locate("exe", "konsole");
TQString konsole_dir = konsole;
- konsole_dir.truncate( konsole.tqfindRev('/') );
+ konsole_dir.truncate( konsole.findRev('/') );
setenv("KDEBINDIR", TQFile::encodeName(konsole_dir).data(), 0/*don't overwrite*/);
TQString cmd0 = cfg->readPathEntry ("talkprg", konsole + " -e talk");
diff --git a/lanbrowsing/kcmlisa/findnic.cpp b/lanbrowsing/kcmlisa/findnic.cpp
index 7de4b19c..61996018 100644
--- a/lanbrowsing/kcmlisa/findnic.cpp
+++ b/lanbrowsing/kcmlisa/findnic.cpp
@@ -192,8 +192,8 @@ NICList* findNICs()
void suggestSettingsForAddress(const TQString& addrMask, LisaConfigInfo& lci)
{
- TQString ip=addrMask.left(addrMask.tqfind("/"));
- TQString tqmask=addrMask.mid(addrMask.tqfind("/")+1);
+ TQString ip=addrMask.left(addrMask.find("/"));
+ TQString tqmask=addrMask.mid(addrMask.find("/")+1);
if (tqmask[tqmask.length()-1]==';')
tqmask=tqmask.left(tqmask.length()-1);
diff --git a/lanbrowsing/kcmlisa/setupwizard.cpp b/lanbrowsing/kcmlisa/setupwizard.cpp
index ab73259c..82873c00 100644
--- a/lanbrowsing/kcmlisa/setupwizard.cpp
+++ b/lanbrowsing/kcmlisa/setupwizard.cpp
@@ -546,7 +546,7 @@ void SetupWizard::checkIPAddress(const TQString& addr)
TQString address=addr.simplifyWhiteSpace();
TQRegExp regex("^\\d+\\.\\d+\\.\\d+\\.\\d+\\s*/\\s*\\d+\\.\\d+\\.\\d+\\.\\d+$");
setNextEnabled(m_noNicPage, (regex.search(address,0)!=-1));
-// setNextEnabled(m_noNicPage, (regex.tqfind(address,0)!=-1));
+// setNextEnabled(m_noNicPage, (regex.find(address,0)!=-1));
}
void SetupWizard::applyLisaConfigInfo(LisaConfigInfo& lci)
diff --git a/lanbrowsing/lisa/addressvalidator.cpp b/lanbrowsing/lisa/addressvalidator.cpp
index 3ac8ccf0..70207ece 100644
--- a/lanbrowsing/lisa/addressvalidator.cpp
+++ b/lanbrowsing/lisa/addressvalidator.cpp
@@ -74,20 +74,20 @@ void AddressValidator::setValidAddresses(MyString addressSpecs)
nextPart=addressSpecs.left(pos);
addressSpecs=addressSpecs.mid(pos+1);
dcerr<<"setValidAddresses: nextPart: "<tqfindIndex(device)==-1))
+ (!ignoreInterfaces || ignoreInterfaces->findIndex(device)==-1))
{
setActiveDevice(device);
}
@@ -564,29 +564,29 @@ Interface_wireless_wirelessextensions::parseScanData ( KProcIO * iwlist )
while ( iwlist->readln ( data, true ) >= 0 )
{
kdDebug ( ) << "iwlist: " << data << "\n";
- if ( data.tqcontains ( "does not support scanning" ) )
+ if ( data.contains ( "does not support scanning" ) )
KMessageBox::sorry ( 0,
i18n
( "Your card does not support scanning. The results window will not contain any results." ),
i18n ( "Scanning not possible" ) );
- if ( data.tqcontains ( "Scan completed" ) )
+ if ( data.contains ( "Scan completed" ) )
cellcount = 0; // at the very beginning of a scan
- if ( data.tqcontains ( "Cell" ) ) {
+ if ( data.contains ( "Cell" ) ) {
cellcount++; // new cell discovered
networks->setNumRows ( networks->numRows() +1 );
ignoreRemainingBits = false;
}
- if ( data.tqcontains ( "ESSID:" ) )
+ if ( data.contains ( "ESSID:" ) )
{
- TQString ssid = data.mid ( data.tqfind ( "\"" ) + 1, data.length ( ) - data.tqfind ( "\"" ) - 2 );
+ TQString ssid = data.mid ( data.find ( "\"" ) + 1, data.length ( ) - data.find ( "\"" ) - 2 );
if ((ssid=="") || (ssid==" ")) ssid = "(hidden cell)";
networks->setText ( cellcount - 1, 0, ssid );
}
- if ( data.tqcontains ( "Mode:" ) )
+ if ( data.contains ( "Mode:" ) )
{
- if ( data.tqcontains ( "Master" ) )
+ if ( data.contains ( "Master" ) )
networks->setText ( cellcount - 1, 1, TQString ( i18n ( "Managed" ) ) );
- if ( data.tqcontains ( "Ad-Hoc" ) )
+ if ( data.contains ( "Ad-Hoc" ) )
networks->setText ( cellcount - 1, 1, TQString ( i18n ( "Ad-Hoc" ) ) );
// if could be that this cell belongs to an SSID already discovered, or that there are more than one
// hidden cells, which doesn't give any new information. So, we first search for duplicates and delete
@@ -605,31 +605,31 @@ Interface_wireless_wirelessextensions::parseScanData ( KProcIO * iwlist )
}
}
}
- if ( !ignoreRemainingBits && data.tqcontains ( "Encryption key:" ) )
+ if ( !ignoreRemainingBits && data.contains ( "Encryption key:" ) )
{
- if ( data.tqcontains ( "off" ) )
+ if ( data.contains ( "off" ) )
networks->setText ( cellcount - 1, 3, TQString ( "off" ) );
else
networks->setText ( cellcount - 1, 3, TQString ( "on" ) );
}
- if ( !ignoreRemainingBits && data.tqcontains ( "Quality:" ) )
+ if ( !ignoreRemainingBits && data.contains ( "Quality:" ) )
{
- TQString quality = data.mid ( data.tqfind ( ":" ) + 1, data.tqfind ( "/" ) - data.tqfind ( ":" ) - 1 );
+ TQString quality = data.mid ( data.find ( ":" ) + 1, data.find ( "/" ) - data.find ( ":" ) - 1 );
networks->setText ( cellcount - 1, 2, quality );
}
- if ( !ignoreRemainingBits && data.tqcontains ( "Quality=" ) )
+ if ( !ignoreRemainingBits && data.contains ( "Quality=" ) )
{
- TQString quality = data.mid ( data.tqfind ( "=" ) + 1, data.tqfind ( "/" ) - data.tqfind ( "=" ) - 1 );
+ TQString quality = data.mid ( data.find ( "=" ) + 1, data.find ( "/" ) - data.find ( "=" ) - 1 );
networks->setText ( cellcount - 1, 2, quality );
}
- if ( !ignoreRemainingBits && data.tqcontains ( "wpa_ie" ) )
+ if ( !ignoreRemainingBits && data.contains ( "wpa_ie" ) )
{
networks->setText ( cellcount - 1, 3, TQString ( "WPA" ) );
}
- if ( !ignoreRemainingBits && data.tqcontains ( "rsn_ie" ) )
+ if ( !ignoreRemainingBits && data.contains ( "rsn_ie" ) )
{
networks->setText ( cellcount - 1, 3, TQString ( "WPA2" ) );
}
diff --git a/wifi/kcmwifi/vendorconfig.cpp b/wifi/kcmwifi/vendorconfig.cpp
index 01936667..395cbc58 100644
--- a/wifi/kcmwifi/vendorconfig.cpp
+++ b/wifi/kcmwifi/vendorconfig.cpp
@@ -89,7 +89,7 @@ VendorConfig::initSuSE_92plus ( )
TQString var = buffer.section ( '=', 0, 0 );
TQString value = buffer.section ( '=', 1, 1 );
value = value.mid ( 1, value.length ( ) - 3 );
- kdDebug ( ) << "Variable " << var << " tqcontains " << value << ".\n";
+ kdDebug ( ) << "Variable " << var << " contains " << value << ".\n";
// evaluate the meaningful lines
if ( var == "WIRELESS_ESSID" )
{
@@ -182,7 +182,7 @@ is incremented _after_ successful setup of each given config. */
// lines look like wireless-defaultkey bla, so split it into wireless-defaultkey and bla
TQString var = buffer.section ( ' ', 0, 0 );
TQString value = buffer.section ( ' ', 1, 1 );
- kdDebug ( ) << "Variable " << var << " tqcontains " << value << ".\n";
+ kdDebug ( ) << "Variable " << var << " contains " << value << ".\n";
// evaluate the meaningful lines
if ( var.tqstartsWith ( "wireless", false ) )
{
@@ -191,7 +191,7 @@ is incremented _after_ successful setup of each given config. */
newtab->le_networkName->setText ( value );
}
- else if ( var.endsWith ( "mode" ) && !var.tqcontains ( "key" ) )
+ else if ( var.endsWith ( "mode" ) && !var.contains ( "key" ) )
{
newtab->cmb_wifiMode->setCurrentItem ( IfConfig::convertToWifiModeFromString ( value ) );
@@ -203,15 +203,15 @@ is incremented _after_ successful setup of each given config. */
newtab->cmb_speed->setCurrentItem ( IfConfig::convertToSpeedFromString ( value ) );
}
- else if ( var.tqcontains ( "key" ) )
+ else if ( var.contains ( "key" ) )
{
// Could be any of key, key1, key2, ..., or defaultkey
- if ( var.tqcontains ( "default" ) )
+ if ( var.contains ( "default" ) )
{
crypto->cmb_activeKey->setCurrentItem ( value.toInt ( ) );
}
- else if ( var.tqcontains ( "mode" ) )
+ else if ( var.contains ( "mode" ) )
{
if ( value == "shared" || value == "sharedkey" || value == "restricted" )
{
diff --git a/wifi/kcmwifi/wificonfig.cpp b/wifi/kcmwifi/wificonfig.cpp
index 1f3087ba..bce6afd9 100644
--- a/wifi/kcmwifi/wificonfig.cpp
+++ b/wifi/kcmwifi/wificonfig.cpp
@@ -246,9 +246,9 @@ TQString WifiConfig::autoDetectInterface()
while ( !procFile.atEnd() )
{
procFile.readLine( line, 9999 );
- if ( line.tqfind( ":" ) > 0 )
+ if ( line.find( ":" ) > 0 )
{
- line.truncate ( line.tqfind( ":" ) );
+ line.truncate ( line.find( ":" ) );
list.append( line.stripWhiteSpace() );
}
}
@@ -264,7 +264,7 @@ TQString WifiConfig::autoDetectInterface()
for ( TQStringList::Iterator it = list.begin (); it != list.end (); ++it )
{
- if ( ((*it).tqcontains("wifi"))==0 ) { // if the name is wifiX, ignore
+ if ( ((*it).contains("wifi"))==0 ) { // if the name is wifiX, ignore
KProcIO test;
test << "iwconfig";
test << *it;
@@ -288,9 +288,9 @@ void WifiConfig::slotTestInterface( KProcIO *proc )
{
TQString output;
proc->readln( output );
- if ( output.tqfind ( "no wireless extensions" ) == -1 )
+ if ( output.find ( "no wireless extensions" ) == -1 )
{
- output.truncate( output.tqfind ( " " ) );
+ output.truncate( output.find ( " " ) );
m_detectedInterface = output.stripWhiteSpace();
printf("[kcontrol wificonfig] Wireless extensions not available on specified interface\n\r");
}
@@ -328,7 +328,7 @@ Key IfConfig::activeKey()
IfConfig::Speed IfConfig::convertToSpeedFromString( const TQString &s )
{
- return ( IfConfig::Speed )speedList.tqfindIndex( s );
+ return ( IfConfig::Speed )speedList.findIndex( s );
}
void IfConfig::speedFromString( const TQString &s )
@@ -338,7 +338,7 @@ void IfConfig::speedFromString( const TQString &s )
IfConfig::WifiMode IfConfig::convertToWifiModeFromString( const TQString &s )
{
- return ( IfConfig::WifiMode )wifiModeList.tqfindIndex( s );
+ return ( IfConfig::WifiMode )wifiModeList.findIndex( s );
}
void IfConfig::wifimodeFromString( const TQString &s )
@@ -348,7 +348,7 @@ void IfConfig::wifimodeFromString( const TQString &s )
IfConfig::CryptoMode IfConfig::convertToCryptoModeFromString( const TQString &s )
{
- return ( IfConfig::CryptoMode )cryptoModeList.tqfindIndex( s );
+ return ( IfConfig::CryptoMode )cryptoModeList.findIndex( s );
}
void IfConfig::cryptomodeFromString( const TQString &s )
@@ -358,7 +358,7 @@ void IfConfig::cryptomodeFromString( const TQString &s )
IfConfig::PowerMode IfConfig::convertToPowerModeFromString( const TQString &s )
{
- return ( IfConfig::PowerMode )powerModeList.tqfindIndex( s );
+ return ( IfConfig::PowerMode )powerModeList.findIndex( s );
}
void IfConfig::powermodeFromString( const TQString &s )
diff --git a/wifi/kwifimanager.cpp b/wifi/kwifimanager.cpp
index 8cc88943..b7d49abb 100644
--- a/wifi/kwifimanager.cpp
+++ b/wifi/kwifimanager.cpp
@@ -163,9 +163,9 @@ KWiFiManagerApp::init_whois_db ()
while (datei.readLine (content, 255) != -1)
{
TQString temp (content);
- content.truncate (content.tqfind (' '));
+ content.truncate (content.find (' '));
content = content.upper ();
- content2 = temp.right (temp.length () - temp.tqfind (' ') - 1);
+ content2 = temp.right (temp.length () - temp.find (' ') - 1);
content2.truncate (content2.length () - 1);
APs << content << content2;
}
--
cgit v1.2.3
|