From cc74f360bb40da3d79f58048f8e8611804980aa6 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 25 Jan 2013 00:30:47 -0600 Subject: Rename KCModule, KConfig, KIO, KServer, and KSocket to avoid conflicts with KDE4 --- konqueror/client/kfmclient.cc | 24 ++++++++++++------------ konqueror/client/kfmclient.h | 2 +- 2 files changed, 13 insertions(+), 13 deletions(-) (limited to 'konqueror/client') diff --git a/konqueror/client/kfmclient.cc b/konqueror/client/kfmclient.cc index 2fc8b336a..649115d5c 100644 --- a/konqueror/client/kfmclient.cc +++ b/konqueror/client/kfmclient.cc @@ -178,7 +178,7 @@ extern "C" KDE_EXPORT int kdemain( int argc, char **argv ) */ static bool startNewKonqueror( TQString url, TQString mimetype, const TQString& profile ) { - KConfig cfg( TQString::fromLatin1( "konquerorrc" ), true ); + TDEConfig cfg( TQString::fromLatin1( "konquerorrc" ), true ); cfg.setGroup( "Reusing" ); TQStringList allowed_parts; // is duplicated in ../KonquerorIface.cc @@ -200,7 +200,7 @@ static bool startNewKonqueror( TQString url, TQString mimetype, const TQString& TQString profilepath = locate( "data", TQString::fromLatin1("konqueror/profiles/") + profile ); if( profilepath.isEmpty()) return true; - KConfig cfg( profilepath, true ); + TDEConfig cfg( profilepath, true ); cfg.setDollarExpansion( true ); cfg.setGroup( "Profile" ); TQMap< TQString, TQString > entries = cfg.entryMap( TQString::fromLatin1( "Profile" )); @@ -248,7 +248,7 @@ static int currentScreen() // when reusing a preloaded konqy, make sure your always use a DCOP call which opens a profile ! static TQCString getPreloadedKonqy() { - KConfig cfg( TQString::fromLatin1( "konquerorrc" ), true ); + TDEConfig cfg( TQString::fromLatin1( "konquerorrc" ), true ); cfg.setGroup( "Reusing" ); if( cfg.readNumEntry( "MaxPreloadCount", 1 ) == 0 ) return ""; @@ -301,7 +301,7 @@ bool clientApp::createNewWindow(const KURL & url, bool newTab, bool tempFile, co // check if user wants to use external browser // ###### this option seems to have no GUI and to be redundant with BrowserApplication now. // ###### KDE4: remove - KConfig config( TQString::fromLatin1("kfmclientrc")); + TDEConfig config( TQString::fromLatin1("kfmclientrc")); config.setGroup( TQString::fromLatin1("Settings")); TQString strBrowser = config.readPathEntry("ExternalBrowser"); if (!strBrowser.isEmpty()) @@ -330,7 +330,7 @@ bool clientApp::createNewWindow(const KURL & url, bool newTab, bool tempFile, co } } - KConfig cfg( TQString::fromLatin1( "konquerorrc" ), true ); + TDEConfig cfg( TQString::fromLatin1( "konquerorrc" ), true ); cfg.setGroup( "FMSettings" ); if ( newTab || cfg.readBoolEntry( "KonquerorTabforExternalURL", false ) ) { @@ -550,10 +550,10 @@ bool clientApp::doIt() for ( int i = 1; i <= argc - 2; i++ ) srcLst.append( args->url(i) ); - KIO::Job * job = KIO::move( srcLst, args->url(argc - 1) ); + TDEIO::Job * job = TDEIO::move( srcLst, args->url(argc - 1) ); if ( !s_interactive ) job->setInteractive( false ); - connect( job, TQT_SIGNAL( result( KIO::Job * ) ), &app, TQT_SLOT( slotResult( KIO::Job * ) ) ); + connect( job, TQT_SIGNAL( result( TDEIO::Job * ) ), &app, TQT_SLOT( slotResult( TDEIO::Job * ) ) ); app.exec(); return m_ok; } @@ -585,10 +585,10 @@ bool clientApp::doIt() return m_ok; // AK - really okay? KURL dsturl; dsturl.setPath( dst ); - KIO::Job * job = KIO::copy( srcLst, dsturl ); + TDEIO::Job * job = TDEIO::copy( srcLst, dsturl ); if ( !s_interactive ) job->setInteractive( false ); - connect( job, TQT_SIGNAL( result( KIO::Job * ) ), &app, TQT_SLOT( slotResult( KIO::Job * ) ) ); + connect( job, TQT_SIGNAL( result( TDEIO::Job * ) ), &app, TQT_SLOT( slotResult( TDEIO::Job * ) ) ); app.exec(); return m_ok; } @@ -599,10 +599,10 @@ bool clientApp::doIt() for ( int i = 1; i <= argc - 2; i++ ) srcLst.append( args->url(i) ); - KIO::Job * job = KIO::copy( srcLst, args->url(argc - 1) ); + TDEIO::Job * job = TDEIO::copy( srcLst, args->url(argc - 1) ); if ( !s_interactive ) job->setInteractive( false ); - connect( job, TQT_SIGNAL( result( KIO::Job * ) ), &app, TQT_SLOT( slotResult( KIO::Job * ) ) ); + connect( job, TQT_SIGNAL( result( TDEIO::Job * ) ), &app, TQT_SLOT( slotResult( TDEIO::Job * ) ) ); app.exec(); return m_ok; } @@ -636,7 +636,7 @@ bool clientApp::doIt() return true; } -void clientApp::slotResult( KIO::Job * job ) +void clientApp::slotResult( TDEIO::Job * job ) { if (job->error() && s_interactive) job->showErrorDialog(); diff --git a/konqueror/client/kfmclient.h b/konqueror/client/kfmclient.h index 01f5f16b4..54ffcfb53 100644 --- a/konqueror/client/kfmclient.h +++ b/konqueror/client/kfmclient.h @@ -37,7 +37,7 @@ public: static bool openProfile(const TQString & profile, const TQString & url, const TQString & mimetype = TQString::null); protected slots: - void slotResult( KIO::Job * ); + void slotResult( TDEIO::Job * ); void delayedQuit(); void slotDialogCanceled(); -- cgit v1.2.1