diff options
author | Timothy Pearson <[email protected]> | 2013-01-25 00:36:20 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-01-25 00:36:20 -0600 |
commit | f21aaec952493cb5688c73de6e82a569ddbd7fb2 (patch) | |
tree | 78ccb5117063da3e08e3277e11054b912a9f2ae7 /kopete/plugins/addbookmarks/addbookmarksplugin.cpp | |
parent | c48e769eb275917717e2b55eb869f7e559293ac8 (diff) | |
download | tdenetwork-f21aaec952493cb5688c73de6e82a569ddbd7fb2.tar.gz tdenetwork-f21aaec952493cb5688c73de6e82a569ddbd7fb2.zip |
Rename KCModule, KConfig, KIO, KServer, and KSocket to avoid conflicts with KDE4
Diffstat (limited to 'kopete/plugins/addbookmarks/addbookmarksplugin.cpp')
-rw-r--r-- | kopete/plugins/addbookmarks/addbookmarksplugin.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
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; } |