diff options
author | Timothy Pearson <[email protected]> | 2013-01-25 00:37:49 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-01-25 00:37:49 -0600 |
commit | f8069e2ea048f2657cc417d83820576ec55c181b (patch) | |
tree | cbc5bf540866934a91e0f33b260fc7a25e191fad /kioslave/svn/svnhelper/kio_svn_helper.cpp | |
parent | e6aaa3624cc6179b82a9bfff1760e742a669064c (diff) | |
download | tdesdk-f8069e2ea048f2657cc417d83820576ec55c181b.tar.gz tdesdk-f8069e2ea048f2657cc417d83820576ec55c181b.zip |
Rename KCModule, KConfig, KIO, KServer, and KSocket to avoid conflicts with KDE4
Diffstat (limited to 'kioslave/svn/svnhelper/kio_svn_helper.cpp')
-rw-r--r-- | kioslave/svn/svnhelper/kio_svn_helper.cpp | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/kioslave/svn/svnhelper/kio_svn_helper.cpp b/kioslave/svn/svnhelper/kio_svn_helper.cpp index ec938c39..64b51d1a 100644 --- a/kioslave/svn/svnhelper/kio_svn_helper.cpp +++ b/kioslave/svn/svnhelper/kio_svn_helper.cpp @@ -66,9 +66,9 @@ SvnHelper::SvnHelper():TDEApplication() { int rev = -1; kdDebug(7128) << "updating : " << (*it).prettyURL() << endl; s << cmd << *it << rev << TQString( "HEAD" ); - KIO::SimpleJob * job = KIO::special(servURL, parms, true); - connect( job, TQT_SIGNAL( result( KIO::Job * ) ), this, TQT_SLOT( slotResult( KIO::Job * ) ) ); - KIO::NetAccess::synchronousRun( job, 0 ); + TDEIO::SimpleJob * job = TDEIO::special(servURL, parms, true); + connect( job, TQT_SIGNAL( result( TDEIO::Job * ) ), this, TQT_SLOT( slotResult( TDEIO::Job * ) ) ); + TDEIO::NetAccess::synchronousRun( job, 0 ); } } else if (args->isSet("c")) { kdDebug(7128) << "commit " << list << endl; @@ -81,9 +81,9 @@ SvnHelper::SvnHelper():TDEApplication() { kdDebug(7128) << "commiting : " << (*it).prettyURL() << endl; s << *it; } - KIO::SimpleJob * job = KIO::special(servURL, parms, true); - connect( job, TQT_SIGNAL( result( KIO::Job * ) ), this, TQT_SLOT( slotResult( KIO::Job * ) ) ); - KIO::NetAccess::synchronousRun( job, 0 ); + TDEIO::SimpleJob * job = TDEIO::special(servURL, parms, true); + connect( job, TQT_SIGNAL( result( TDEIO::Job * ) ), this, TQT_SLOT( slotResult( TDEIO::Job * ) ) ); + TDEIO::NetAccess::synchronousRun( job, 0 ); } else if (args->isSet("a")) { kdDebug(7128) << "add " << list << endl; KURL servURL = "svn+http://this_is_a_fake_URL_and_this_is_normal/"; @@ -93,9 +93,9 @@ SvnHelper::SvnHelper():TDEApplication() { int cmd = 6; kdDebug(7128) << "adding : " << (*it).prettyURL() << endl; s << cmd << *it; - KIO::SimpleJob * job = KIO::special(servURL, parms, true); - connect( job, TQT_SIGNAL( result( KIO::Job * ) ), this, TQT_SLOT( slotResult( KIO::Job * ) ) ); - KIO::NetAccess::synchronousRun( job, 0 ); + TDEIO::SimpleJob * job = TDEIO::special(servURL, parms, true); + connect( job, TQT_SIGNAL( result( TDEIO::Job * ) ), this, TQT_SLOT( slotResult( TDEIO::Job * ) ) ); + TDEIO::NetAccess::synchronousRun( job, 0 ); } } else if (args->isSet("D")) { kdDebug(7128) << "diff " << list << endl; @@ -110,9 +110,9 @@ SvnHelper::SvnHelper():TDEApplication() { TQString revkind1 = "BASE"; TQString revkind2 = "WORKING"; s << cmd << *it << *it << rev1 << revkind1 << rev2 << revkind2 << true ; - KIO::SimpleJob * job = KIO::special(servURL, parms, true); - connect( job, TQT_SIGNAL( result( KIO::Job * ) ), this, TQT_SLOT( slotResult( KIO::Job * ) ) ); - KIO::NetAccess::synchronousRun( job, 0 ); + TDEIO::SimpleJob * job = TDEIO::special(servURL, parms, true); + connect( job, TQT_SIGNAL( result( TDEIO::Job * ) ), this, TQT_SLOT( slotResult( TDEIO::Job * ) ) ); + TDEIO::NetAccess::synchronousRun( job, 0 ); if ( diffresult.count() > 0 ) { //check kompare is available if ( !KStandardDirs::findExe( "kompare" ).isNull() ) { @@ -151,9 +151,9 @@ SvnHelper::SvnHelper():TDEApplication() { kdDebug(7128) << "deleting : " << (*it).prettyURL() << endl; s << *it; } - KIO::SimpleJob * job = KIO::special(servURL, parms, true); - connect( job, TQT_SIGNAL( result( KIO::Job * ) ), this, TQT_SLOT( slotResult( KIO::Job * ) ) ); - KIO::NetAccess::synchronousRun( job, 0 ); + TDEIO::SimpleJob * job = TDEIO::special(servURL, parms, true); + connect( job, TQT_SIGNAL( result( TDEIO::Job * ) ), this, TQT_SLOT( slotResult( TDEIO::Job * ) ) ); + TDEIO::NetAccess::synchronousRun( job, 0 ); } else if (args->isSet("s")) { kdDebug(7128) << "switch " << list << endl; SubversionSwitch d; @@ -178,9 +178,9 @@ SvnHelper::SvnHelper():TDEApplication() { s << recurse; s << revnumber; s << revkind; - KIO::SimpleJob * job = KIO::special(servURL, parms, true); - connect( job, TQT_SIGNAL( result( KIO::Job * ) ), this, TQT_SLOT( slotResult( KIO::Job * ) ) ); - KIO::NetAccess::synchronousRun( job, 0 ); + TDEIO::SimpleJob * job = TDEIO::special(servURL, parms, true); + connect( job, TQT_SIGNAL( result( TDEIO::Job * ) ), this, TQT_SLOT( slotResult( TDEIO::Job * ) ) ); + TDEIO::NetAccess::synchronousRun( job, 0 ); } } } else if (args->isSet("r")) { @@ -194,9 +194,9 @@ SvnHelper::SvnHelper():TDEApplication() { kdDebug(7128) << "reverting : " << (*it).prettyURL() << endl; s << *it; } - KIO::SimpleJob * job = KIO::special(servURL, parms, true); - connect( job, TQT_SIGNAL( result( KIO::Job * ) ), this, TQT_SLOT( slotResult( KIO::Job * ) ) ); - KIO::NetAccess::synchronousRun( job, 0 ); + TDEIO::SimpleJob * job = TDEIO::special(servURL, parms, true); + connect( job, TQT_SIGNAL( result( TDEIO::Job * ) ), this, TQT_SLOT( slotResult( TDEIO::Job * ) ) ); + TDEIO::NetAccess::synchronousRun( job, 0 ); } else if (args->isSet("C")) { kdDebug(7128) << "checkout " << list << endl; SubversionCheckout d; @@ -219,9 +219,9 @@ SvnHelper::SvnHelper():TDEApplication() { s << rev; s << revkind; kdDebug(7128) << "checkouting : " << d.url->url() << " into " << (*it).prettyURL() << " at rev : " << rev << " or " << revkind << endl; - KIO::SimpleJob * job = KIO::special(servURL, parms, true); - connect( job, TQT_SIGNAL( result( KIO::Job * ) ), this, TQT_SLOT( slotResult( KIO::Job * ) ) ); - KIO::NetAccess::synchronousRun( job, 0 ); + TDEIO::SimpleJob * job = TDEIO::special(servURL, parms, true); + connect( job, TQT_SIGNAL( result( TDEIO::Job * ) ), this, TQT_SLOT( slotResult( TDEIO::Job * ) ) ); + TDEIO::NetAccess::synchronousRun( job, 0 ); } } } else { @@ -230,11 +230,11 @@ SvnHelper::SvnHelper():TDEApplication() { TQTimer::singleShot( 0, this, TQT_SLOT( finished() ) ); } -void SvnHelper::slotResult( KIO::Job* job ) { +void SvnHelper::slotResult( TDEIO::Job* job ) { if ( job->error() ) job->showErrorDialog( ); - KIO::MetaData ma = job->metaData(); + TDEIO::MetaData ma = job->metaData(); TQValueList<TQString> keys = ma.keys(); qHeapSort( keys ); TQValueList<TQString>::Iterator begin = keys.begin(), end = keys.end(), it; |