From f21aaec952493cb5688c73de6e82a569ddbd7fb2 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 25 Jan 2013 00:36:20 -0600 Subject: Rename KCModule, KConfig, KIO, KServer, and KSocket to avoid conflicts with KDE4 --- kopete/plugins/addbookmarks/addbookmarksplugin.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'kopete/plugins/addbookmarks/addbookmarksplugin.cpp') diff --git a/kopete/plugins/addbookmarks/addbookmarksplugin.cpp b/kopete/plugins/addbookmarks/addbookmarksplugin.cpp index 113ec95e..320eeb3e 100644 --- a/kopete/plugins/addbookmarks/addbookmarksplugin.cpp +++ b/kopete/plugins/addbookmarks/addbookmarksplugin.cpp @@ -75,7 +75,7 @@ void BookmarksPlugin::slotBookmarkURLsInMessage(Kopete::Message & msg) delete URLsList; } -void BookmarksPlugin::slotAddKopeteBookmark( KIO::Job *transfer, const TQByteArray &data ) +void BookmarksPlugin::slotAddKopeteBookmark( TDEIO::Job *transfer, const TQByteArray &data ) { TQTextCodec *codec = getPageEncoding( data ); TQString htmlpage = codec->toUnicode( data ); @@ -84,21 +84,21 @@ void BookmarksPlugin::slotAddKopeteBookmark( KIO::Job *transfer, const TQByteArr int pos = rx.search( htmlpage ); KBookmarkManager *mgr = KBookmarkManager::userBookmarksManager(); KBookmarkGroup group = getKopeteFolder(); - TQString sender = m_map[(KIO::TransferJob*)transfer].sender; + TQString sender = m_map[(TDEIO::TransferJob*)transfer].sender; if ( m_settings.useSubfolderForContact( sender ) ) group = getFolder( group, sender ); if( pos == -1 ){ - group.addBookmark( mgr, m_map[(KIO::TransferJob*)transfer].url.prettyURL(), m_map[(KIO::TransferJob*)transfer].url.url() ); + group.addBookmark( mgr, m_map[(TDEIO::TransferJob*)transfer].url.prettyURL(), m_map[(TDEIO::TransferJob*)transfer].url.url() ); kdDebug( 14501 ) << "failed to extract title from first data chunk" << endl; }else { group.addBookmark( mgr, rx.cap( 1 ).simplifyWhiteSpace(), - m_map[(KIO::TransferJob*)transfer].url.url() ); + m_map[(TDEIO::TransferJob*)transfer].url.url() ); } mgr->save(); mgr->emitChanged( group ); - m_map.remove( (KIO::TransferJob*)transfer ); + m_map.remove( (TDEIO::TransferJob*)transfer ); transfer->kill(); } @@ -129,12 +129,12 @@ void BookmarksPlugin::addKopeteBookmark( const KURL& url, const TQString& sender // either restrict to http(s) or to KProtocolInfo::protocolClass() == :internet if( !isURLInGroup( url, group ) && url.isValid() && url.protocol().startsWith("http") ) { - KIO::TransferJob *transfer; + TDEIO::TransferJob *transfer; // make asynchronous transfer to avoid GUI freezing due to overloaded web servers - transfer = KIO::get(url, false, false); + transfer = TDEIO::get(url, false, false); transfer->setInteractive(false); - connect ( transfer, TQT_SIGNAL ( data( KIO::Job *, const TQByteArray & ) ), - this, TQT_SLOT ( slotAddKopeteBookmark( KIO::Job *, const TQByteArray & ) ) ); + connect ( transfer, TQT_SIGNAL ( data( TDEIO::Job *, const TQByteArray & ) ), + this, TQT_SLOT ( slotAddKopeteBookmark( TDEIO::Job *, const TQByteArray & ) ) ); m_map[transfer].url = url; m_map[transfer].sender = sender; } -- cgit v1.2.1