Rename KCModule, KConfig, KIO, KServer, and KSocket to avoid conflicts with KDE4

pull/1/head
Timothy Pearson 11 years ago
parent c9f212164b
commit f6d535927f

@ -2570,7 +2570,7 @@ VERSION 0.9-beta1:
CHG: amaroK moved out of kdenonbeta. we are now member of KDE Extra Gear 1 CHG: amaroK moved out of kdenonbeta. we are now member of KDE Extra Gear 1
ADD: on-screen-display (OSD), shows an overlay with information on the currently playing track ADD: on-screen-display (OSD), shows an overlay with information on the currently playing track
CHG: use KMultiTabBar for browser selection CHG: use KMultiTabBar for browser selection
CHG: migrated settings system to KConfig XT CHG: migrated settings system to TDEConfig XT
ADD: playlist columns for length and bitrate ADD: playlist columns for length and bitrate
ADD: merged new audio engine in. this provides a generic interface class, with multiple ADD: merged new audio engine in. this provides a generic interface class, with multiple
backends. right now there is a backend for aRts and one for GStreamer (still rudimentary) backends. right now there is a backend for aRts and one for GStreamer (still rudimentary)

@ -199,7 +199,7 @@ Usage of Amarok::config()
We provide this method for convenience, but it is important to use it properly. By We provide this method for convenience, but it is important to use it properly. By
inspection, we can see that we may produce very obscure bugs in the wrong case: inspection, we can see that we may produce very obscure bugs in the wrong case:
| KConfig | TDEConfig
| *config( const QString &group ) | *config( const QString &group )
| { | {
| //Slightly more useful config() that allows setting the group simultaneously | //Slightly more useful config() that allows setting the group simultaneously
@ -212,14 +212,14 @@ Take the following example:
| void | void
| f1() | f1()
| { | {
| KConfig *config = Amarok::config( "Group 2" ); | TDEConfig *config = Amarok::config( "Group 2" );
| config->writeEntry( "Group 2 Variable", true ); | config->writeEntry( "Group 2 Variable", true );
| } | }
| |
| void | void
| doStuff() | doStuff()
| { | {
| KConfig *config = Amarok::config( "Group 1" ); | TDEConfig *config = Amarok::config( "Group 1" );
| f1(); | f1();
| config->writeEntry( "Group 1 Variable", true ); | config->writeEntry( "Group 1 Variable", true );
| } | }

@ -149,7 +149,7 @@ void Options2::uninstallPushButton_clicked()
KURL themeDir( KURL::fromPathOrURL( Amarok::saveLocation( "themes/" ) ) ); KURL themeDir( KURL::fromPathOrURL( Amarok::saveLocation( "themes/" ) ) );
themeDir.addPath( name ); themeDir.addPath( name );
if( !KIO::NetAccess::del( themeDir, 0 ) ) { if( !TDEIO::NetAccess::del( themeDir, 0 ) ) {
KMessageBox::sorry( 0, i18n( "<p>Could not uninstall this theme.</p>" KMessageBox::sorry( 0, i18n( "<p>Could not uninstall this theme.</p>"
"<p>You may not have sufficient permissions to delete the folder <strong>%1<strong></p>." "<p>You may not have sufficient permissions to delete the folder <strong>%1<strong></p>."
).arg( themeDir.isLocalFile() ? themeDir.path() : themeDir.url() ) ); ).arg( themeDir.isLocalFile() ? themeDir.path() : themeDir.url() ) );

@ -14,7 +14,7 @@
#include "amarok_export.h" #include "amarok_export.h"
class KActionCollection; class KActionCollection;
class KConfig; class TDEConfig;
class TQColor; class TQColor;
class TQDateTime; class TQDateTime;
class TQEvent; class TQEvent;
@ -24,7 +24,7 @@ class TQWidget;
class DynamicMode; class DynamicMode;
class TQListView; class TQListView;
class TQListViewItem; class TQListViewItem;
namespace KIO { class Job; } namespace TDEIO { class Job; }
namespace Amarok namespace Amarok
{ {
@ -54,13 +54,13 @@ namespace Amarok
inline TQString xmlVersion() { return "2.4"; } inline TQString xmlVersion() { return "2.4"; }
/** /**
* Convenience function to return the TDEApplication instance KConfig object * Convenience function to return the TDEApplication instance TDEConfig object
* pre-set to a specific group. * pre-set to a specific group.
* @param group Will pre-set the KConfig object to this group. * @param group Will pre-set the TDEConfig object to this group.
*/ */
/* FIXME: This function can lead to very bizarre and hard to figure bugs. /* FIXME: This function can lead to very bizarre and hard to figure bugs.
While we don`t fix it properly, use it like this: amarok::config( Group )->readNumEntry( ... ) */ While we don`t fix it properly, use it like this: amarok::config( Group )->readNumEntry( ... ) */
KConfig *config( const TQString &group = "General" ); //defined in app.cpp TDEConfig *config( const TQString &group = "General" ); //defined in app.cpp
/** /**
* @return the KActionCollection used by Amarok * @return the KActionCollection used by Amarok
@ -122,7 +122,7 @@ namespace Amarok
*/ */
LIBAMAROK_EXPORT TQString saveLocation( const TQString &directory = TQString() ); //defined in collectionreader.cpp LIBAMAROK_EXPORT TQString saveLocation( const TQString &directory = TQString() ); //defined in collectionreader.cpp
KIO::Job *trashFiles( const KURL::List &files ); //defined in app.cpp TDEIO::Job *trashFiles( const KURL::List &files ); //defined in app.cpp
/** /**
* For recursively expanding the contents of a directory into a KURL::List * For recursively expanding the contents of a directory into a KURL::List
@ -155,7 +155,7 @@ namespace Amarok
#if TDE_VERSION < TDE_MAKE_VERSION(3,5,0) #if TDE_VERSION < TDE_MAKE_VERSION(3,5,0)
return url; return url;
#else #else
return KIO::NetAccess::mostLocalURL( url, mainWindow() ); return TDEIO::NetAccess::mostLocalURL( url, mainWindow() );
#endif #endif
} }

@ -937,7 +937,7 @@ namespace Amarok
TQString DcopScriptHandler::readConfig(const TQString& key) TQString DcopScriptHandler::readConfig(const TQString& key)
{ {
TQString cleanKey = key; TQString cleanKey = key;
KConfigSkeletonItem* configItem = AmarokConfig::self()->findItem(cleanKey.remove(' ')); TDEConfigSkeletonItem* configItem = AmarokConfig::self()->findItem(cleanKey.remove(' '));
if (configItem) if (configItem)
return configItem->property().toString(); return configItem->property().toString();
else else
@ -947,7 +947,7 @@ namespace Amarok
TQStringList DcopScriptHandler::readListConfig(const TQString& key) TQStringList DcopScriptHandler::readListConfig(const TQString& key)
{ {
TQString cleanKey = key; TQString cleanKey = key;
KConfigSkeletonItem* configItem = AmarokConfig::self()->findItem(cleanKey.remove(' ')); TDEConfigSkeletonItem* configItem = AmarokConfig::self()->findItem(cleanKey.remove(' '));
TQStringList stringList; TQStringList stringList;
if(configItem) if(configItem)
{ {

@ -26,7 +26,7 @@
static inline uint myMax( uint v1, uint v2 ) { return v1 > v2 ? v1 : v2; } static inline uint myMax( uint v1, uint v2 ) { return v1 > v2 ? v1 : v2; }
namespace Amarok { extern KConfig *config( const TQString& ); } namespace Amarok { extern TDEConfig *config( const TQString& ); }
BlockAnalyzer::BlockAnalyzer( TQWidget *parent ) BlockAnalyzer::BlockAnalyzer( TQWidget *parent )

@ -1132,11 +1132,11 @@ void App::slotConfigAmarok( const TQCString& page )
{ {
DEBUG_THREAD_FUNC_INFO DEBUG_THREAD_FUNC_INFO
AmarokConfigDialog* dialog = static_cast<AmarokConfigDialog*>( KConfigDialog::exists( "settings" ) ); AmarokConfigDialog* dialog = static_cast<AmarokConfigDialog*>( TDEConfigDialog::exists( "settings" ) );
if( !dialog ) if( !dialog )
{ {
//KConfigDialog didn't find an instance of this dialog, so lets create it : //TDEConfigDialog didn't find an instance of this dialog, so lets create it :
dialog = new AmarokConfigDialog( m_pPlaylistWindow, "settings", AmarokConfig::self() ); dialog = new AmarokConfigDialog( m_pPlaylistWindow, "settings", AmarokConfig::self() );
connect( dialog, TQT_SIGNAL(settingsChanged()), TQT_SLOT(applySettings()) ); connect( dialog, TQT_SIGNAL(settingsChanged()), TQT_SLOT(applySettings()) );
@ -1186,7 +1186,7 @@ void App::firstRunWizard()
FirstRunWizard wizard; FirstRunWizard wizard;
setTopWidget( &wizard ); setTopWidget( &wizard );
KConfigDialogManager* config = new KConfigDialogManager(&wizard, AmarokConfig::self(), "wizardconfig"); TDEConfigDialogManager* config = new TDEConfigDialogManager(&wizard, AmarokConfig::self(), "wizardconfig");
config->updateWidgets(); config->updateWidgets();
// connect(config, TQT_SIGNAL(settingsChanged()), TQT_SLOT(updateSettings())); // connect(config, TQT_SIGNAL(settingsChanged()), TQT_SLOT(updateSettings()));
wizard.setCaption( makeStdCaption( i18n( "First-Run Wizard" ) ) ); wizard.setCaption( makeStdCaption( i18n( "First-Run Wizard" ) ) );
@ -1230,15 +1230,15 @@ void App::setMoodbarPrefs( bool show, bool moodier, int alter, bool withMusic )
emit moodbarPrefs( show, moodier, alter, withMusic ); emit moodbarPrefs( show, moodier, alter, withMusic );
} }
KIO::Job *App::trashFiles( const KURL::List &files ) TDEIO::Job *App::trashFiles( const KURL::List &files )
{ {
#if KDE_IS_VERSION( 3, 3, 91 ) #if KDE_IS_VERSION( 3, 3, 91 )
KIO::Job *job = KIO::trash( files, true /*show progress*/ ); TDEIO::Job *job = TDEIO::trash( files, true /*show progress*/ );
Amarok::StatusBar::instance()->newProgressOperation( job ).setDescription( i18n("Moving files to trash") ); Amarok::StatusBar::instance()->newProgressOperation( job ).setDescription( i18n("Moving files to trash") );
connect( job, TQT_SIGNAL( result( KIO::Job* ) ), this, TQT_SLOT( slotTrashResult( KIO::Job* ) ) ); connect( job, TQT_SIGNAL( result( TDEIO::Job* ) ), this, TQT_SLOT( slotTrashResult( TDEIO::Job* ) ) );
return job; return job;
#else #else
KIO::Job* job = KIO::move( files, TDEGlobalSettings::trashPath() ); TDEIO::Job* job = TDEIO::move( files, TDEGlobalSettings::trashPath() );
return job; return job;
#endif #endif
} }
@ -1264,7 +1264,7 @@ void App::setRating( int n )
Playlist::instance()->setSelectedRatings( n ); Playlist::instance()->setSelectedRatings( n );
} }
void App::slotTrashResult( KIO::Job *job ) void App::slotTrashResult( TDEIO::Job *job )
{ {
if( job->error() ) if( job->error() )
job->showErrorDialog( PlaylistWindow::self() ); job->showErrorDialog( PlaylistWindow::self() );
@ -1302,7 +1302,7 @@ namespace Amarok
return pApp->playlistWindow()->actionCollection(); return pApp->playlistWindow()->actionCollection();
} }
KConfig *config( const TQString &group ) TDEConfig *config( const TQString &group )
{ {
//Slightly more useful config() that allows setting the group simultaneously //Slightly more useful config() that allows setting the group simultaneously
kapp->config()->setGroup( group ); kapp->config()->setGroup( group );
@ -1488,7 +1488,7 @@ namespace Amarok
void setUseRatings( bool use ) { App::instance()->setUseRatings( use ); } void setUseRatings( bool use ) { App::instance()->setUseRatings( use ); }
void setMoodbarPrefs( bool show, bool moodier, int alter, bool withMusic ) void setMoodbarPrefs( bool show, bool moodier, int alter, bool withMusic )
{ App::instance()->setMoodbarPrefs( show, moodier, alter, withMusic ); } { App::instance()->setMoodbarPrefs( show, moodier, alter, withMusic ); }
KIO::Job *trashFiles( const KURL::List &files ) { return App::instance()->trashFiles( files ); } TDEIO::Job *trashFiles( const KURL::List &files ) { return App::instance()->trashFiles( files ); }
} }
#include "app.moc" #include "app.moc"

@ -28,10 +28,10 @@ namespace Amarok {
class TrayIcon; class TrayIcon;
} }
namespace KIO { class Job; } namespace TDEIO { class Job; }
class KActionCollection; class KActionCollection;
class KConfig; class TDEConfig;
class TDEGlobalAccel; class TDEGlobalAccel;
class MetaBundle; class MetaBundle;
class PlayerWidget; class PlayerWidget;
@ -91,11 +91,11 @@ class LIBAMAROK_EXPORT App : public TDEApplication, public EngineObserver
void setUseScores( bool use ); void setUseScores( bool use );
void setUseRatings( bool use ); void setUseRatings( bool use );
void setMoodbarPrefs( bool show, bool moodier, int alter, bool withMusic ); void setMoodbarPrefs( bool show, bool moodier, int alter, bool withMusic );
KIO::Job *trashFiles( const KURL::List &files ); TDEIO::Job *trashFiles( const KURL::List &files );
void quit(); void quit();
private slots: private slots:
void slotTrashResult( KIO::Job *job ); void slotTrashResult( TDEIO::Job *job );
private: private:
/** Workaround for HyperThreading CPU's, @see BUG 99199 */ /** Workaround for HyperThreading CPU's, @see BUG 99199 */

@ -115,7 +115,7 @@ BrowserBar::BrowserBar( TQWidget *parent )
BrowserBar::~BrowserBar() BrowserBar::~BrowserBar()
{ {
KConfig* const config = Amarok::config( "BrowserBar" ); TDEConfig* const config = Amarok::config( "BrowserBar" );
config->writeEntry( "CurrentPane", m_currentIndex != -1 ? TQString(currentBrowser()->name()) : TQString() ); config->writeEntry( "CurrentPane", m_currentIndex != -1 ? TQString(currentBrowser()->name()) : TQString() );
config->writeEntry( "Width", m_browserBox->width() ); config->writeEntry( "Width", m_browserBox->width() );
} }

@ -77,7 +77,7 @@ extern "C"
using namespace CollectionBrowserIds; using namespace CollectionBrowserIds;
namespace Amarok { extern KConfig *config( const TQString& ); } namespace Amarok { extern TDEConfig *config( const TQString& ); }
class CoverFetcher; class CoverFetcher;
@ -460,7 +460,7 @@ CollectionView::CollectionView( CollectionBrowser* parent )
setAllColumnsShowFocus( true ); setAllColumnsShowFocus( true );
//<READ CONFIG> //<READ CONFIG>
KConfig* config = Amarok::config( "Collection Browser" ); TDEConfig* config = Amarok::config( "Collection Browser" );
m_cat1 = config->readNumEntry( "Category1", IdArtist ); m_cat1 = config->readNumEntry( "Category1", IdArtist );
m_cat2 = config->readNumEntry( "Category2", IdAlbum ); m_cat2 = config->readNumEntry( "Category2", IdAlbum );
m_cat3 = config->readNumEntry( "Category3", IdNone ); m_cat3 = config->readNumEntry( "Category3", IdNone );
@ -530,7 +530,7 @@ CollectionView::CollectionView( CollectionBrowser* parent )
CollectionView::~CollectionView() { CollectionView::~CollectionView() {
DEBUG_FUNC_INFO DEBUG_FUNC_INFO
KConfig* const config = Amarok::config( "Collection Browser" ); TDEConfig* const config = Amarok::config( "Collection Browser" );
config->writeEntry( "Category1", m_cat1 ); config->writeEntry( "Category1", m_cat1 );
config->writeEntry( "Category2", m_cat2 ); config->writeEntry( "Category2", m_cat2 );
config->writeEntry( "Category3", m_cat3 ); config->writeEntry( "Category3", m_cat3 );

@ -1858,7 +1858,7 @@ CollectionDB::fetchImage( const KURL& url, TQString &/*tmpFile*/ )
if ( url.protocol() != "file" ) if ( url.protocol() != "file" )
{ {
TQString tmpFile; TQString tmpFile;
KIO::NetAccess::download( url, tmpFile, 0 ); //TODO set 0 to the window, though it probably doesn't really matter TDEIO::NetAccess::download( url, tmpFile, 0 ); //TODO set 0 to the window, though it probably doesn't really matter
return TQImage( tmpFile ); return TQImage( tmpFile );
} }
else else
@ -1872,7 +1872,7 @@ CollectionDB::setAlbumImage( const TQString& artist, const TQString& album, cons
{ {
TQString tmpFile; TQString tmpFile;
bool success = setAlbumImage( artist, album, fetchImage(url, tmpFile) ); bool success = setAlbumImage( artist, album, fetchImage(url, tmpFile) );
KIO::NetAccess::removeTempFile( tmpFile ); //only removes file if it was created with NetAccess TDEIO::NetAccess::removeTempFile( tmpFile ); //only removes file if it was created with NetAccess
return success; return success;
} }
@ -1941,9 +1941,9 @@ CollectionDB::podcastImage( const TQString &remoteURL, const bool withShadow, ui
const KURL url = KURL::fromPathOrURL( remoteURL ); const KURL url = KURL::fromPathOrURL( remoteURL );
if( url.isValid() ) //KIO crashes with invalid URLs if( url.isValid() ) //KIO crashes with invalid URLs
{ {
KIO::Job *job = KIO::storedGet( url, false, false ); TDEIO::Job *job = TDEIO::storedGet( url, false, false );
m_podcastImageJobs[job] = remoteURL; m_podcastImageJobs[job] = remoteURL;
connect( job, TQT_SIGNAL( result( KIO::Job* ) ), TQT_SLOT( podcastImageResult( KIO::Job* ) ) ); connect( job, TQT_SIGNAL( result( TDEIO::Job* ) ), TQT_SLOT( podcastImageResult( TDEIO::Job* ) ) );
} }
} }
@ -1954,12 +1954,12 @@ CollectionDB::podcastImage( const TQString &remoteURL, const bool withShadow, ui
} }
void void
CollectionDB::podcastImageResult( KIO::Job *gjob ) CollectionDB::podcastImageResult( TDEIO::Job *gjob )
{ {
TQString url = m_podcastImageJobs[gjob]; TQString url = m_podcastImageJobs[gjob];
m_podcastImageJobs.remove( gjob ); m_podcastImageJobs.remove( gjob );
KIO::StoredTransferJob *job = dynamic_cast<KIO::StoredTransferJob *>( gjob ); TDEIO::StoredTransferJob *job = dynamic_cast<TDEIO::StoredTransferJob *>( gjob );
if( !job ) if( !job )
{ {
debug() << "connected to wrong job type" << endl; debug() << "connected to wrong job type" << endl;
@ -3964,7 +3964,7 @@ CollectionDB::migrateFile( const TQString &oldURL, const TQString &newURL )
} }
void void
CollectionDB::fileOperationResult( KIO::Job *job ) // slot CollectionDB::fileOperationResult( TDEIO::Job *job ) // slot
{ {
if(job->error()) if(job->error())
{ {
@ -4007,22 +4007,22 @@ CollectionDB::organizeFile( const KURL &src, OrganizeCollectionDialog &dialog, b
} while( TQFile::exists( tmp ) ); } while( TQFile::exists( tmp ) );
tmpSrc = KURL::fromPathOrURL( tmp ); tmpSrc = KURL::fromPathOrURL( tmp );
KIO::FileCopyJob *job = 0; TDEIO::FileCopyJob *job = 0;
if( copy ) if( copy )
{ {
job = KIO::file_copy( src, tmpSrc, -1, false, false, false ); job = TDEIO::file_copy( src, tmpSrc, -1, false, false, false );
} }
else else
{ {
job = KIO::file_move( src, tmpSrc, -1, false, false, false ); job = TDEIO::file_move( src, tmpSrc, -1, false, false, false );
} }
connect( job, TQT_SIGNAL(result( KIO::Job * )), TQT_SLOT(fileOperationResult( KIO::Job * )) ); connect( job, TQT_SIGNAL(result( TDEIO::Job * )), TQT_SLOT(fileOperationResult( TDEIO::Job * )) );
m_waitForFileOperation = true; m_waitForFileOperation = true;
while( m_waitForFileOperation ) while( m_waitForFileOperation )
{ {
if( m_moveFileJobCancelled ) if( m_moveFileJobCancelled )
{ {
disconnect( job, TQT_SIGNAL(result( KIO::Job * )), this, TQT_SLOT(fileOperationResult( KIO::Job * )) ); disconnect( job, TQT_SIGNAL(result( TDEIO::Job * )), this, TQT_SLOT(fileOperationResult( TDEIO::Job * )) );
TQString partFile = TQString( "%1.part" ).arg( (job->destURL()).path() ); TQString partFile = TQString( "%1.part" ).arg( (job->destURL()).path() );
job->kill(); job->kill();
@ -4134,22 +4134,22 @@ CollectionDB::moveFile( const TQString &src, const TQString &dest, bool overwrit
} }
m_fileOperationFailed = false; m_fileOperationFailed = false;
KIO::FileCopyJob *job = 0; TDEIO::FileCopyJob *job = 0;
if( copy ) if( copy )
{ {
job = KIO::file_copy( srcURL, dstURL, -1, overwrite, false, false ); job = TDEIO::file_copy( srcURL, dstURL, -1, overwrite, false, false );
} }
else else
{ {
job = KIO::file_move( srcURL, dstURL, -1, overwrite, false, false ); job = TDEIO::file_move( srcURL, dstURL, -1, overwrite, false, false );
} }
connect( job, TQT_SIGNAL(result( KIO::Job * )), TQT_SLOT(fileOperationResult( KIO::Job * )) ); connect( job, TQT_SIGNAL(result( TDEIO::Job * )), TQT_SLOT(fileOperationResult( TDEIO::Job * )) );
m_waitForFileOperation = true; m_waitForFileOperation = true;
while( m_waitForFileOperation ) while( m_waitForFileOperation )
{ {
if( m_moveFileJobCancelled ) if( m_moveFileJobCancelled )
{ {
disconnect( job, TQT_SIGNAL(result( KIO::Job * )), this, TQT_SLOT(fileOperationResult( KIO::Job * )) ); disconnect( job, TQT_SIGNAL(result( TDEIO::Job * )), this, TQT_SLOT(fileOperationResult( TDEIO::Job * )) );
TQString partFile = TQString( "%1.part" ).arg( (job->destURL()).path() ); TQString partFile = TQString( "%1.part" ).arg( (job->destURL()).path() );
job->kill(); job->kill();
@ -5413,7 +5413,7 @@ CollectionDB::updateGroupBy()
if ( version && version < 32 ) if ( version && version < 32 )
{ {
KConfig* config = Amarok::config( "Collection Browser" ); TDEConfig* config = Amarok::config( "Collection Browser" );
int m_cat1 = config->readNumEntry( "Category1" ); int m_cat1 = config->readNumEntry( "Category1" );
int m_cat2 = config->readNumEntry( "Category2" ); int m_cat2 = config->readNumEntry( "Category2" );
int m_cat3 = config->readNumEntry( "Category3" ); int m_cat3 = config->readNumEntry( "Category3" );
@ -5440,14 +5440,14 @@ CollectionDB::updateStatsTables()
debug() << "Creating a backup of the database in " debug() << "Creating a backup of the database in "
<< Amarok::saveLocation()+"collection-backup.db" << '.' << endl; << Amarok::saveLocation()+"collection-backup.db" << '.' << endl;
bool copied = KIO::NetAccess::file_copy( Amarok::saveLocation()+"collection.db", bool copied = TDEIO::NetAccess::file_copy( Amarok::saveLocation()+"collection.db",
Amarok::saveLocation()+"collection-backup.db", Amarok::saveLocation()+"collection-backup.db",
-1 /*perms*/, true /*overwrite*/, false /*resume*/ ); -1 /*perms*/, true /*overwrite*/, false /*resume*/ );
if( !copied ) if( !copied )
{ {
debug() << "Backup failed! Perhaps the volume is not writable." << endl; debug() << "Backup failed! Perhaps the volume is not writable." << endl;
debug() << "Error was: " << KIO::NetAccess::lastErrorString() << endl; debug() << "Error was: " << TDEIO::NetAccess::lastErrorString() << endl;
} }
} }
#endif #endif

@ -30,7 +30,7 @@
#include <tqthread.h> #include <tqthread.h>
#include <tqvaluestack.h> #include <tqvaluestack.h>
namespace KIO { class Job; } namespace TDEIO { class Job; }
class DbConnection; class DbConnection;
class CoverFetcher; class CoverFetcher;
@ -429,7 +429,7 @@ class LIBAMAROK_EXPORT CollectionDB : public TQObject, public EngineObserver
//cover management methods //cover management methods
/** Returns the image from a given URL, network-transparently. /** Returns the image from a given URL, network-transparently.
* You must run KIO::NetAccess::removeTempFile( tmpFile ) when you are finished using the image; * You must run TDEIO::NetAccess::removeTempFile( tmpFile ) when you are finished using the image;
**/ **/
static TQImage fetchImage( const KURL& url, TQString &tmpFile ); static TQImage fetchImage( const KURL& url, TQString &tmpFile );
/** Saves images located on the user's filesystem */ /** Saves images located on the user's filesystem */
@ -523,8 +523,8 @@ class LIBAMAROK_EXPORT CollectionDB : public TQObject, public EngineObserver
void dirDirty( const TQString& path ); void dirDirty( const TQString& path );
void coverFetcherResult( CoverFetcher* ); void coverFetcherResult( CoverFetcher* );
void similarArtistsFetched( const TQString& artist, const TQStringList& suggestions ); void similarArtistsFetched( const TQString& artist, const TQStringList& suggestions );
void fileOperationResult( KIO::Job *job ); // moveFile depends on it void fileOperationResult( TDEIO::Job *job ); // moveFile depends on it
void podcastImageResult( KIO::Job *job ); //for fetching remote podcast images void podcastImageResult( TDEIO::Job *job ); //for fetching remote podcast images
void aftMigratePermanentTablesUrl( const TQString& oldUrl, const TQString& newUrl, const TQString& uniqueid ); //AFT-enable stats void aftMigratePermanentTablesUrl( const TQString& oldUrl, const TQString& newUrl, const TQString& uniqueid ); //AFT-enable stats
void aftMigratePermanentTablesUniqueId( const TQString& url, const TQString& oldid, const TQString& newid ); void aftMigratePermanentTablesUniqueId( const TQString& url, const TQString& oldid, const TQString& newid );
@ -640,7 +640,7 @@ class LIBAMAROK_EXPORT CollectionDB : public TQObject, public EngineObserver
bool m_moveFileJobCancelled; bool m_moveFileJobCancelled;
// for handling podcast image url redirects // for handling podcast image url redirects
TQMap<KIO::Job *, TQString> m_podcastImageJobs; TQMap<TDEIO::Job *, TQString> m_podcastImageJobs;
// protect against multiple simultaneous queries/inserts // protect against multiple simultaneous queries/inserts
TQMutex m_mutex; TQMutex m_mutex;

@ -79,8 +79,8 @@ int AmarokConfigDialog::s_currentPage = 0;
// PUBLIC // PUBLIC
////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////
AmarokConfigDialog::AmarokConfigDialog( TQWidget *parent, const char* name, KConfigSkeleton *config ) AmarokConfigDialog::AmarokConfigDialog( TQWidget *parent, const char* name, TDEConfigSkeleton *config )
: KConfigDialog( parent, name, config ) : TDEConfigDialog( parent, name, config )
, m_engineConfig( 0 ) , m_engineConfig( 0 )
, m_opt4( 0 ) , m_opt4( 0 )
{ {
@ -219,13 +219,13 @@ AmarokConfigDialog::~AmarokConfigDialog()
} }
/** Reimplemented from KConfigDialog */ /** Reimplemented from TDEConfigDialog */
void AmarokConfigDialog::addPage( TQWidget *page, const TQString &itemName, const TQString &pixmapName, const TQString &header, bool manage ) void AmarokConfigDialog::addPage( TQWidget *page, const TQString &itemName, const TQString &pixmapName, const TQString &header, bool manage )
{ {
// Add the widget pointer to our list, for later reference // Add the widget pointer to our list, for later reference
m_pageList << page; m_pageList << page;
KConfigDialog::addPage( page, itemName, pixmapName, header, manage ); TDEConfigDialog::addPage( page, itemName, pixmapName, header, manage );
} }
@ -234,7 +234,7 @@ void AmarokConfigDialog::showPageByName( const TQCString& page )
{ {
for( uint index = 0; index < m_pageList.count(); index++ ) { for( uint index = 0; index < m_pageList.count(); index++ ) {
if ( m_pageList[index]->name() == page ) { if ( m_pageList[index]->name() == page ) {
KConfigDialog::showPage( index ); TDEConfigDialog::showPage( index );
return; return;
} }
} }
@ -252,7 +252,7 @@ void AmarokConfigDialog::showPageByName( const TQCString& page )
void AmarokConfigDialog::updateButtons() void AmarokConfigDialog::updateButtons()
{ {
KConfigDialog::updateButtons(); TDEConfigDialog::updateButtons();
} }
/** /**

@ -31,13 +31,13 @@ namespace Amarok {
class MediumPluginManager; class MediumPluginManager;
class AmarokConfigDialog : public KConfigDialog class AmarokConfigDialog : public TDEConfigDialog
{ {
Q_OBJECT Q_OBJECT
public: public:
AmarokConfigDialog( TQWidget *parent, const char* name, KConfigSkeleton *config ); AmarokConfigDialog( TQWidget *parent, const char* name, TDEConfigSkeleton *config );
~AmarokConfigDialog(); ~AmarokConfigDialog();
void addPage( TQWidget *page, const TQString &itemName, const TQString &pixmapName, void addPage( TQWidget *page, const TQString &itemName, const TQString &pixmapName,

@ -138,7 +138,7 @@ namespace Amarok
return verboseTimeSince( dt ); return verboseTimeSince( dt );
} }
extern KConfig *config( const TQString& ); extern TDEConfig *config( const TQString& );
/** /**
* Function that must be used when separating contextBrowser escaped urls * Function that must be used when separating contextBrowser escaped urls
@ -311,7 +311,7 @@ ContextBrowser::ContextBrowser( const char *name )
m_showFavoriteAlbums = Amarok::config( "ContextBrowser" )->readBoolEntry( "ShowFavoriteAlbums", true ); m_showFavoriteAlbums = Amarok::config( "ContextBrowser" )->readBoolEntry( "ShowFavoriteAlbums", true );
// Delete folder with the cached coverimage shadow pixmaps // Delete folder with the cached coverimage shadow pixmaps
KIO::del( KURL::fromPathOrURL( Amarok::saveLocation( "covershadow-cache/" ) ), false, false ); TDEIO::del( KURL::fromPathOrURL( Amarok::saveLocation( "covershadow-cache/" ) ), false, false );
connect( this, TQT_SIGNAL( currentChanged( TQWidget* ) ), TQT_SLOT( tabChanged( TQWidget* ) ) ); connect( this, TQT_SIGNAL( currentChanged( TQWidget* ) ), TQT_SLOT( tabChanged( TQWidget* ) ) );
@ -3393,7 +3393,7 @@ ContextBrowser::lyricsResult( TQCString cXmlDoc, bool cached ) //SLOT
m_lyricCurrentUrl = el.attribute( "page_url" ); m_lyricCurrentUrl = el.attribute( "page_url" );
ScriptManager* const sm = ScriptManager::instance(); ScriptManager* const sm = ScriptManager::instance();
KConfig spec( sm->specForScript( sm->lyricsScriptRunning() ), true, false ); TDEConfig spec( sm->specForScript( sm->lyricsScriptRunning() ), true, false );
spec.setGroup( "Lyrics" ); spec.setGroup( "Lyrics" );
if ( el.attribute( "add_url" ).isEmpty() ) if ( el.attribute( "add_url" ).isEmpty() )
@ -3989,12 +3989,12 @@ void ContextBrowser::showWikipedia( const TQString &url, bool fromHistory, bool
m_wikiToolBar->setItemEnabled( WIKI_FORWARD, m_wikiForwardHistory.size() > 0 ); m_wikiToolBar->setItemEnabled( WIKI_FORWARD, m_wikiForwardHistory.size() > 0 );
m_wikiBaseUrl = m_wikiCurrentUrl.mid(0 , m_wikiCurrentUrl.find("wiki/")); m_wikiBaseUrl = m_wikiCurrentUrl.mid(0 , m_wikiCurrentUrl.find("wiki/"));
m_wikiJob = KIO::storedGet( m_wikiCurrentUrl, false, false ); m_wikiJob = TDEIO::storedGet( m_wikiCurrentUrl, false, false );
Amarok::StatusBar::instance()->newProgressOperation( m_wikiJob ) Amarok::StatusBar::instance()->newProgressOperation( m_wikiJob )
.setDescription( i18n( "Fetching Wikipedia Information" ) ); .setDescription( i18n( "Fetching Wikipedia Information" ) );
connect( m_wikiJob, TQT_SIGNAL( result( KIO::Job* ) ), TQT_SLOT( wikiResult( KIO::Job* ) ) ); connect( m_wikiJob, TQT_SIGNAL( result( TDEIO::Job* ) ), TQT_SLOT( wikiResult( TDEIO::Job* ) ) );
} }
@ -4098,7 +4098,7 @@ ContextBrowser::wikiExternalPage() //SLOT
void void
ContextBrowser::wikiResult( KIO::Job* job ) //SLOT ContextBrowser::wikiResult( TDEIO::Job* job ) //SLOT
{ {
DEBUG_BLOCK DEBUG_BLOCK
@ -4129,7 +4129,7 @@ ContextBrowser::wikiResult( KIO::Job* job ) //SLOT
if ( job != m_wikiJob ) if ( job != m_wikiJob )
return; //not the right job, so let's ignore it return; //not the right job, so let's ignore it
KIO::StoredTransferJob* const storedJob = static_cast<KIO::StoredTransferJob*>( job ); TDEIO::StoredTransferJob* const storedJob = static_cast<TDEIO::StoredTransferJob*>( job );
m_wiki = TQString( storedJob->data() ); m_wiki = TQString( storedJob->data() );
// Enable the Open in a Brower button, Disabled while loading, guz it would open wikipedia main page. // Enable the Open in a Brower button, Disabled while loading, guz it would open wikipedia main page.

@ -33,7 +33,7 @@ class KTextEdit;
class CueFile; class CueFile;
namespace Browser { class ToolBar; } namespace Browser { class ToolBar; }
namespace KIO { class Job; class TransferJob; } namespace TDEIO { class Job; class TransferJob; }
class ContextBrowser : public KTabWidget, public EngineObserver class ContextBrowser : public KTabWidget, public EngineObserver
@ -118,7 +118,7 @@ class ContextBrowser : public KTabWidget, public EngineObserver
void wikiAlbumPage(); void wikiAlbumPage();
void wikiTitlePage(); void wikiTitlePage();
void wikiExternalPage(); void wikiExternalPage();
void wikiResult( KIO::Job* job ); void wikiResult( TDEIO::Job* job );
void wikiConfigApply(); void wikiConfigApply();
void wikiConfig(); void wikiConfig();
void wikiConfigChanged( int activeItem ); void wikiConfigChanged( int activeItem );
@ -185,7 +185,7 @@ class ContextBrowser : public KTabWidget, public EngineObserver
TQStringList m_wikiForwardHistory; TQStringList m_wikiForwardHistory;
KPopupMenu* m_wikiBackPopup; KPopupMenu* m_wikiBackPopup;
KPopupMenu* m_wikiForwardPopup; KPopupMenu* m_wikiForwardPopup;
KIO::TransferJob* m_wikiJob; TDEIO::TransferJob* m_wikiJob;
Browser::ToolBar* m_wikiToolBar; Browser::ToolBar* m_wikiToolBar;
TQLineEdit* m_wikiLocaleEdit; TQLineEdit* m_wikiLocaleEdit;
TQComboBox* m_wikiLocaleCombo; TQComboBox* m_wikiLocaleCombo;

@ -234,8 +234,8 @@ CoverFetcher::startFetch()
+ "&SearchIndex=Music&ResponseGroup=Small,Images"; + "&SearchIndex=Music&ResponseGroup=Small,Images";
debug() << url << endl; debug() << url << endl;
KIO::TransferJob* job = KIO::storedGet( url, false, false ); TDEIO::TransferJob* job = TDEIO::storedGet( url, false, false );
connect( job, TQT_SIGNAL(result( KIO::Job* )), TQT_SLOT(finishedXmlFetch( KIO::Job* )) ); connect( job, TQT_SIGNAL(result( TDEIO::Job* )), TQT_SLOT(finishedXmlFetch( TDEIO::Job* )) );
Amarok::StatusBar::instance()->newProgressOperation( job ); Amarok::StatusBar::instance()->newProgressOperation( job );
} }
@ -246,7 +246,7 @@ CoverFetcher::startFetch()
////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////
void void
CoverFetcher::finishedXmlFetch( KIO::Job *job ) //SLOT CoverFetcher::finishedXmlFetch( TDEIO::Job *job ) //SLOT
{ {
DEBUG_BLOCK DEBUG_BLOCK
@ -257,7 +257,7 @@ CoverFetcher::finishedXmlFetch( KIO::Job *job ) //SLOT
return; return;
} }
if ( job ) { if ( job ) {
KIO::StoredTransferJob* const storedJob = static_cast<KIO::StoredTransferJob*>( job ); TDEIO::StoredTransferJob* const storedJob = static_cast<TDEIO::StoredTransferJob*>( job );
m_xml = TQString::fromUtf8( storedJob->data().data(), storedJob->data().size() ); m_xml = TQString::fromUtf8( storedJob->data().data(), storedJob->data().size() );
} }
@ -370,10 +370,10 @@ void CoverFetcher::parseItemNode( const TQDomNode &node )
} }
void void
CoverFetcher::finishedImageFetch( KIO::Job *job ) //SLOT CoverFetcher::finishedImageFetch( TDEIO::Job *job ) //SLOT
{ {
if( job->error() ) { if( job->error() ) {
debug() << "finishedImageFetch(): KIO::error(): " << job->error() << endl; debug() << "finishedImageFetch(): TDEIO::error(): " << job->error() << endl;
m_errors += i18n("The cover could not be retrieved."); m_errors += i18n("The cover could not be retrieved.");
@ -381,7 +381,7 @@ CoverFetcher::finishedImageFetch( KIO::Job *job ) //SLOT
return; return;
} }
m_image.loadFromData( static_cast<KIO::StoredTransferJob*>( job )->data() ); m_image.loadFromData( static_cast<TDEIO::StoredTransferJob*>( job )->data() );
if( m_image.width() <= 1 ) { if( m_image.width() <= 1 ) {
//Amazon seems to offer images of size 1x1 sometimes //Amazon seems to offer images of size 1x1 sometimes
@ -410,8 +410,8 @@ CoverFetcher::attemptAnotherFetch()
// Amazon suggested some more cover URLs to try before we // Amazon suggested some more cover URLs to try before we
// try a different query // try a different query
KIO::TransferJob* job = KIO::storedGet( KURL(m_coverUrls.front()), false, false ); TDEIO::TransferJob* job = TDEIO::storedGet( KURL(m_coverUrls.front()), false, false );
connect( job, TQT_SIGNAL(result( KIO::Job* )), TQT_SLOT(finishedImageFetch( KIO::Job* )) ); connect( job, TQT_SIGNAL(result( TDEIO::Job* )), TQT_SLOT(finishedImageFetch( TDEIO::Job* )) );
Amarok::StatusBar::instance()->newProgressOperation( job ); Amarok::StatusBar::instance()->newProgressOperation( job );
@ -662,10 +662,10 @@ CoverFetcher::finish()
} }
void void
CoverFetcher::finishWithError( const TQString &message, KIO::Job *job ) CoverFetcher::finishWithError( const TQString &message, TDEIO::Job *job )
{ {
if( job ) if( job )
warning() << message << " KIO::error(): " << job->errorText() << endl; warning() << message << " TDEIO::error(): " << job->errorText() << endl;
m_errors += message; m_errors += message;
m_success = false; m_success = false;

@ -35,7 +35,7 @@ class CoverLabel : public TQLabel {
namespace KIO { class Job; } namespace TDEIO { class Job; }
class CoverFetcher : public TQObject class CoverFetcher : public TQObject
{ {
@ -73,8 +73,8 @@ signals:
void result( CoverFetcher* ); void result( CoverFetcher* );
private slots: private slots:
void finishedXmlFetch( KIO::Job* job ); void finishedXmlFetch( TDEIO::Job* job );
void finishedImageFetch( KIO::Job* job ); void finishedImageFetch( TDEIO::Job* job );
void changeLocale( int id ); void changeLocale( int id );
private: private:
@ -107,7 +107,7 @@ private:
void parseItemNode( const TQDomNode &node ); void parseItemNode( const TQDomNode &node );
/// The fetch failed, finish up and log an error message /// The fetch failed, finish up and log an error message
void finishWithError( const TQString &message, KIO::Job *job = 0 ); void finishWithError( const TQString &message, TDEIO::Job *job = 0 );
/// Prompt the user for a query /// Prompt the user for a query
void getUserQuery( TQString explanation = TQString() ); void getUserQuery( TQString explanation = TQString() );

@ -736,7 +736,7 @@ void CoverManager::setCustomSelectedCovers()
CollectionDB::instance()->setAlbumImage( item->artist(), item->album(), image ); CollectionDB::instance()->setAlbumImage( item->artist(), item->album(), image );
item->loadCover(); item->loadCover();
} }
KIO::NetAccess::removeTempFile( tmpFile ); TDEIO::NetAccess::removeTempFile( tmpFile );
} }
} }

@ -89,7 +89,7 @@ CollectionDB::CollectionDB()
//</OPEN DATABASE> //</OPEN DATABASE>
// TODO: Should write to config in dtor, but it crashes... // TODO: Should write to config in dtor, but it crashes...
KConfig* config = amaroK::config( "Collection Browser" ); TDEConfig* config = amaroK::config( "Collection Browser" );
config->writeEntry( "Database Version", DATABASE_VERSION ); config->writeEntry( "Database Version", DATABASE_VERSION );
config->writeEntry( "Database Stats Version", DATABASE_STATS_VERSION ); config->writeEntry( "Database Stats Version", DATABASE_STATS_VERSION );
@ -107,7 +107,7 @@ CollectionDB::~CollectionDB()
destroy(); destroy();
// This crashes so it's done at the end of ctor. // This crashes so it's done at the end of ctor.
// KConfig* const config = amaroK::config( "Collection Browser" ); // TDEConfig* const config = amaroK::config( "Collection Browser" );
// config->writeEntry( "Database Version", DATABASE_VERSION ); // config->writeEntry( "Database Version", DATABASE_VERSION );
// config->writeEntry( "Database Stats Version", DATABASE_STATS_VERSION ); // config->writeEntry( "Database Stats Version", DATABASE_STATS_VERSION );
} }
@ -693,7 +693,7 @@ CollectionDB::fetchImage(const KURL& url, TQString &/*tmpFile*/)
if(url.protocol() != "file") if(url.protocol() != "file")
{ {
TQString tmpFile; TQString tmpFile;
KIO::NetAccess::download( url, tmpFile, 0); //TODO set 0 to the window, though it probably doesn't really matter TDEIO::NetAccess::download( url, tmpFile, 0); //TODO set 0 to the window, though it probably doesn't really matter
return TQImage(tmpFile); return TQImage(tmpFile);
} }
else else
@ -707,7 +707,7 @@ CollectionDB::setAlbumImage( const TQString& artist, const TQString& album, cons
{ {
TQString tmpFile; TQString tmpFile;
bool success = setAlbumImage( artist, album, fetchImage(url, tmpFile) ); bool success = setAlbumImage( artist, album, fetchImage(url, tmpFile) );
KIO::NetAccess::removeTempFile( tmpFile ); //only removes file if it was created with NetAccess TDEIO::NetAccess::removeTempFile( tmpFile ); //only removes file if it was created with NetAccess
return success; return success;
} }
@ -1802,7 +1802,7 @@ CollectionDB::initialize()
DbConnection *dbConn = m_dbConnPool->getDbConnection(); DbConnection *dbConn = m_dbConnPool->getDbConnection();
m_dbConnPool->putDbConnection( dbConn ); m_dbConnPool->putDbConnection( dbConn );
KConfig* config = amaroK::config( "Collection Browser" ); TDEConfig* config = amaroK::config( "Collection Browser" );
if(!dbConn->isConnected()) if(!dbConn->isConnected())
amaroK::MessageQueue::instance()->addMessage(dbConn->lastError()); amaroK::MessageQueue::instance()->addMessage(dbConn->lastError());
if ( !dbConn->isInitialized() || !isValid() ) if ( !dbConn->isInitialized() || !isValid() )

@ -150,7 +150,7 @@ class CollectionDB : public TQObject, public EngineObserver
//cover management methods //cover management methods
/** Returns the image from a given URL, network-transparently. /** Returns the image from a given URL, network-transparently.
* You must run KIO::NetAccess::removeTempFile( tmpFile ) when you are finished using the image; * You must run TDEIO::NetAccess::removeTempFile( tmpFile ) when you are finished using the image;
**/ **/
static TQImage fetchImage(const KURL& url, TQString &tmpFile); static TQImage fetchImage(const KURL& url, TQString &tmpFile);
/** Saves images located on the user's filesystem */ /** Saves images located on the user's filesystem */

@ -44,7 +44,7 @@
DeleteWidget::DeleteWidget(TQWidget *parent, const char *name) DeleteWidget::DeleteWidget(TQWidget *parent, const char *name)
: DeleteDialogBase(parent, name) : DeleteDialogBase(parent, name)
{ {
KConfigGroup messageGroup(TDEGlobal::config(), "FileRemover"); TDEConfigGroup messageGroup(TDEGlobal::config(), "FileRemover");
bool deleteInstead = messageGroup.readBoolEntry("deleteInsteadOfTrash", false); bool deleteInstead = messageGroup.readBoolEntry("deleteInsteadOfTrash", false);
slotShouldDelete(deleteInstead); slotShouldDelete(deleteInstead);
@ -116,7 +116,7 @@ void DeleteDialog::setFiles(const KURL::List &files)
void DeleteDialog::accept() void DeleteDialog::accept()
{ {
KConfigGroup messageGroup(TDEGlobal::config(), "FileRemover"); TDEConfigGroup messageGroup(TDEGlobal::config(), "FileRemover");
// Save user's preference // Save user's preference
@ -138,9 +138,9 @@ bool DeleteDialog::showTrashDialog(TQWidget* parent, const KURL::List& files)
if( doDelete ) if( doDelete )
{ {
KIO::Job* job = 0; TDEIO::Job* job = 0;
bool shouldDelete = dialog.shouldDelete(); bool shouldDelete = dialog.shouldDelete();
if ( ( shouldDelete && (job = KIO::del( files )) ) || if ( ( shouldDelete && (job = TDEIO::del( files )) ) ||
( job = Amarok::trashFiles( files ) ) ) ( job = Amarok::trashFiles( files ) ) )
{ {
if(shouldDelete) //amarok::trashFiles already does the progress operation if(shouldDelete) //amarok::trashFiles already does the progress operation

@ -117,7 +117,7 @@ MassStorageDeviceHandlerFactory::~MassStorageDeviceHandlerFactory( )
{ {
} }
DeviceHandler * MassStorageDeviceHandlerFactory::createHandler( const KConfig* ) const DeviceHandler * MassStorageDeviceHandlerFactory::createHandler( const TDEConfig* ) const
{ {
return 0; return 0;
} }

@ -34,7 +34,7 @@ public:
virtual bool canCreateFromConfig() const; virtual bool canCreateFromConfig() const;
virtual DeviceHandler* createHandler( const KConfig* c ) const; virtual DeviceHandler* createHandler( const TDEConfig* c ) const;
virtual TQString type() const; virtual TQString type() const;

@ -122,7 +122,7 @@ NfsDeviceHandlerFactory::~NfsDeviceHandlerFactory( )
} }
DeviceHandler * DeviceHandler *
NfsDeviceHandlerFactory::createHandler( const KConfig* ) const NfsDeviceHandlerFactory::createHandler( const TDEConfig* ) const
{ {
return 0; return 0;
} }

@ -34,7 +34,7 @@ public:
virtual bool canCreateFromConfig() const; virtual bool canCreateFromConfig() const;
virtual DeviceHandler* createHandler( const KConfig* c ) const; virtual DeviceHandler* createHandler( const TDEConfig* c ) const;
virtual TQString type() const; virtual TQString type() const;
}; };

@ -124,7 +124,7 @@ SmbDeviceHandlerFactory::~SmbDeviceHandlerFactory( )
} }
DeviceHandler * DeviceHandler *
SmbDeviceHandlerFactory::createHandler( const KConfig* ) const SmbDeviceHandlerFactory::createHandler( const TDEConfig* ) const
{ {
return 0; return 0;
} }

@ -34,7 +34,7 @@ public:
virtual bool canCreateFromConfig() const; virtual bool canCreateFromConfig() const;
virtual DeviceHandler* createHandler( const KConfig* c ) const; virtual DeviceHandler* createHandler( const TDEConfig* c ) const;
virtual TQString type() const; virtual TQString type() const;
}; };

@ -120,7 +120,7 @@ class XineConfigDialog : public Amarok::PluginConfig
bool isDefault() const; bool isDefault() const;
public slots: public slots:
/** Save view state using, eg KConfig */ /** Save view state using, eg TDEConfig */
void save(); void save();
void reset(xine_t *xine); void reset(xine_t *xine);

@ -23,7 +23,7 @@
class TQTimer; class TQTimer;
namespace KIO { class Job; } namespace TDEIO { class Job; }
/** /**

@ -270,7 +270,7 @@ FileBrowser::FileBrowser( const char * name, Medium * medium )
FileBrowser::~FileBrowser() FileBrowser::~FileBrowser()
{ {
KConfig* const c = Amarok::config( "Filebrowser" ); TDEConfig* const c = Amarok::config( "Filebrowser" );
m_dir->writeConfig( c ); //uses currently set group m_dir->writeConfig( c ); //uses currently set group

@ -24,7 +24,7 @@ namespace Amarok
extern TQPixmap getPNG( const TQString& ); extern TQPixmap getPNG( const TQString& );
extern TQPixmap getJPG( const TQString& ); extern TQPixmap getJPG( const TQString& );
extern KConfig *config( const TQString& ); extern TDEConfig *config( const TQString& );
} }
void void

@ -731,16 +731,16 @@ void KTRMLookup::puidGenerated()
tp_ReleaseTrack(KTRMRequestHandler::instance()->tunePimp(), track); tp_ReleaseTrack(KTRMRequestHandler::instance()->tunePimp(), track);
d->results.clear(); d->results.clear();
KIO::Job *job = KIO::storedGet( TQString( "http://musicbrainz.org/ws/1/track/?type=xml&puid=%1" ).arg( puid ) , false, false ); TDEIO::Job *job = TDEIO::storedGet( TQString( "http://musicbrainz.org/ws/1/track/?type=xml&puid=%1" ).arg( puid ) , false, false );
Amarok::StatusBar::instance()->newProgressOperation( job ) Amarok::StatusBar::instance()->newProgressOperation( job )
.setDescription( i18n( "MusicBrainz Lookup" ) ); .setDescription( i18n( "MusicBrainz Lookup" ) );
connect( job, TQT_SIGNAL( result( KIO::Job* ) ), TQT_SLOT( lookupResult( KIO::Job* ) ) ); connect( job, TQT_SIGNAL( result( TDEIO::Job* ) ), TQT_SLOT( lookupResult( TDEIO::Job* ) ) );
#endif #endif
} }
void KTRMLookup::lookupResult( KIO::Job* job ) void KTRMLookup::lookupResult( TDEIO::Job* job )
{ {
#if HAVE_TUNEPIMP >= 5 #if HAVE_TUNEPIMP >= 5
DEBUG_BLOCK DEBUG_BLOCK
@ -750,7 +750,7 @@ void KTRMLookup::lookupResult( KIO::Job* job )
finished(); finished();
return; return;
} }
KIO::StoredTransferJob* const storedJob = static_cast<KIO::StoredTransferJob*>( job ); TDEIO::StoredTransferJob* const storedJob = static_cast<TDEIO::StoredTransferJob*>( job );
TQString xml = TQString::fromUtf8( storedJob->data().data(), storedJob->data().size() ); TQString xml = TQString::fromUtf8( storedJob->data().data(), storedJob->data().size() );
TQDomDocument doc; TQDomDocument doc;

@ -38,7 +38,7 @@
* at the beginning of the list). * at the beginning of the list).
*/ */
namespace KIO { class Job; } namespace TDEIO { class Job; }
class KTRMResult class KTRMResult
{ {
@ -128,7 +128,7 @@ signals:
void sigResult( KTRMResultList, TQString ); void sigResult( KTRMResultList, TQString );
protected slots: protected slots:
virtual void lookupResult( KIO::Job* ); virtual void lookupResult( TDEIO::Job* );
public: public:
/** /**

@ -68,11 +68,11 @@ AmarokHttp::get ( const TQString & path )
m_done = false; m_done = false;
m_error = TQHttp::NoError; m_error = TQHttp::NoError;
m_state = TQHttp::Connecting; m_state = TQHttp::Connecting;
KIO::TransferJob *job = KIO::get(uri, true, false); TDEIO::TransferJob *job = TDEIO::get(uri, true, false);
connect(job, TQT_SIGNAL(data(KIO::Job*, const TQByteArray&)), connect(job, TQT_SIGNAL(data(TDEIO::Job*, const TQByteArray&)),
this, TQT_SLOT(slotData(KIO::Job*, const TQByteArray&))); this, TQT_SLOT(slotData(TDEIO::Job*, const TQByteArray&)));
connect(job, TQT_SIGNAL(result(KIO::Job*)), connect(job, TQT_SIGNAL(result(TDEIO::Job*)),
this, TQT_SLOT(slotResult(KIO::Job*))); this, TQT_SLOT(slotResult(TDEIO::Job*)));
return 0; return 0;
} }
@ -96,7 +96,7 @@ AmarokHttp::error()
} }
void void
AmarokHttp::slotData(KIO::Job*, const TQByteArray& data) AmarokHttp::slotData(TDEIO::Job*, const TQByteArray& data)
{ {
if( data.size() == 0 ) { if( data.size() == 0 ) {
return; return;
@ -110,7 +110,7 @@ AmarokHttp::slotData(KIO::Job*, const TQByteArray& data)
} }
void void
AmarokHttp::slotResult(KIO::Job* job) AmarokHttp::slotResult(TDEIO::Job* job)
{ {
bool err = job->error(); bool err = job->error();
if( err || m_error != TQHttp::NoError ) { if( err || m_error != TQHttp::NoError ) {
@ -620,13 +620,13 @@ WebService::metaDataFinished( int /*id*/, bool error ) //SLOT
return; return;
} }
KIO::Job* job = KIO::storedGet( u, true, false ); TDEIO::Job* job = TDEIO::storedGet( u, true, false );
connect( job, TQT_SIGNAL( result( KIO::Job* ) ), this, TQT_SLOT( fetchImageFinished( KIO::Job* ) ) ); connect( job, TQT_SIGNAL( result( TDEIO::Job* ) ), this, TQT_SLOT( fetchImageFinished( TDEIO::Job* ) ) );
} }
void void
WebService::fetchImageFinished( KIO::Job* job ) //SLOT WebService::fetchImageFinished( TDEIO::Job* job ) //SLOT
{ {
DEBUG_BLOCK DEBUG_BLOCK
@ -634,7 +634,7 @@ WebService::fetchImageFinished( KIO::Job* job ) //SLOT
const TQString path = Amarok::saveLocation() + "lastfm_image.png"; const TQString path = Amarok::saveLocation() + "lastfm_image.png";
const int size = AmarokConfig::coverPreviewSize(); const int size = AmarokConfig::coverPreviewSize();
TQImage img( static_cast<KIO::StoredTransferJob*>( job )->data() ); TQImage img( static_cast<TDEIO::StoredTransferJob*>( job )->data() );
img.smoothScale( size, size ).save( path, "PNG" ); img.smoothScale( size, size ).save( path, "PNG" );
m_metaBundle.lastFmBundle()->setImageUrl( CollectionDB::makeShadowedImage( path, false ) ); m_metaBundle.lastFmBundle()->setImageUrl( CollectionDB::makeShadowedImage( path, false ) );

@ -34,7 +34,7 @@ class KURL;
class TQSocket; class TQSocket;
class TQTimer; class TQTimer;
namespace KIO { class Job; } namespace TDEIO { class Job; }
/* AmarokHttp is a hack written so that lastfm code could easily use something proxy aware. /* AmarokHttp is a hack written so that lastfm code could easily use something proxy aware.
DO NOT use this class for anything else, use KIO directly instead. */ DO NOT use this class for anything else, use KIO directly instead. */
@ -54,8 +54,8 @@ class AmarokHttp : public TQObject
void requestFinished ( int id, bool error ); void requestFinished ( int id, bool error );
protected slots: protected slots:
void slotData(KIO::Job*, const TQByteArray& ); void slotData(TDEIO::Job*, const TQByteArray& );
void slotResult(KIO::Job*); void slotResult(TDEIO::Job*);
protected: protected:
TQString m_hostname; TQString m_hostname;
@ -216,7 +216,7 @@ namespace LastFm
private slots: private slots:
void readProxy(); void readProxy();
void metaDataFinished( int id, bool error ); void metaDataFinished( int id, bool error );
void fetchImageFinished( KIO::Job* ); void fetchImageFinished( TDEIO::Job* );
void enableScrobblingFinished( int id, bool error ); void enableScrobblingFinished( int id, bool error );
void loveFinished( int id, bool error ); void loveFinished( int id, bool error );

@ -49,9 +49,9 @@ void MagnatuneAlbumDownloader::downloadAlbum( MagnatuneDownloadInfo * info )
debug() << "Download: " << downloadUrl.url() << " to: " << m_currentAlbumUnpackLocation << endl; debug() << "Download: " << downloadUrl.url() << " to: " << m_currentAlbumUnpackLocation << endl;
debug() << "Using temporary location: " << m_tempDir.name() + m_currentAlbumFileName << endl; debug() << "Using temporary location: " << m_tempDir.name() + m_currentAlbumFileName << endl;
m_albumDownloadJob = KIO::file_copy( downloadUrl, KURL( m_tempDir.name() + m_currentAlbumFileName ), -1, true, false, false ); m_albumDownloadJob = TDEIO::file_copy( downloadUrl, KURL( m_tempDir.name() + m_currentAlbumFileName ), -1, true, false, false );
connect( m_albumDownloadJob, TQT_SIGNAL( result( KIO::Job* ) ), TQT_SLOT( albumDownloadComplete( KIO::Job* ) ) ); connect( m_albumDownloadJob, TQT_SIGNAL( result( TDEIO::Job* ) ), TQT_SLOT( albumDownloadComplete( TDEIO::Job* ) ) );
Amarok::StatusBar::instance() ->newProgressOperation( m_albumDownloadJob ) Amarok::StatusBar::instance() ->newProgressOperation( m_albumDownloadJob )
.setDescription( i18n( "Downloading album" ) ) .setDescription( i18n( "Downloading album" ) )
@ -64,9 +64,9 @@ void MagnatuneAlbumDownloader::downloadCover( TQString albumCoverUrlString, TQSt
debug() << "Download Cover: " << downloadUrl.url() << " to: " << m_tempDir.name() << fileName << endl; debug() << "Download Cover: " << downloadUrl.url() << " to: " << m_tempDir.name() << fileName << endl;
m_albumDownloadJob = KIO::file_copy( downloadUrl, KURL( m_tempDir.name() + fileName ), -1, true, false, false ); m_albumDownloadJob = TDEIO::file_copy( downloadUrl, KURL( m_tempDir.name() + fileName ), -1, true, false, false );
connect( m_albumDownloadJob, TQT_SIGNAL( result( KIO::Job* ) ), TQT_SLOT( coverDownloadComplete( KIO::Job* ) ) ); connect( m_albumDownloadJob, TQT_SIGNAL( result( TDEIO::Job* ) ), TQT_SLOT( coverDownloadComplete( TDEIO::Job* ) ) );
Amarok::StatusBar::instance() ->newProgressOperation( m_albumDownloadJob ) Amarok::StatusBar::instance() ->newProgressOperation( m_albumDownloadJob )
.setDescription( i18n( "Downloading album cover" ) ) .setDescription( i18n( "Downloading album cover" ) )
@ -75,7 +75,7 @@ void MagnatuneAlbumDownloader::downloadCover( TQString albumCoverUrlString, TQSt
void MagnatuneAlbumDownloader::albumDownloadComplete( KIO::Job * downloadJob ) void MagnatuneAlbumDownloader::albumDownloadComplete( TDEIO::Job * downloadJob )
{ {
debug() << "album download complete" << endl; debug() << "album download complete" << endl;
@ -115,9 +115,9 @@ void MagnatuneAlbumDownloader::albumDownloadComplete( KIO::Job * downloadJob )
debug() << "Adding cover " << downloadUrl.url() << " to collection at " << finalAlbumPath << endl; debug() << "Adding cover " << downloadUrl.url() << " to collection at " << finalAlbumPath << endl;
m_albumDownloadJob = KIO::file_copy( downloadUrl, KURL( finalAlbumPath + "/cover.jpg" ), -1, true, false, false ); m_albumDownloadJob = TDEIO::file_copy( downloadUrl, KURL( finalAlbumPath + "/cover.jpg" ), -1, true, false, false );
connect( m_albumDownloadJob, TQT_SIGNAL( result( KIO::Job* ) ), TQT_SLOT( coverAddComplete( KIO::Job* ) ) ); connect( m_albumDownloadJob, TQT_SIGNAL( result( TDEIO::Job* ) ), TQT_SLOT( coverAddComplete( TDEIO::Job* ) ) );
Amarok::StatusBar::instance() ->newProgressOperation( m_albumDownloadJob ) Amarok::StatusBar::instance() ->newProgressOperation( m_albumDownloadJob )
.setDescription( i18n( "Adding album cover to collection" ) ) .setDescription( i18n( "Adding album cover to collection" ) )
@ -131,7 +131,7 @@ void MagnatuneAlbumDownloader::albumDownloadComplete( KIO::Job * downloadJob )
} }
void MagnatuneAlbumDownloader::coverDownloadComplete( KIO::Job * downloadJob ) void MagnatuneAlbumDownloader::coverDownloadComplete( TDEIO::Job * downloadJob )
{ {
debug() << "cover download complete" << endl; debug() << "cover download complete" << endl;
@ -170,7 +170,7 @@ void MagnatuneAlbumDownloader::coverDownloadAborted( )
emit( coverDownloadComplete( false ) ); emit( coverDownloadComplete( false ) );
} }
void MagnatuneAlbumDownloader::coverAddComplete(KIO::Job * downloadJob) void MagnatuneAlbumDownloader::coverAddComplete(TDEIO::Job * downloadJob)
{ {
debug() << "cover add complete" << endl; debug() << "cover add complete" << endl;

@ -62,7 +62,7 @@ public slots:
protected: protected:
KIO::FileCopyJob * m_albumDownloadJob; TDEIO::FileCopyJob * m_albumDownloadJob;
TQString m_currentAlbumUnpackLocation; TQString m_currentAlbumUnpackLocation;
TQString m_currentAlbumFileName; TQString m_currentAlbumFileName;
int m_currentAlbumId; int m_currentAlbumId;
@ -73,13 +73,13 @@ protected slots:
* Unzip the downloaded album * Unzip the downloaded album
* @param downLoadJob * @param downLoadJob
*/ */
void albumDownloadComplete( KIO::Job* downloadJob ); void albumDownloadComplete( TDEIO::Job* downloadJob );
void albumDownloadAborted(); void albumDownloadAborted();
void coverDownloadComplete( KIO::Job* downloadJob ); void coverDownloadComplete( TDEIO::Job* downloadJob );
void coverDownloadAborted(); void coverDownloadAborted();
void coverAddComplete( KIO::Job* downloadJob ); void coverAddComplete( TDEIO::Job* downloadJob );
void coverAddAborted(); void coverAddAborted();
}; };

@ -42,9 +42,9 @@ MagnatuneArtistInfoBox::displayArtistInfo( KURL url )
TQString tempFile; TQString tempFile;
TQString orgHtml; TQString orgHtml;
m_infoDownloadJob = KIO::storedGet( url, false, false ); m_infoDownloadJob = TDEIO::storedGet( url, false, false );
Amarok::StatusBar::instance() ->newProgressOperation( m_infoDownloadJob ).setDescription( i18n( "Fetching Artist Info" ) ); Amarok::StatusBar::instance() ->newProgressOperation( m_infoDownloadJob ).setDescription( i18n( "Fetching Artist Info" ) );
connect( m_infoDownloadJob, TQT_SIGNAL( result( KIO::Job* ) ), TQT_SLOT( infoDownloadComplete( KIO::Job* ) ) ); connect( m_infoDownloadJob, TQT_SIGNAL( result( TDEIO::Job* ) ), TQT_SLOT( infoDownloadComplete( TDEIO::Job* ) ) );
return true; return true;
@ -82,7 +82,7 @@ MagnatuneArtistInfoBox::displayAlbumInfo( MagnatuneAlbum *album )
} }
void void
MagnatuneArtistInfoBox::infoDownloadComplete( KIO::Job * downLoadJob ) MagnatuneArtistInfoBox::infoDownloadComplete( TDEIO::Job * downLoadJob )
{ {
if ( !downLoadJob->error() == 0 ) if ( !downLoadJob->error() == 0 )
@ -93,7 +93,7 @@ MagnatuneArtistInfoBox::infoDownloadComplete( KIO::Job * downLoadJob )
if ( downLoadJob != m_infoDownloadJob ) if ( downLoadJob != m_infoDownloadJob )
return ; //not the right job, so let's ignore it return ; //not the right job, so let's ignore it
KIO::StoredTransferJob* const storedJob = static_cast<KIO::StoredTransferJob*>( downLoadJob ); TDEIO::StoredTransferJob* const storedJob = static_cast<TDEIO::StoredTransferJob*>( downLoadJob );
TQString info = TQString( storedJob->data() ); TQString info = TQString( storedJob->data() );
TQString trimmedInfo = extractArtistInfo( info ); TQString trimmedInfo = extractArtistInfo( info );

@ -71,7 +71,7 @@ public:
protected: protected:
KIO::TransferJob *m_infoDownloadJob; TDEIO::TransferJob *m_infoDownloadJob;
/** /**
* Helper function for extracting only the part of the artist page * Helper function for extracting only the part of the artist page
@ -91,10 +91,10 @@ protected:
protected slots: protected slots:
/** /**
* Slot for recieving notifications from the download KIO::Job * Slot for recieving notifications from the download TDEIO::Job
* @param downLoadJob The job that has completed * @param downLoadJob The job that has completed
*/ */
void infoDownloadComplete( KIO::Job *downLoadJob ); void infoDownloadComplete( TDEIO::Job *downLoadJob );
}; };

@ -346,18 +346,18 @@ bool MagnatuneBrowser::updateMagnatuneList()
{ {
//download new list from magnatune //download new list from magnatune
m_listDownloadJob = KIO::storedGet( KURL( "http://magnatune.com/info/album_info.xml" ), false, false ); m_listDownloadJob = TDEIO::storedGet( KURL( "http://magnatune.com/info/album_info.xml" ), false, false );
Amarok::StatusBar::instance() ->newProgressOperation( m_listDownloadJob ) Amarok::StatusBar::instance() ->newProgressOperation( m_listDownloadJob )
.setDescription( i18n( "Downloading Magnatune.com Database" ) ) .setDescription( i18n( "Downloading Magnatune.com Database" ) )
.setAbortSlot( TQT_TQOBJECT(this), TQT_SLOT( listDownloadCancelled() ) ); .setAbortSlot( TQT_TQOBJECT(this), TQT_SLOT( listDownloadCancelled() ) );
connect( m_listDownloadJob, TQT_SIGNAL( result( KIO::Job* ) ), TQT_SLOT( listDownloadComplete( KIO::Job* ) ) ); connect( m_listDownloadJob, TQT_SIGNAL( result( TDEIO::Job* ) ), TQT_SLOT( listDownloadComplete( TDEIO::Job* ) ) );
return true; return true;
} }
void MagnatuneBrowser::listDownloadComplete( KIO::Job * downLoadJob ) void MagnatuneBrowser::listDownloadComplete( TDEIO::Job * downLoadJob )
{ {
if ( downLoadJob != m_listDownloadJob ) if ( downLoadJob != m_listDownloadJob )
@ -371,7 +371,7 @@ void MagnatuneBrowser::listDownloadComplete( KIO::Job * downLoadJob )
} }
KIO::StoredTransferJob* const storedJob = static_cast<KIO::StoredTransferJob*>( downLoadJob ); TDEIO::StoredTransferJob* const storedJob = static_cast<TDEIO::StoredTransferJob*>( downLoadJob );
TQString list = TQString( storedJob->data() ); TQString list = TQString( storedJob->data() );
KTempFile tfile; KTempFile tfile;

@ -139,7 +139,7 @@ private slots:
* Triggers a parse of the file to get the info added to the databse * Triggers a parse of the file to get the info added to the databse
* @param downLoadJob The calling download Job * @param downLoadJob The calling download Job
*/ */
void listDownloadComplete( KIO::Job* downLoadJob); void listDownloadComplete( TDEIO::Job* downLoadJob);
/** /**
* Slot for catching cancelled list downloads * Slot for catching cancelled list downloads
@ -247,7 +247,7 @@ private:
TQString m_tempFileName; TQString m_tempFileName;
KIO::TransferJob * m_listDownloadJob; TDEIO::TransferJob * m_listDownloadJob;
}; };

@ -111,15 +111,15 @@ void MagnatunePurchaseHandler::processPayment( TQString ccNumber, TQString expYe
TQString debugPurchaseURL = "https://magnatune.com/buy/buy_dl_cc_xml?cc=**********&mm=**&yy=**&sku=" + albumCode + "&name=" + name + "&email=********&id=amarok&amount=" + amountString; TQString debugPurchaseURL = "https://magnatune.com/buy/buy_dl_cc_xml?cc=**********&mm=**&yy=**&sku=" + albumCode + "&name=" + name + "&email=********&id=amarok&amount=" + amountString;
debug() << "purchase url : " << debugPurchaseURL << endl; debug() << "purchase url : " << debugPurchaseURL << endl;
m_resultDownloadJob = KIO::storedGet( KURL( purchaseURL ), false, false ); m_resultDownloadJob = TDEIO::storedGet( KURL( purchaseURL ), false, false );
Amarok::StatusBar::instance() ->newProgressOperation( m_resultDownloadJob ).setDescription( i18n( "Processing Payment" ) ); Amarok::StatusBar::instance() ->newProgressOperation( m_resultDownloadJob ).setDescription( i18n( "Processing Payment" ) );
connect( m_resultDownloadJob, TQT_SIGNAL( result( KIO::Job* ) ), TQT_SLOT( xmlDownloadComplete( KIO::Job* ) ) ); connect( m_resultDownloadJob, TQT_SIGNAL( result( TDEIO::Job* ) ), TQT_SLOT( xmlDownloadComplete( TDEIO::Job* ) ) );
} }
void MagnatunePurchaseHandler::xmlDownloadComplete( KIO::Job * downloadJob ) void MagnatunePurchaseHandler::xmlDownloadComplete( TDEIO::Job * downloadJob )
{ {
debug() << "xml download complete" << endl; debug() << "xml download complete" << endl;
@ -132,7 +132,7 @@ void MagnatunePurchaseHandler::xmlDownloadComplete( KIO::Job * downloadJob )
if ( downloadJob != m_resultDownloadJob ) if ( downloadJob != m_resultDownloadJob )
return ; //not the right job, so let's ignore it return ; //not the right job, so let's ignore it
KIO::StoredTransferJob* const storedJob = static_cast<KIO::StoredTransferJob*>( downloadJob ); TDEIO::StoredTransferJob* const storedJob = static_cast<TDEIO::StoredTransferJob*>( downloadJob );
TQString resultXml = TQString( storedJob->data() ); TQString resultXml = TQString( storedJob->data() );
debug() << endl << endl << "result: " << resultXml << endl << endl; debug() << endl << endl << "result: " << resultXml << endl << endl;

@ -55,7 +55,7 @@ signals:
void purchaseCompleted( bool success ); void purchaseCompleted( bool success );
private: private:
KIO::TransferJob * m_resultDownloadJob; TDEIO::TransferJob * m_resultDownloadJob;
//need a parent to pass to any dialogs we spawn //need a parent to pass to any dialogs we spawn
@ -83,7 +83,7 @@ private:
protected slots: protected slots:
void showPurchaseDialog( TQString coverTempLocation ); void showPurchaseDialog( TQString coverTempLocation );
void xmlDownloadComplete( KIO::Job* downLoadJob ); void xmlDownloadComplete( TDEIO::Job* downLoadJob );
void albumDownloadComplete(bool success); void albumDownloadComplete(bool success);
void albumPurchaseCancelled(); void albumPurchaseCancelled();

@ -171,9 +171,9 @@ class SpaceLabel : public TQLabel {
TQLabel::paintEvent(e); TQLabel::paintEvent(e);
} }
KIO::filesize_t m_total; TDEIO::filesize_t m_total;
KIO::filesize_t m_used; TDEIO::filesize_t m_used;
KIO::filesize_t m_scheduled; TDEIO::filesize_t m_scheduled;
}; };
class DummyMediaDevice : public MediaDevice class DummyMediaDevice : public MediaDevice
@ -1740,7 +1740,7 @@ MediaBrowser::configSelectPlugin( int index )
} }
else if( currentDevice() ) else if( currentDevice() )
{ {
KConfig *config = Amarok::config( "MediaBrowser" ); TDEConfig *config = Amarok::config( "MediaBrowser" );
config->writeEntry( currentDevice()->uniqueId(), m_pluginName[m_configPluginCombo->currentText()] ); config->writeEntry( currentDevice()->uniqueId(), m_pluginName[m_configPluginCombo->currentText()] );
} }
@ -1834,18 +1834,18 @@ MediaBrowser::updateStats()
if( !m_stats ) if( !m_stats )
return; return;
KIO::filesize_t queued = m_queue->totalSize(); TDEIO::filesize_t queued = m_queue->totalSize();
TQString text = i18n( "1 track in queue", "%n tracks in queue", m_queue->childCount() ); TQString text = i18n( "1 track in queue", "%n tracks in queue", m_queue->childCount() );
if(m_queue->childCount() > 0) if(m_queue->childCount() > 0)
{ {
text += i18n(" (%1)").arg( KIO::convertSize( queued ) ); text += i18n(" (%1)").arg( TDEIO::convertSize( queued ) );
} }
KIO::filesize_t total, avail; TDEIO::filesize_t total, avail;
if( currentDevice() && currentDevice()->getCapacity(&total, &avail) ) if( currentDevice() && currentDevice()->getCapacity(&total, &avail) )
{ {
text += i18n( " - %1 of %2 available" ).arg( KIO::convertSize( avail ) ).arg( KIO::convertSize( total ) ); text += i18n( " - %1 of %2 available" ).arg( TDEIO::convertSize( avail ) ).arg( TDEIO::convertSize( total ) );
m_stats->m_used = total-avail; m_stats->m_used = total-avail;
m_stats->m_total = total; m_stats->m_total = total;
@ -2014,7 +2014,7 @@ MediaDevice::configString( const TQString &name, const TQString &defValue )
TQString configName = "MediaDevice"; TQString configName = "MediaDevice";
if( !uniqueId().isEmpty() ) if( !uniqueId().isEmpty() )
configName += '_' + uniqueId(); configName += '_' + uniqueId();
KConfig *config = Amarok::config( configName ); TDEConfig *config = Amarok::config( configName );
return config->readEntry( name, defValue ); return config->readEntry( name, defValue );
} }
@ -2024,7 +2024,7 @@ MediaDevice::setConfigString( const TQString &name, const TQString &value )
TQString configName = "MediaDevice"; TQString configName = "MediaDevice";
if( !uniqueId().isEmpty() ) if( !uniqueId().isEmpty() )
configName += '_' + uniqueId(); configName += '_' + uniqueId();
KConfig *config = Amarok::config( configName ); TDEConfig *config = Amarok::config( configName );
config->writeEntry( name, value ); config->writeEntry( name, value );
} }
@ -2034,7 +2034,7 @@ MediaDevice::configBool( const TQString &name, bool defValue )
TQString configName = "MediaDevice"; TQString configName = "MediaDevice";
if( !uniqueId().isEmpty() ) if( !uniqueId().isEmpty() )
configName += '_' + uniqueId(); configName += '_' + uniqueId();
KConfig *config = Amarok::config( configName ); TDEConfig *config = Amarok::config( configName );
return config->readBoolEntry( name, defValue ); return config->readBoolEntry( name, defValue );
} }
@ -2044,7 +2044,7 @@ MediaDevice::setConfigBool( const TQString &name, bool value )
TQString configName = "MediaDevice"; TQString configName = "MediaDevice";
if( !uniqueId().isEmpty() ) if( !uniqueId().isEmpty() )
configName += '_' + uniqueId(); configName += '_' + uniqueId();
KConfig *config = Amarok::config( configName ); TDEConfig *config = Amarok::config( configName );
config->writeEntry( name, value ); config->writeEntry( name, value );
} }
@ -2470,13 +2470,13 @@ MediaDevice::kioCopyTrack( const KURL &src, const KURL &dst )
{ {
m_wait = true; m_wait = true;
KIO::FileCopyJob *job = KIO::file_copy( src, dst, TDEIO::FileCopyJob *job = TDEIO::file_copy( src, dst,
-1 /* permissions */, -1 /* permissions */,
false /* overwrite */, false /* overwrite */,
false /* resume */, false /* resume */,
false /* show progress */ ); false /* show progress */ );
connect( job, TQT_SIGNAL( result( KIO::Job * ) ), connect( job, TQT_SIGNAL( result( TDEIO::Job * ) ),
this, TQT_SLOT( fileTransferred( KIO::Job * ) ) ); this, TQT_SLOT( fileTransferred( TDEIO::Job * ) ) );
bool tryToRemove = false; bool tryToRemove = false;
while ( m_wait ) while ( m_wait )
@ -2528,7 +2528,7 @@ MediaDevice::kioCopyTrack( const KURL &src, const KURL &dst )
} }
void void
MediaDevice::fileTransferred( KIO::Job *job ) //SLOT MediaDevice::fileTransferred( TDEIO::Job *job ) //SLOT
{ {
if(job->error()) if(job->error())
{ {
@ -3706,7 +3706,7 @@ MediaQueue::computeSize() const
} }
} }
KIO::filesize_t TDEIO::filesize_t
MediaQueue::totalSize() const MediaQueue::totalSize() const
{ {
return m_totalSize; return m_totalSize;

@ -131,7 +131,7 @@ class MediaQueue : public KListView, public DropProxyTarget
MediaQueue(MediaBrowser *parent); MediaQueue(MediaBrowser *parent);
MediaItem *findPath( TQString path ); MediaItem *findPath( TQString path );
KIO::filesize_t totalSize() const; // total size of items to transfer in KB TDEIO::filesize_t totalSize() const; // total size of items to transfer in KB
void computeSize() const; // compute total size of items to transfer in KB void computeSize() const; // compute total size of items to transfer in KB
void addItemToSize( const MediaItem *item ) const; void addItemToSize( const MediaItem *item ) const;
void subtractItemFromSize( const MediaItem *item, bool unconditonally=false ) const; void subtractItemFromSize( const MediaItem *item, bool unconditonally=false ) const;
@ -165,7 +165,7 @@ class MediaQueue : public KListView, public DropProxyTarget
private: private:
void keyPressEvent( TQKeyEvent *e ); void keyPressEvent( TQKeyEvent *e );
MediaBrowser *m_parent; MediaBrowser *m_parent;
mutable KIO::filesize_t m_totalSize; mutable TDEIO::filesize_t m_totalSize;
}; };
@ -525,7 +525,7 @@ class LIBAMAROK_EXPORT MediaDevice : public TQObject, public Amarok::Plugin
void scheduleDisconnect() { m_scheduledDisconnect = true; } void scheduleDisconnect() { m_scheduledDisconnect = true; }
protected slots: protected slots:
void fileTransferred( KIO::Job *job ); void fileTransferred( TDEIO::Job *job );
void fileTransferFinished(); void fileTransferFinished();
private: private:
@ -547,7 +547,7 @@ class LIBAMAROK_EXPORT MediaDevice : public TQObject, public Amarok::Plugin
* Get the capacity and freespace available on the device, in bytes * Get the capacity and freespace available on the device, in bytes
* @return true if successful * @return true if successful
*/ */
virtual bool getCapacity( KIO::filesize_t *total, KIO::filesize_t *available ) { Q_UNUSED(total); Q_UNUSED(available); return false; } virtual bool getCapacity( TDEIO::filesize_t *total, TDEIO::filesize_t *available ) { Q_UNUSED(total); Q_UNUSED(available); return false; }
/** /**
* Lock device for exclusive access if possible * Lock device for exclusive access if possible

@ -112,7 +112,7 @@ DaapClient::isConnected()
} }
bool bool
DaapClient::getCapacity( KIO::filesize_t* /* total */, KIO::filesize_t* /* available */ ) DaapClient::getCapacity( TDEIO::filesize_t* /* total */, TDEIO::filesize_t* /* available */ )
{ {
return false; return false;
} }

@ -82,7 +82,7 @@ class DaapClient : public MediaDevice
void passwordPrompt(); void passwordPrompt();
protected: protected:
bool getCapacity( KIO::filesize_t *total, KIO::filesize_t *available ); bool getCapacity( TDEIO::filesize_t *total, TDEIO::filesize_t *available );
void rmbPressed( TQListViewItem* qitem, const TQPoint& point, int ); void rmbPressed( TQListViewItem* qitem, const TQPoint& point, int );
bool lockDevice( bool tryOnly = false ); bool lockDevice( bool tryOnly = false );
void unlockDevice(); void unlockDevice();

@ -440,7 +440,7 @@ GenericMediaDevice::renameItem( TQListViewItem *item ) // SLOT
debug() << "Renaming: " << src << " to: " << dst << endl; debug() << "Renaming: " << src << " to: " << dst << endl;
//do we want a progress dialog? If so, set last false to true //do we want a progress dialog? If so, set last false to true
if( KIO::NetAccess::file_move( KURL::fromPathOrURL(src), KURL::fromPathOrURL(dst), -1, false, false, false ) ) if( TDEIO::NetAccess::file_move( KURL::fromPathOrURL(src), KURL::fromPathOrURL(dst), -1, false, false, false ) )
{ {
m_mfm.erase( m_mim[item]->getFullName() ); m_mfm.erase( m_mim[item]->getFullName() );
m_mim[item]->setNamesFromBase( item->text(0) ); m_mim[item]->setNamesFromBase( item->text(0) );
@ -476,7 +476,7 @@ GenericMediaDevice::newDirectory( const TQString &name, MediaItem *parent )
debug() << "Creating directory: " << fullPath << endl; debug() << "Creating directory: " << fullPath << endl;
const KURL url( fullPath ); const KURL url( fullPath );
if( !KIO::NetAccess::mkdir( url, m_parent ) ) //failed if( !TDEIO::NetAccess::mkdir( url, m_parent ) ) //failed
{ {
debug() << "Failed to create directory " << fullPath << endl; debug() << "Failed to create directory " << fullPath << endl;
return 0; return 0;
@ -516,7 +516,7 @@ GenericMediaDevice::addToDirectory( MediaItem *directory, TQPtrList<MediaItem> i
const KURL srcurl(src); const KURL srcurl(src);
const KURL dsturl(dst); const KURL dsturl(dst);
if ( !KIO::NetAccess::file_move( srcurl, dsturl, -1, false, false, m_parent ) ) if ( !TDEIO::NetAccess::file_move( srcurl, dsturl, -1, false, false, m_parent ) )
debug() << "Failed moving " << src << " to " << dst << endl; debug() << "Failed moving " << src << " to " << dst << endl;
else else
{ {
@ -597,10 +597,10 @@ GenericMediaDevice::checkAndBuildLocation( const TQString& location )
TQString secondpart = cleanPath( location.section( '/', i, i ) ); TQString secondpart = cleanPath( location.section( '/', i, i ) );
KURL url = KURL::fromPathOrURL( firstpart + '/' + secondpart ); KURL url = KURL::fromPathOrURL( firstpart + '/' + secondpart );
if( !KIO::NetAccess::exists( url, false, m_parent ) ) if( !TDEIO::NetAccess::exists( url, false, m_parent ) )
{ {
debug() << "directory does not exist, creating..." << url << endl; debug() << "directory does not exist, creating..." << url << endl;
if( !KIO::NetAccess::mkdir(url, m_view ) ) //failed if( !TDEIO::NetAccess::mkdir(url, m_view ) ) //failed
{ {
debug() << "Failed to create directory " << url << endl; debug() << "Failed to create directory " << url << endl;
return; return;
@ -735,7 +735,7 @@ GenericMediaDevice::deleteItemFromDevice( MediaItem *item, int /*flags*/ )
TQString path = m_mim[item]->getFullName(); TQString path = m_mim[item]->getFullName();
debug() << "Deleting path: " << path << endl; debug() << "Deleting path: " << path << endl;
if ( !KIO::NetAccess::del( KURL::fromPathOrURL(path), m_view )) if ( !TDEIO::NetAccess::del( KURL::fromPathOrURL(path), m_view ))
{ {
debug() << "Could not delete!" << endl; debug() << "Could not delete!" << endl;
return -1; return -1;
@ -885,7 +885,7 @@ GenericMediaDevice::addTrackToList( int type, KURL url, int /*size*/ )
/// Capacity, in kB /// Capacity, in kB
bool bool
GenericMediaDevice::getCapacity( KIO::filesize_t *total, KIO::filesize_t *available ) GenericMediaDevice::getCapacity( TDEIO::filesize_t *total, TDEIO::filesize_t *available )
{ {
if( !m_connected || !KURL::fromPathOrURL( m_medium.mountPoint() ).isLocalFile() ) return false; if( !m_connected || !KURL::fromPathOrURL( m_medium.mountPoint() ).isLocalFile() ) return false;

@ -78,7 +78,7 @@ class GenericMediaDevice : public MediaDevice
MediaItem *newDirectory( const TQString &name, MediaItem *parent ); MediaItem *newDirectory( const TQString &name, MediaItem *parent );
void addToDirectory( MediaItem *directory, TQPtrList<MediaItem> items ); void addToDirectory( MediaItem *directory, TQPtrList<MediaItem> items );
bool getCapacity( KIO::filesize_t *total, KIO::filesize_t *available ); bool getCapacity( TDEIO::filesize_t *total, TDEIO::filesize_t *available );
TQString fileName( const MetaBundle & ); TQString fileName( const MetaBundle & );
//methods not implemented/needed //methods not implemented/needed
@ -126,8 +126,8 @@ class GenericMediaDevice : public MediaDevice
GenericMediaFile *m_initialFile; GenericMediaFile *m_initialFile;
KIO::filesize_t m_kBSize; TDEIO::filesize_t m_kBSize;
KIO::filesize_t m_kBAvail; TDEIO::filesize_t m_kBAvail;
KDirLister *m_dirLister; KDirLister *m_dirLister;

@ -46,7 +46,7 @@ AMAROK_EXPORT_PLUGIN( IfpMediaDevice )
#include <tqregexp.h> #include <tqregexp.h>
namespace Amarok { namespace Amarok {
extern KConfig *config( const TQString& ); extern TDEConfig *config( const TQString& );
extern TQString cleanPath( const TQString&, bool ); extern TQString cleanPath( const TQString&, bool );
} }
@ -451,7 +451,7 @@ IfpMediaDevice::downloadTrack( const TQCString& src, const TQCString& dest )
void void
IfpMediaDevice::downloadSelectedItems() IfpMediaDevice::downloadSelectedItems()
{ {
// KConfig *config = Amarok::config( "MediaDevice" ); // TDEConfig *config = Amarok::config( "MediaDevice" );
// TQString save = config->readEntry( "DownloadLocation", TQString() ); //restore the save directory // TQString save = config->readEntry( "DownloadLocation", TQString() ); //restore the save directory
TQString save = TQString(); TQString save = TQString();
@ -604,7 +604,7 @@ IfpMediaDevice::addTrackToList( int type, TQString name, int /*size*/ )
/// Capacity, in kB /// Capacity, in kB
bool bool
IfpMediaDevice::getCapacity( KIO::filesize_t *total, KIO::filesize_t *available ) IfpMediaDevice::getCapacity( TDEIO::filesize_t *total, TDEIO::filesize_t *available )
{ {
if( !m_connected ) return false; if( !m_connected ) return false;

@ -57,7 +57,7 @@ class IfpMediaDevice : public MediaDevice
MediaItem *copyTrackToDevice( const MetaBundle& bundle); MediaItem *copyTrackToDevice( const MetaBundle& bundle);
int deleteItemFromDevice( MediaItem *item, int flags=DeleteTrack ); int deleteItemFromDevice( MediaItem *item, int flags=DeleteTrack );
bool getCapacity( KIO::filesize_t *total, KIO::filesize_t *available ); bool getCapacity( TDEIO::filesize_t *total, TDEIO::filesize_t *available );
MediaItem *newDirectory( const TQString &name, MediaItem *parent ); MediaItem *newDirectory( const TQString &name, MediaItem *parent );
void addToDirectory( MediaItem *directory, TQPtrList<MediaItem> items ); void addToDirectory( MediaItem *directory, TQPtrList<MediaItem> items );

@ -2197,7 +2197,7 @@ IpodMediaDevice::removeDBTrack(Itdb_Track *track)
} }
bool bool
IpodMediaDevice::getCapacity( KIO::filesize_t *total, KIO::filesize_t *available ) IpodMediaDevice::getCapacity( TDEIO::filesize_t *total, TDEIO::filesize_t *available )
{ {
if(!m_itdb) if(!m_itdb)
return false; return false;
@ -2215,8 +2215,8 @@ IpodMediaDevice::getCapacity( KIO::filesize_t *total, KIO::filesize_t *available
return false; return false;
} }
*total = buf.f_blocks * (KIO::filesize_t)buf.f_frsize; *total = buf.f_blocks * (TDEIO::filesize_t)buf.f_frsize;
*available = buf.f_bavail * (KIO::filesize_t)buf.f_frsize; *available = buf.f_bavail * (TDEIO::filesize_t)buf.f_frsize;
return *total > 0; return *total > 0;
#else #else
@ -2673,7 +2673,7 @@ IpodMediaDevice::pathExists( const TQString &ipodPath, TQString *realPath )
} }
void void
IpodMediaDevice::fileDeleted( KIO::Job *job ) //SLOT IpodMediaDevice::fileDeleted( TDEIO::Job *job ) //SLOT
{ {
if(job->error()) if(job->error())
{ {
@ -2688,9 +2688,9 @@ IpodMediaDevice::deleteFile( const KURL &url )
{ {
debug() << "deleting " << url.prettyURL() << endl; debug() << "deleting " << url.prettyURL() << endl;
m_waitForDeletion = true; m_waitForDeletion = true;
KIO::Job *job = KIO::file_delete( url, false ); TDEIO::Job *job = TDEIO::file_delete( url, false );
connect( job, TQT_SIGNAL( result( KIO::Job * ) ), connect( job, TQT_SIGNAL( result( TDEIO::Job * ) ),
this, TQT_SLOT( fileDeleted( KIO::Job * ) ) ); this, TQT_SLOT( fileDeleted( TDEIO::Job * ) ) );
do do
{ {
kapp->processEvents( 100 ); kapp->processEvents( 100 );

@ -110,14 +110,14 @@ class IpodMediaDevice : public MediaDevice
virtual void deleteFile( const KURL &url ); virtual void deleteFile( const KURL &url );
void addToPlaylist( MediaItem *list, MediaItem *after, TQPtrList<MediaItem> items ); void addToPlaylist( MediaItem *list, MediaItem *after, TQPtrList<MediaItem> items );
MediaItem *newPlaylist( const TQString &name, MediaItem *list, TQPtrList<MediaItem> items ); MediaItem *newPlaylist( const TQString &name, MediaItem *list, TQPtrList<MediaItem> items );
bool getCapacity( KIO::filesize_t *total, KIO::filesize_t *available ); bool getCapacity( TDEIO::filesize_t *total, TDEIO::filesize_t *available );
void rmbPressed( TQListViewItem* qitem, const TQPoint& point, int ); void rmbPressed( TQListViewItem* qitem, const TQPoint& point, int );
bool checkIntegrity(); bool checkIntegrity();
void updateArtwork(); void updateArtwork();
protected slots: protected slots:
void renameItem( TQListViewItem *item ); void renameItem( TQListViewItem *item );
virtual void fileDeleted( KIO::Job *job ); virtual void fileDeleted( TDEIO::Job *job );
private: private:
bool initializeIpod(); bool initializeIpod();

@ -1208,7 +1208,7 @@ MtpMediaDevice::closeDevice()
* Get the capacity and freespace available on the device, in KB * Get the capacity and freespace available on the device, in KB
*/ */
bool bool
MtpMediaDevice::getCapacity( KIO::filesize_t *total, KIO::filesize_t *available ) MtpMediaDevice::getCapacity( TDEIO::filesize_t *total, TDEIO::filesize_t *available )
{ {
if( !isConnected() ) if( !isConnected() )
return false; return false;

@ -161,7 +161,7 @@ class MtpMediaDevice : public MediaDevice
int deleteItemFromDevice( MediaItem *mediaitem, int flags=DeleteTrack ); int deleteItemFromDevice( MediaItem *mediaitem, int flags=DeleteTrack );
void addToPlaylist( MediaItem *list, MediaItem *after, TQPtrList<MediaItem> items ); void addToPlaylist( MediaItem *list, MediaItem *after, TQPtrList<MediaItem> items );
MtpMediaItem *newPlaylist( const TQString &name, MediaItem *list, TQPtrList<MediaItem> items ); MtpMediaItem *newPlaylist( const TQString &name, MediaItem *list, TQPtrList<MediaItem> items );
bool getCapacity( KIO::filesize_t *total, KIO::filesize_t *available ); bool getCapacity( TDEIO::filesize_t *total, TDEIO::filesize_t *available );
virtual void updateRootItems() {}; virtual void updateRootItems() {};
private slots: private slots:

@ -65,7 +65,7 @@ AMAROK_EXPORT_PLUGIN( NjbMediaDevice )
#include <time.h> #include <time.h>
#include <unistd.h> #include <unistd.h>
namespace Amarok { extern KConfig *config( const TQString& ); } namespace Amarok { extern TDEConfig *config( const TQString& ); }
njb_t *NjbMediaDevice::m_njb = 0; njb_t *NjbMediaDevice::m_njb = 0;
// This function has NOT handled the request, so other functions may be called // This function has NOT handled the request, so other functions may be called
// upon to do so // upon to do so
@ -133,7 +133,7 @@ NjbMediaDevice::unlockDevice()
} }
bool bool
NjbMediaDevice::getCapacity(KIO::filesize_t* total, KIO::filesize_t* available) NjbMediaDevice::getCapacity(TDEIO::filesize_t* total, TDEIO::filesize_t* available)
{ {
if(!m_connected) if(!m_connected)
return false; return false;

@ -126,7 +126,7 @@ class NjbMediaDevice : public MediaDevice
protected: protected:
virtual bool closeDevice(); virtual bool closeDevice();
virtual bool getCapacity(KIO::filesize_t* total, KIO::filesize_t* available); virtual bool getCapacity(TDEIO::filesize_t* total, TDEIO::filesize_t* available);
// virtual bool isSpecialItem(MediaItem* item); // virtual bool isSpecialItem(MediaItem* item);

@ -31,7 +31,7 @@
// KDE // KDE
#include <kdebug.h> #include <kdebug.h>
using namespace KIO; using namespace TDEIO;
// POSIX // POSIX
#include <stdlib.h> #include <stdlib.h>

@ -336,7 +336,7 @@ RioKarmaMediaDevice::closeDevice()
* Get the capacity and freespace available on the device, in KB * Get the capacity and freespace available on the device, in KB
*/ */
bool bool
RioKarmaMediaDevice::getCapacity( KIO::filesize_t *total, KIO::filesize_t *available ) RioKarmaMediaDevice::getCapacity( TDEIO::filesize_t *total, TDEIO::filesize_t *available )
{ {
if( !isConnected() ) if( !isConnected() )
return false; return false;

@ -100,7 +100,7 @@ class RioKarmaMediaDevice : public MediaDevice
int deleteItemFromDevice( MediaItem *item, int flags=DeleteTrack ); int deleteItemFromDevice( MediaItem *item, int flags=DeleteTrack );
void addToPlaylist( MediaItem *list, MediaItem *after, TQPtrList<MediaItem> items ); void addToPlaylist( MediaItem *list, MediaItem *after, TQPtrList<MediaItem> items );
RioKarmaMediaItem *newPlaylist( const TQString &name, MediaItem *list, TQPtrList<MediaItem> items ); RioKarmaMediaItem *newPlaylist( const TQString &name, MediaItem *list, TQPtrList<MediaItem> items );
bool getCapacity( KIO::filesize_t *total, KIO::filesize_t *available ); bool getCapacity( TDEIO::filesize_t *total, TDEIO::filesize_t *available );
virtual void updateRootItems() {}; virtual void updateRootItems() {};
private: private:

@ -51,7 +51,7 @@ MediaDeviceManager::MediaDeviceManager()
} }
//load manual devices //load manual devices
TQStringList manualDevices; TQStringList manualDevices;
KConfig *config = Amarok::config( "MediaBrowser" ); TDEConfig *config = Amarok::config( "MediaBrowser" );
TQMap<TQString,TQString> savedDevices = config->entryMap( "MediaBrowser" ); TQMap<TQString,TQString> savedDevices = config->entryMap( "MediaBrowser" );
TQMap<TQString,TQString>::Iterator qit; TQMap<TQString,TQString>::Iterator qit;
TQString curr, currMountPoint, currName; TQString curr, currMountPoint, currName;

@ -166,7 +166,7 @@ void Medium::setFsType(const TQString &type)
void Medium::setUserLabel(const TQString &label) void Medium::setUserLabel(const TQString &label)
{ {
KConfig cfg("mediamanagerrc"); TDEConfig cfg("mediamanagerrc");
cfg.setGroup("UserLabels"); cfg.setGroup("UserLabels");
TQString entry_name = m_properties[ID]; TQString entry_name = m_properties[ID];
@ -185,7 +185,7 @@ void Medium::setUserLabel(const TQString &label)
void Medium::loadUserLabel() void Medium::loadUserLabel()
{ {
KConfig cfg("mediamanagerrc"); TDEConfig cfg("mediamanagerrc");
cfg.setGroup("UserLabels"); cfg.setGroup("UserLabels");
TQString entry_name = m_properties[ID]; TQString entry_name = m_properties[ID];

@ -114,7 +114,7 @@ bool
MediumPluginManager::detectDevices( const bool redetect, const bool nographics ) MediumPluginManager::detectDevices( const bool redetect, const bool nographics )
{ {
bool foundNew = false; bool foundNew = false;
KConfig *config = Amarok::config( "MediaBrowser" ); TDEConfig *config = Amarok::config( "MediaBrowser" );
if( redetect ) if( redetect )
DeviceManager::instance()->reconcileMediumMap(); DeviceManager::instance()->reconcileMediumMap();
MediumMap mmap = MediaDeviceManager::instance()->getMediumMap(); MediumMap mmap = MediaDeviceManager::instance()->getMediumMap();
@ -210,7 +210,7 @@ MediumPluginManager::finished()
(*it)->configButton()->setEnabled( (*it)->pluginCombo()->currentText() != i18n( "Do not handle" ) ); (*it)->configButton()->setEnabled( (*it)->pluginCombo()->currentText() != i18n( "Do not handle" ) );
} }
KConfig *config = Amarok::config( "MediaBrowser" ); TDEConfig *config = Amarok::config( "MediaBrowser" );
for( DeletedMap::Iterator dit = m_deletedMap.begin(); for( DeletedMap::Iterator dit = m_deletedMap.begin();
dit != m_deletedMap.end(); dit != m_deletedMap.end();
++dit ) ++dit )
@ -387,7 +387,7 @@ MediaDeviceConfig::MediaDeviceConfig( Medium *medium, MediumPluginManager *mgr,
if( !m_medium ) if( !m_medium )
return; return;
KConfig *config = Amarok::config( "MediaBrowser" ); TDEConfig *config = Amarok::config( "MediaBrowser" );
m_oldPlugin = config->readEntry( m_medium->id() ); m_oldPlugin = config->readEntry( m_medium->id() );
if( !m_oldPlugin.isEmpty() ) if( !m_oldPlugin.isEmpty() )
m_new = false; m_new = false;

@ -1232,7 +1232,7 @@ MetaBundle::prettyBitrate( int i )
TQString TQString
MetaBundle::prettyFilesize( int s ) MetaBundle::prettyFilesize( int s )
{ {
return KIO::convertSize( s ); return TDEIO::convertSize( s );
} }
TQString TQString

@ -404,7 +404,7 @@ MountPointManager::collectionFolders( )
{ {
//TODO max: cache data //TODO max: cache data
TQStringList result; TQStringList result;
KConfig* const folders = Amarok::config( "Collection Folders" ); TDEConfig* const folders = Amarok::config( "Collection Folders" );
IdList ids = getMountedDeviceIds(); IdList ids = getMountedDeviceIds();
foreachType( IdList, ids ) foreachType( IdList, ids )
{ {
@ -432,7 +432,7 @@ MountPointManager::setCollectionFolders( const TQStringList &folders )
{ {
//TODO max: cache data //TODO max: cache data
typedef TQMap<int, TQStringList> FolderMap; typedef TQMap<int, TQStringList> FolderMap;
KConfig* const folderConf = Amarok::config( "Collection Folders" ); TDEConfig* const folderConf = Amarok::config( "Collection Folders" );
FolderMap folderMap; FolderMap folderMap;
foreach( folders ) foreach( folders )
{ {

@ -73,7 +73,7 @@ public:
virtual bool canCreateFromConfig() const = 0; virtual bool canCreateFromConfig() const = 0;
virtual DeviceHandler* createHandler( const KConfig* c ) const = 0; virtual DeviceHandler* createHandler( const TDEConfig* c ) const = 0;
/** /**
* returns the type of the DeviceHandler. Should be the same as the value used in * returns the type of the DeviceHandler. Should be the same as the value used in

@ -50,7 +50,7 @@
#define NEARBYINT(i) ((int(float(i) + 0.5))) #define NEARBYINT(i) ((int(float(i) + 0.5)))
namespace Amarok { extern KConfig *config( const TQString& ); } namespace Amarok { extern TDEConfig *config( const TQString& ); }
class MultiTabBarTabPrivate class MultiTabBarTabPrivate
{ {

@ -808,7 +808,7 @@ Amarok::OSD::show( const MetaBundle &bundle ) //slot
text = osd.namedOptArgs( args ); text = osd.namedOptArgs( args );
// KDE 3.3 rejects \n in the .kcfg file, and KConfig turns \n into \\n, so... // KDE 3.3 rejects \n in the .kcfg file, and TDEConfig turns \n into \\n, so...
text.replace( "\\n", "\n" ); text.replace( "\\n", "\n" );
} }

@ -700,9 +700,9 @@ Playlist::restoreSession()
Copyright (C) 2000,2003 Charles Samuels <charles@kde.org> Copyright (C) 2000,2003 Charles Samuels <charles@kde.org>
Copyright (C) 2000 Peter Putzer Copyright (C) 2000 Peter Putzer
*/ */
void Playlist::saveLayout(KConfig *config, const TQString &group) const void Playlist::saveLayout(TDEConfig *config, const TQString &group) const
{ {
KConfigGroupSaver saver(config, group); TDEConfigGroupSaver saver(config, group);
TQStringList names, widths, order; TQStringList names, widths, order;
const int colCount = columns(); const int colCount = columns();
@ -721,9 +721,9 @@ void Playlist::saveLayout(KConfig *config, const TQString &group) const
config->writeEntry("SortAscending", ascendingSort()); config->writeEntry("SortAscending", ascendingSort());
} }
void Playlist::restoreLayout(KConfig *config, const TQString &group) void Playlist::restoreLayout(TDEConfig *config, const TQString &group)
{ {
KConfigGroupSaver saver(config, group); TDEConfigGroupSaver saver(config, group);
int version = config->readNumEntry("ColumnsVersion", 0); int version = config->readNumEntry("ColumnsVersion", 0);
TQValueList<int> iorder; //internal ordering TQValueList<int> iorder; //internal ordering

@ -171,8 +171,8 @@ class Playlist : private KListView, public EngineObserver, public Amarok::ToolTi
void unlock(); void unlock();
//reimplemented to save columns by name instead of index, to be more resilient to reorderings and such //reimplemented to save columns by name instead of index, to be more resilient to reorderings and such
void saveLayout(KConfig *config, const TQString &group) const; void saveLayout(TDEConfig *config, const TQString &group) const;
void restoreLayout(KConfig *config, const TQString &group); void restoreLayout(TDEConfig *config, const TQString &group);
//AFT-related functions //AFT-related functions
bool checkFileStatus( PlaylistItem * item ); bool checkFileStatus( PlaylistItem * item );

@ -1139,7 +1139,7 @@ PlaylistCategory* PlaylistBrowser::loadPodcasts()
PlaylistCategory *p = new PlaylistCategory( m_listview, after, e ); PlaylistCategory *p = new PlaylistCategory( m_listview, after, e );
p->setId( 0 ); p->setId( 0 );
//delete the file, it is deprecated //delete the file, it is deprecated
KIO::del( KURL::fromPathOrURL( podcastBrowserCache() ) ); TDEIO::del( KURL::fromPathOrURL( podcastBrowserCache() ) );
if( !m_podcastItemsToScan.isEmpty() ) if( !m_podcastItemsToScan.isEmpty() )
m_podcastTimer->start( m_podcastTimerInterval ); m_podcastTimer->start( m_podcastTimerInterval );
@ -1507,7 +1507,7 @@ bool PlaylistBrowser::deleteSelectedPodcastItems( const bool removeItem, const b
if( silent || button != KMessageBox::Continue ) if( silent || button != KMessageBox::Continue )
return false; return false;
KIO::Job *job = KIO::del( urls ); TDEIO::Job *job = TDEIO::del( urls );
PodcastEpisode *item; PodcastEpisode *item;
for ( item = erasedItems.first(); item; item = erasedItems.next() ) for ( item = erasedItems.first(); item; item = erasedItems.next() )
@ -1518,7 +1518,7 @@ bool PlaylistBrowser::deleteSelectedPodcastItems( const bool removeItem, const b
delete item; delete item;
} }
else else
connect( job, TQT_SIGNAL( result( KIO::Job* ) ), item, TQT_SLOT( isOnDisk() ) );; connect( job, TQT_SIGNAL( result( TDEIO::Job* ) ), item, TQT_SLOT( isOnDisk() ) );;
} }
return true; return true;
} }
@ -1548,7 +1548,7 @@ bool PlaylistBrowser::deletePodcasts( TQPtrList<PodcastChannel> items )
} }
// TODO We need to check which files have been deleted successfully // TODO We need to check which files have been deleted successfully
if ( urls.count() ) if ( urls.count() )
KIO::del( urls ); TDEIO::del( urls );
return true; return true;
} }
@ -1897,7 +1897,7 @@ bool PlaylistBrowser::deletePlaylists( KURL::List items )
continue; continue;
} }
} }
KIO::del( items ); TDEIO::del( items );
return true; return true;
} }

@ -1737,7 +1737,7 @@ PodcastChannel::setSettings( PodcastSettings *newSettings )
{ {
//create the local directory first //create the local directory first
PodcastEpisode::createLocalDir( newSettings->saveLocation() ); PodcastEpisode::createLocalDir( newSettings->saveLocation() );
KIO::CopyJob* m_podcastMoveJob = KIO::move( copyList, KURL::fromPathOrURL( newSettings->saveLocation() ), false ); TDEIO::CopyJob* m_podcastMoveJob = TDEIO::move( copyList, KURL::fromPathOrURL( newSettings->saveLocation() ), false );
Amarok::StatusBar::instance()->newProgressOperation( m_podcastMoveJob ) Amarok::StatusBar::instance()->newProgressOperation( m_podcastMoveJob )
.setDescription( i18n( "Moving Podcasts" ) ); .setDescription( i18n( "Moving Podcasts" ) );
} }
@ -1798,13 +1798,13 @@ PodcastChannel::fetch()
startAnimation(); startAnimation();
connect( &m_animationTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotAnimation()) ); connect( &m_animationTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotAnimation()) );
m_podcastJob = KIO::storedGet( m_url, false, false ); m_podcastJob = TDEIO::storedGet( m_url, false, false );
Amarok::StatusBar::instance()->newProgressOperation( m_podcastJob ) Amarok::StatusBar::instance()->newProgressOperation( m_podcastJob )
.setDescription( i18n( "Fetching Podcast" ) ) .setDescription( i18n( "Fetching Podcast" ) )
.setAbortSlot( this, TQT_SLOT( abortFetch() ) ); .setAbortSlot( this, TQT_SLOT( abortFetch() ) );
connect( m_podcastJob, TQT_SIGNAL( result( KIO::Job* ) ), TQT_SLOT( fetchResult( KIO::Job* ) ) ); connect( m_podcastJob, TQT_SIGNAL( result( TDEIO::Job* ) ), TQT_SLOT( fetchResult( TDEIO::Job* ) ) );
} }
void void
@ -1819,7 +1819,7 @@ PodcastChannel::abortFetch()
} }
void void
PodcastChannel::fetchResult( KIO::Job* job ) //SLOT PodcastChannel::fetchResult( TDEIO::Job* job ) //SLOT
{ {
stopAnimation(); stopAnimation();
if ( job->error() != 0 ) if ( job->error() != 0 )
@ -1835,7 +1835,7 @@ PodcastChannel::fetchResult( KIO::Job* job ) //SLOT
return; return;
} }
KIO::StoredTransferJob* const storedJob = static_cast<KIO::StoredTransferJob*>( job ); TDEIO::StoredTransferJob* const storedJob = static_cast<TDEIO::StoredTransferJob*>( job );
TQDomDocument d; TQDomDocument d;
@ -2213,7 +2213,7 @@ PodcastChannel::purge()
} }
if( !urlsToDelete.isEmpty() ) if( !urlsToDelete.isEmpty() )
KIO::del( urlsToDelete ); TDEIO::del( urlsToDelete );
} }
void void
@ -2560,21 +2560,21 @@ PodcastEpisode::downloadMedia()
//filename might get changed by redirects later. //filename might get changed by redirects later.
m_filename = url().fileName(); m_filename = url().fileName();
m_localUrl = localDir; m_localUrl = localDir;
m_podcastEpisodeJob = KIO::storedGet( url().url(), false, false); m_podcastEpisodeJob = TDEIO::storedGet( url().url(), false, false);
Amarok::StatusBar::instance()->newProgressOperation( m_podcastEpisodeJob ) Amarok::StatusBar::instance()->newProgressOperation( m_podcastEpisodeJob )
.setDescription( title().isEmpty() .setDescription( title().isEmpty()
? i18n( "Downloading Podcast Media" ) ? i18n( "Downloading Podcast Media" )
: i18n( "Downloading Podcast \"%1\"" ).arg( title() ) ) : i18n( "Downloading Podcast \"%1\"" ).arg( title() ) )
.setAbortSlot( this, TQT_SLOT( abortDownload()) ) .setAbortSlot( this, TQT_SLOT( abortDownload()) )
.setProgressSignal( m_podcastEpisodeJob, TQT_SIGNAL( percent( KIO::Job *, unsigned long ) ) ); .setProgressSignal( m_podcastEpisodeJob, TQT_SIGNAL( percent( TDEIO::Job *, unsigned long ) ) );
connect( m_podcastEpisodeJob, TQT_SIGNAL( result( KIO::Job * ) ), TQT_SLOT( downloadResult( KIO::Job * ) ) ); connect( m_podcastEpisodeJob, TQT_SIGNAL( result( TDEIO::Job * ) ), TQT_SLOT( downloadResult( TDEIO::Job * ) ) );
connect( m_podcastEpisodeJob, TQT_SIGNAL( redirection( KIO::Job *,const KURL& ) ), TQT_SLOT( redirected( KIO::Job *,const KURL& ) ) ); connect( m_podcastEpisodeJob, TQT_SIGNAL( redirection( TDEIO::Job *,const KURL& ) ), TQT_SLOT( redirected( TDEIO::Job *,const KURL& ) ) );
} }
/* change the localurl if redirected, allows us to use the original filename to transfer to mediadevices*/ /* change the localurl if redirected, allows us to use the original filename to transfer to mediadevices*/
void PodcastEpisode::redirected( KIO::Job *, const KURL & redirectedUrl ) void PodcastEpisode::redirected( TDEIO::Job *, const KURL & redirectedUrl )
{ {
debug() << "redirecting to " << redirectedUrl << ". filename: " << redirectedUrl.fileName() << endl; debug() << "redirecting to " << redirectedUrl << ". filename: " << redirectedUrl.fileName() << endl;
m_filename = redirectedUrl.fileName(); m_filename = redirectedUrl.fileName();
@ -2608,7 +2608,7 @@ PodcastEpisode::abortDownload() //SLOT
updatePixmap(); updatePixmap();
} }
void PodcastEpisode::downloadResult( KIO::Job * transferJob ) void PodcastEpisode::downloadResult( TDEIO::Job * transferJob )
{ {
emit downloadFinished(); emit downloadFinished();
stopAnimation(); stopAnimation();
@ -3493,10 +3493,10 @@ void ShoutcastBrowser::setOpen( bool open )
if ( !m_downloading ) if ( !m_downloading )
{ {
m_downloading = true; m_downloading = true;
m_cj = KIO::copy( "http://www.shoutcast.com/sbin/newxml.phtml", tmpfile, false ); m_cj = TDEIO::copy( "http://www.shoutcast.com/sbin/newxml.phtml", tmpfile, false );
connect( m_cj, TQT_SIGNAL( copyingDone( KIO::Job*, const KURL&, const KURL&, bool, bool)) connect( m_cj, TQT_SIGNAL( copyingDone( TDEIO::Job*, const KURL&, const KURL&, bool, bool))
, this, TQT_SLOT(doneGenreDownload(KIO::Job*, const KURL&, const KURL&, bool, bool ))); , this, TQT_SLOT(doneGenreDownload(TDEIO::Job*, const KURL&, const KURL&, bool, bool )));
connect( m_cj, TQT_SIGNAL( result( KIO::Job* )), this, TQT_SLOT( jobFinished( KIO::Job* ))); connect( m_cj, TQT_SIGNAL( result( TDEIO::Job* )), this, TQT_SLOT( jobFinished( TDEIO::Job* )));
} }
TQListViewItem::setOpen( open ); TQListViewItem::setOpen( open );
@ -3512,7 +3512,7 @@ void ShoutcastBrowser::slotAnimation()
s_iconCounter++; s_iconCounter++;
} }
void ShoutcastBrowser::doneGenreDownload( KIO::Job *job, const KURL &from, const KURL &to, bool directory, bool renamed ) void ShoutcastBrowser::doneGenreDownload( TDEIO::Job *job, const KURL &from, const KURL &to, bool directory, bool renamed )
{ {
Q_UNUSED( job ); Q_UNUSED( from ); Q_UNUSED( directory ); Q_UNUSED( renamed ); Q_UNUSED( job ); Q_UNUSED( from ); Q_UNUSED( directory ); Q_UNUSED( renamed );
@ -3534,7 +3534,7 @@ void ShoutcastBrowser::doneGenreDownload( KIO::Job *job, const KURL &from, const
file.close(); file.close();
KIO::del( to, false, false ); TDEIO::del( to, false, false );
// We use this list to filter out some obscure genres // We use this list to filter out some obscure genres
TQStringList bannedGenres; TQStringList bannedGenres;
@ -3602,7 +3602,7 @@ void ShoutcastBrowser::doneGenreDownload( KIO::Job *job, const KURL &from, const
setOpen( true ); setOpen( true );
} }
void ShoutcastBrowser::jobFinished( KIO::Job *job ) void ShoutcastBrowser::jobFinished( TDEIO::Job *job )
{ {
m_downloading = false; m_downloading = false;
m_animationTimer.stop(); m_animationTimer.stop();
@ -3660,11 +3660,11 @@ void ShoutcastGenre::setOpen( bool open )
void ShoutcastGenre::startGenreDownload( TQString genre, TQString tmppath ) void ShoutcastGenre::startGenreDownload( TQString genre, TQString tmppath )
{ {
TQString tmpfile = tmppath + "/amarok-list-" + genre + "-" + TDEApplication::randomString(10) + ".xml"; TQString tmpfile = tmppath + "/amarok-list-" + genre + "-" + TDEApplication::randomString(10) + ".xml";
KIO::CopyJob *cj = KIO::copy( "http://www.shoutcast.com/sbin/newxml.phtml?genre=" + genre, tmpfile, false ); TDEIO::CopyJob *cj = TDEIO::copy( "http://www.shoutcast.com/sbin/newxml.phtml?genre=" + genre, tmpfile, false );
connect( cj, TQT_SIGNAL( copyingDone ( KIO::Job*, const KURL&, const KURL&, bool, bool ) ), connect( cj, TQT_SIGNAL( copyingDone ( TDEIO::Job*, const KURL&, const KURL&, bool, bool ) ),
this, TQT_SLOT( doneListDownload( KIO::Job*, const KURL&, const KURL&, bool, bool ) ) ); this, TQT_SLOT( doneListDownload( TDEIO::Job*, const KURL&, const KURL&, bool, bool ) ) );
connect( cj, TQT_SIGNAL( result ( KIO::Job* ) ), connect( cj, TQT_SIGNAL( result ( TDEIO::Job* ) ),
this, TQT_SLOT( jobFinished( KIO::Job* ) ) ); this, TQT_SLOT( jobFinished( TDEIO::Job* ) ) );
m_totalJobs++; m_totalJobs++;
} }
@ -3678,7 +3678,7 @@ void ShoutcastGenre::slotAnimation()
s_iconCounter++; s_iconCounter++;
} }
void ShoutcastGenre::doneListDownload( KIO::Job *job, const KURL &from, const KURL &to, bool directory, bool renamed ) void ShoutcastGenre::doneListDownload( TDEIO::Job *job, const KURL &from, const KURL &to, bool directory, bool renamed )
{ {
Q_UNUSED( job ); Q_UNUSED( from ); Q_UNUSED( directory ); Q_UNUSED( renamed ); Q_UNUSED( job ); Q_UNUSED( from ); Q_UNUSED( directory ); Q_UNUSED( renamed );
@ -3702,7 +3702,7 @@ void ShoutcastGenre::doneListDownload( KIO::Job *job, const KURL &from, const KU
file.close(); file.close();
KIO::del(to, false, false); TDEIO::del(to, false, false);
//Go through the XML file and add all the stations //Go through the XML file and add all the stations
TQDomElement docElem = doc.documentElement(); TQDomElement docElem = doc.documentElement();
@ -3733,7 +3733,7 @@ void ShoutcastGenre::doneListDownload( KIO::Job *job, const KURL &from, const KU
} }
} }
void ShoutcastGenre::jobFinished( KIO::Job *job ) void ShoutcastGenre::jobFinished( TDEIO::Job *job )
{ {
m_downloading = false; m_downloading = false;
m_animationTimer.stop(); m_animationTimer.stop();

@ -31,7 +31,7 @@ class MetaBundle;
class PlaylistTrackItem; class PlaylistTrackItem;
class TrackItemInfo; class TrackItemInfo;
namespace KIO { class Job; class TransferJob; class CopyJob; } //podcast downloads namespace TDEIO { class Job; class TransferJob; class CopyJob; } //podcast downloads
/** /**
* RTTI VALUES * RTTI VALUES
@ -313,9 +313,9 @@ class PodcastEpisode : public PlaylistBrowserEntry
private slots: private slots:
void abortDownload(); void abortDownload();
void downloadResult( KIO::Job * transferJob ); void downloadResult( TDEIO::Job * transferJob );
void slotAnimation(); void slotAnimation();
void redirected( KIO::Job * job,const KURL & redirectedUrl ); void redirected( TDEIO::Job * job,const KURL & redirectedUrl );
private: private:
enum FeedType{ RSS=0, ATOM=1 }; enum FeedType{ RSS=0, ATOM=1 };
@ -336,7 +336,7 @@ class PodcastEpisode : public PlaylistBrowserEntry
TQTimer m_animationTimer; TQTimer m_animationTimer;
uint m_iconCounter; uint m_iconCounter;
KIO::StoredTransferJob* m_podcastEpisodeJob; TDEIO::StoredTransferJob* m_podcastEpisodeJob;
TQString m_filename; TQString m_filename;
bool m_downloaded; //marked as downloaded in cached xml bool m_downloaded; //marked as downloaded in cached xml
@ -411,7 +411,7 @@ class PodcastChannel : public PlaylistBrowserEntry
private slots: private slots:
void abortFetch(); void abortFetch();
void downloadChildQueue(); void downloadChildQueue();
void fetchResult( KIO::Job* job ); void fetchResult( TDEIO::Job* job );
void slotAnimation(); void slotAnimation();
private: private:
@ -442,7 +442,7 @@ class PodcastChannel : public PlaylistBrowserEntry
bool m_new; bool m_new;
bool m_hasProblem; bool m_hasProblem;
KIO::TransferJob *m_podcastJob; TDEIO::TransferJob *m_podcastJob;
PlaylistCategory *m_parent; // category it belongs to PlaylistCategory *m_parent; // category it belongs to
TQString m_podcastCurrentUrl; TQString m_podcastCurrentUrl;
TQPtrList<PodcastEpisode> m_podcastDownloadQueue; TQPtrList<PodcastEpisode> m_podcastDownloadQueue;
@ -599,13 +599,13 @@ class ShoutcastBrowser : public PlaylistCategory
virtual void slotDoubleClicked(); virtual void slotDoubleClicked();
private slots: private slots:
void doneGenreDownload( KIO::Job *job, const KURL &from, const KURL &to, bool directory, bool renamed ); void doneGenreDownload( TDEIO::Job *job, const KURL &from, const KURL &to, bool directory, bool renamed );
void jobFinished( KIO::Job *job ); void jobFinished( TDEIO::Job *job );
void slotAnimation(); void slotAnimation();
private: private:
bool m_downloading; bool m_downloading;
KIO::CopyJob *m_cj; TDEIO::CopyJob *m_cj;
TQPixmap *m_loading1, *m_loading2; //icons for loading animation TQPixmap *m_loading1, *m_loading2; //icons for loading animation
TQTimer m_animationTimer; TQTimer m_animationTimer;
}; };
@ -630,8 +630,8 @@ class ShoutcastGenre : public PlaylistCategory
virtual void slotDoubleClicked(); virtual void slotDoubleClicked();
private slots: private slots:
void doneListDownload( KIO::Job *job, const KURL &from, const KURL &to, bool directory, bool renamed ); void doneListDownload( TDEIO::Job *job, const KURL &from, const KURL &to, bool directory, bool renamed );
void jobFinished( KIO::Job *job ); void jobFinished( TDEIO::Job *job );
void slotAnimation(); void slotAnimation();
private: private:

@ -987,7 +987,7 @@ RemotePlaylistFetcher::RemotePlaylistFetcher( const KURL &source, TQListViewItem
m_destination.setPath( m_temp->name() ); m_destination.setPath( m_temp->name() );
KIO::Job *job = KIO::file_copy( m_source, m_destination, TDEIO::Job *job = TDEIO::file_copy( m_source, m_destination,
-1, /* permissions, this means "do what you think" */ -1, /* permissions, this means "do what you think" */
true, /* overwrite */ true, /* overwrite */
false, /* resume download */ false, /* resume download */
@ -996,7 +996,7 @@ RemotePlaylistFetcher::RemotePlaylistFetcher( const KURL &source, TQListViewItem
Amarok::StatusBar::instance()->newProgressOperation( job ) Amarok::StatusBar::instance()->newProgressOperation( job )
.setDescription( i18n("Retrieving Playlist") ); .setDescription( i18n("Retrieving Playlist") );
connect( job, TQT_SIGNAL(result( KIO::Job* )), TQT_SLOT(result( KIO::Job* )) ); connect( job, TQT_SIGNAL(result( TDEIO::Job* )), TQT_SLOT(result( TDEIO::Job* )) );
Playlist::instance()->lock(); Playlist::instance()->lock();
} }
@ -1009,7 +1009,7 @@ RemotePlaylistFetcher::~RemotePlaylistFetcher()
} }
void void
RemotePlaylistFetcher::result( KIO::Job *job ) RemotePlaylistFetcher::result( TDEIO::Job *job )
{ {
if( job->error() ) { if( job->error() ) {
error() << "Couldn't download remote playlist\n"; error() << "Couldn't download remote playlist\n";

@ -21,7 +21,7 @@ class PlaylistItem;
class PLItemList; class PLItemList;
class XMLData; class XMLData;
namespace KIO { class Job; } namespace TDEIO { class Job; }
/** /**
@ -195,7 +195,7 @@ public:
~RemotePlaylistFetcher(); ~RemotePlaylistFetcher();
private slots: private slots:
void result( KIO::Job* ); void result( TDEIO::Job* );
void abort() { delete this; } void abort() { delete this; }
}; };

@ -39,7 +39,7 @@ namespace Amarok
virtual bool isDefault() const = 0; virtual bool isDefault() const = 0;
public slots: public slots:
/** Save view state using, eg KConfig */ /** Save view state using, eg TDEConfig */
virtual void save() = 0; virtual void save() = 0;
}; };
} }

@ -72,7 +72,7 @@ PrettyPopupMenu::sideImageRect() const
TQColor TQColor
PrettyPopupMenu::calcPixmapColor() PrettyPopupMenu::calcPixmapColor()
{ {
KConfig *config = TDEGlobal::config(); TDEConfig *config = TDEGlobal::config();
config->setGroup("WM"); config->setGroup("WM");
TQColor color = TQApplication::palette().active().highlight(); TQColor color = TQApplication::palette().active().highlight();
// TQColor activeTitle = TQApplication::palette().active().background(); // TQColor activeTitle = TQApplication::palette().active().background();

@ -58,20 +58,20 @@ RefreshImages::RefreshImages()
debug() << url << endl; debug() << url << endl;
KIO::TransferJob* job = KIO::storedGet( url, false, false ); TDEIO::TransferJob* job = TDEIO::storedGet( url, false, false );
KIO::Scheduler::scheduleJob( job ); TDEIO::Scheduler::scheduleJob( job );
//Amarok::StatusBar::instance()->newProgressOperation( job ); //Amarok::StatusBar::instance()->newProgressOperation( job );
job->setName( md5sum.ascii() ); job->setName( md5sum.ascii() );
it++; //iterate to the next set it++; //iterate to the next set
m_jobInfo[md5sum] = JobInfo( asin, locale, it == end ); m_jobInfo[md5sum] = JobInfo( asin, locale, it == end );
connect( job, TQT_SIGNAL( result( KIO::Job* ) ), TQT_SLOT( finishedXmlFetch( KIO::Job* ) ) ); connect( job, TQT_SIGNAL( result( TDEIO::Job* ) ), TQT_SLOT( finishedXmlFetch( TDEIO::Job* ) ) );
} }
} }
void void
RefreshImages::finishedXmlFetch( KIO::Job* xmlJob ) //SLOT RefreshImages::finishedXmlFetch( TDEIO::Job* xmlJob ) //SLOT
{ {
if ( xmlJob->error() ) if ( xmlJob->error() )
{ {
@ -82,7 +82,7 @@ RefreshImages::finishedXmlFetch( KIO::Job* xmlJob ) //SLOT
return; return;
} }
KIO::StoredTransferJob* const storedJob = static_cast<KIO::StoredTransferJob*>( xmlJob ); TDEIO::StoredTransferJob* const storedJob = static_cast<TDEIO::StoredTransferJob*>( xmlJob );
const TQString xml = TQString::fromUtf8( storedJob->data().data(), storedJob->data().size() ); const TQString xml = TQString::fromUtf8( storedJob->data().data(), storedJob->data().size() );
TQDomDocument doc; TQDomDocument doc;
@ -114,8 +114,8 @@ RefreshImages::finishedXmlFetch( KIO::Job* xmlJob ) //SLOT
return; return;
} }
KIO::TransferJob* imageJob = KIO::storedGet( imageUrl, false, false ); TDEIO::TransferJob* imageJob = TDEIO::storedGet( imageUrl, false, false );
KIO::Scheduler::scheduleJob(imageJob); TDEIO::Scheduler::scheduleJob(imageJob);
//Amarok::StatusBar::instance()->newProgressOperation( imageJob ); //Amarok::StatusBar::instance()->newProgressOperation( imageJob );
imageJob->setName(xmlJob->name()); imageJob->setName(xmlJob->name());
//get the URL of the detail page //get the URL of the detail page
@ -123,10 +123,10 @@ RefreshImages::finishedXmlFetch( KIO::Job* xmlJob ) //SLOT
.namedItem( "Items" ) .namedItem( "Items" )
.namedItem( "Item" ) .namedItem( "Item" )
.namedItem( "DetailPageURL" ).firstChild().toText().data(); .namedItem( "DetailPageURL" ).firstChild().toText().data();
connect( imageJob, TQT_SIGNAL( result(KIO::Job*) ), TQT_SLOT( finishedImageFetch(KIO::Job*) ) ); connect( imageJob, TQT_SIGNAL( result(TDEIO::Job*) ), TQT_SLOT( finishedImageFetch(TDEIO::Job*) ) );
} }
void RefreshImages::finishedImageFetch(KIO::Job* imageJob) void RefreshImages::finishedImageFetch(TDEIO::Job* imageJob)
{ {
if( imageJob->error() ) { if( imageJob->error() ) {
Amarok::StatusBar::instance()->shortMessage(i18n("There was an error communicating with Amazon.")); Amarok::StatusBar::instance()->shortMessage(i18n("There was an error communicating with Amazon."));
@ -136,7 +136,7 @@ void RefreshImages::finishedImageFetch(KIO::Job* imageJob)
return; return;
} }
TQImage img; TQImage img;
img.loadFromData(static_cast<KIO::StoredTransferJob*>(imageJob)->data()); img.loadFromData(static_cast<TDEIO::StoredTransferJob*>(imageJob)->data());
img.setText( "amazon-url", 0, m_jobInfo[imageJob->name()].m_detailUrl); img.setText( "amazon-url", 0, m_jobInfo[imageJob->name()].m_detailUrl);
img.save( Amarok::saveLocation("albumcovers/large/") + imageJob->name(), "PNG"); img.save( Amarok::saveLocation("albumcovers/large/") + imageJob->name(), "PNG");

@ -5,7 +5,7 @@
#define AMAROK_REFRESHIMAGES_H #define AMAROK_REFRESHIMAGES_H
#include <tqobject.h> #include <tqobject.h>
namespace KIO { namespace TDEIO {
class StoredTransferJob; class StoredTransferJob;
class Job; class Job;
} }
@ -30,8 +30,8 @@ class RefreshImages : public TQObject
public: public:
RefreshImages(); RefreshImages();
private slots: private slots:
void finishedXmlFetch( KIO::Job* ); void finishedXmlFetch( TDEIO::Job* );
void finishedImageFetch( KIO::Job* ); void finishedImageFetch( TDEIO::Job* );
private: private:
static TQString localeToTLD(const TQString& locale); static TQString localeToTLD(const TQString& locale);
TQMap<TQString, JobInfo> m_jobInfo; TQMap<TQString, JobInfo> m_jobInfo;

@ -173,7 +173,7 @@ ScriptManager::ScriptManager( TQWidget *parent, const char *name )
m_transcodeCategory->setPixmap( 0, SmallIcon( Amarok::icon( "files" ) ) ); m_transcodeCategory->setPixmap( 0, SmallIcon( Amarok::icon( "files" ) ) );
// Restore the open/closed state of the category items // Restore the open/closed state of the category items
KConfig* const config = Amarok::config( "ScriptManager" ); TDEConfig* const config = Amarok::config( "ScriptManager" );
m_generalCategory ->setOpen( config->readBoolEntry( "General category open" ) ); m_generalCategory ->setOpen( config->readBoolEntry( "General category open" ) );
m_lyricsCategory ->setOpen( config->readBoolEntry( "Lyrics category open" ) ); m_lyricsCategory ->setOpen( config->readBoolEntry( "Lyrics category open" ) );
m_scoreCategory ->setOpen( config->readBoolEntry( "Score category State" ) ); m_scoreCategory ->setOpen( config->readBoolEntry( "Score category State" ) );
@ -225,7 +225,7 @@ ScriptManager::~ScriptManager()
} }
// Save config // Save config
KConfig* const config = Amarok::config( "ScriptManager" ); TDEConfig* const config = Amarok::config( "ScriptManager" );
config->writeEntry( "Running Scripts", runningScripts ); config->writeEntry( "Running Scripts", runningScripts );
// Save the open/closed state of the category items // Save the open/closed state of the category items
@ -365,7 +365,7 @@ ScriptManager::findScripts() //SLOT
// Handle auto-run: // Handle auto-run:
KConfig* const config = Amarok::config( "ScriptManager" ); TDEConfig* const config = Amarok::config( "ScriptManager" );
const TQStringList runningScripts = config->readListEntry( "Running Scripts" ); const TQStringList runningScripts = config->readListEntry( "Running Scripts" );
{ {
@ -453,7 +453,7 @@ ScriptManager::slotInstallScript( const TQString& path )
"Please inform the package maintainer about this error.</p>" ) ); "Please inform the package maintainer about this error.</p>" ) );
// Delete directory recursively // Delete directory recursively
KIO::NetAccess::del( KURL::fromPathOrURL( scriptFolder ), 0 ); TDEIO::NetAccess::del( KURL::fromPathOrURL( scriptFolder ), 0 );
} }
return false; return false;
@ -537,7 +537,7 @@ ScriptManager::slotUninstallScript()
} }
// Delete script directory recursively // Delete script directory recursively
if( !KIO::NetAccess::del( scriptDirURL, 0 ) ) { if( !TDEIO::NetAccess::del( scriptDirURL, 0 ) ) {
KMessageBox::sorry( 0, i18n( "<p>Could not uninstall this script.</p><p>The ScriptManager can only uninstall scripts which have been installed as packages.</p>" ) ); // only true when not running as root (which is reasonable) KMessageBox::sorry( 0, i18n( "<p>Could not uninstall this script.</p><p>The ScriptManager can only uninstall scripts which have been installed as packages.</p>" ) ); // only true when not running as root (which is reasonable)
return; return;
} }
@ -879,7 +879,7 @@ ScriptManager::loadScript( const TQString& path )
KListViewItem* li = 0; KListViewItem* li = 0;
const TQString specPath = info.dirPath() + '/' + info.baseName( true ) + ".spec"; const TQString specPath = info.dirPath() + '/' + info.baseName( true ) + ".spec";
if( TQFile::exists( specPath ) ) { if( TQFile::exists( specPath ) ) {
KConfig spec( specPath, true, false ); TDEConfig spec( specPath, true, false );
if( spec.hasKey( "name" ) ) if( spec.hasKey( "name" ) )
name = spec.readEntry( "name" ); name = spec.readEntry( "name" );
if( spec.hasKey( "type" ) ) { if( spec.hasKey( "type" ) ) {

@ -77,12 +77,12 @@ void Scrobbler::similarArtists( const TQString & artist )
m_similarArtistsBuffer = TQByteArray(); m_similarArtistsBuffer = TQByteArray();
m_artist = artist; m_artist = artist;
m_similarArtistsJob = KIO::get( "http://ws.audioscrobbler.com/1.0/artist/" + safeArtist + "/similar.xml", false, false ); m_similarArtistsJob = TDEIO::get( "http://ws.audioscrobbler.com/1.0/artist/" + safeArtist + "/similar.xml", false, false );
connect( m_similarArtistsJob, TQT_SIGNAL( result( KIO::Job* ) ), connect( m_similarArtistsJob, TQT_SIGNAL( result( TDEIO::Job* ) ),
this, TQT_SLOT( audioScrobblerSimilarArtistsResult( KIO::Job* ) ) ); this, TQT_SLOT( audioScrobblerSimilarArtistsResult( TDEIO::Job* ) ) );
connect( m_similarArtistsJob, TQT_SIGNAL( data( KIO::Job*, const TQByteArray& ) ), connect( m_similarArtistsJob, TQT_SIGNAL( data( TDEIO::Job*, const TQByteArray& ) ),
this, TQT_SLOT( audioScrobblerSimilarArtistsData( KIO::Job*, const TQByteArray& ) ) ); this, TQT_SLOT( audioScrobblerSimilarArtistsData( TDEIO::Job*, const TQByteArray& ) ) );
} }
} }
@ -90,7 +90,7 @@ void Scrobbler::similarArtists( const TQString & artist )
/** /**
* Called when the similar artists TransferJob finishes. * Called when the similar artists TransferJob finishes.
*/ */
void Scrobbler::audioScrobblerSimilarArtistsResult( KIO::Job* job ) //SLOT void Scrobbler::audioScrobblerSimilarArtistsResult( TDEIO::Job* job ) //SLOT
{ {
if ( m_similarArtistsJob != job ) if ( m_similarArtistsJob != job )
return; //not the right job, so let's ignore it return; //not the right job, so let's ignore it
@ -140,7 +140,7 @@ void Scrobbler::audioScrobblerSimilarArtistsResult( KIO::Job* job ) //SLOT
/** /**
* Called when similar artists data is received for the TransferJob. * Called when similar artists data is received for the TransferJob.
*/ */
void Scrobbler::audioScrobblerSimilarArtistsData( KIO::Job* job, const TQByteArray& data ) //SLOT void Scrobbler::audioScrobblerSimilarArtistsData( TDEIO::Job* job, const TQByteArray& data ) //SLOT
{ {
if ( m_similarArtistsJob != job ) if ( m_similarArtistsJob != job )
return; //not the right job, so let's ignore it return; //not the right job, so let's ignore it
@ -484,8 +484,8 @@ void ScrobblerSubmitter::performHandshake()
m_submitResultBuffer = ""; m_submitResultBuffer = "";
m_inProgress = true; m_inProgress = true;
KIO::TransferJob* job = KIO::storedGet( handshakeUrl, false, false ); TDEIO::TransferJob* job = TDEIO::storedGet( handshakeUrl, false, false );
connect( job, TQT_SIGNAL( result( KIO::Job* ) ), TQT_SLOT( audioScrobblerHandshakeResult( KIO::Job* ) ) ); connect( job, TQT_SIGNAL( result( TDEIO::Job* ) ), TQT_SLOT( audioScrobblerHandshakeResult( TDEIO::Job* ) ) );
} }
@ -587,7 +587,7 @@ void ScrobblerSubmitter::performSubmit()
m_submitResultBuffer = ""; m_submitResultBuffer = "";
m_inProgress = true; m_inProgress = true;
KIO::TransferJob* job = KIO::http_post( m_submitUrl, data.utf8(), false ); TDEIO::TransferJob* job = TDEIO::http_post( m_submitUrl, data.utf8(), false );
job->addMetaData( "content-type", "Content-Type: application/x-www-form-urlencoded" ); job->addMetaData( "content-type", "Content-Type: application/x-www-form-urlencoded" );
// Loop in reverse order, which helps when items are later fetched from // Loop in reverse order, which helps when items are later fetched from
@ -600,10 +600,10 @@ void ScrobblerSubmitter::performSubmit()
Amarok::StatusBar::instance()->newProgressOperation( job ) Amarok::StatusBar::instance()->newProgressOperation( job )
.setDescription( i18n( "Submitting to last.fm" ) ); .setDescription( i18n( "Submitting to last.fm" ) );
connect( job, TQT_SIGNAL( result( KIO::Job* ) ), connect( job, TQT_SIGNAL( result( TDEIO::Job* ) ),
this, TQT_SLOT( audioScrobblerSubmitResult( KIO::Job* ) ) ); this, TQT_SLOT( audioScrobblerSubmitResult( TDEIO::Job* ) ) );
connect( job, TQT_SIGNAL( data( KIO::Job*, const TQByteArray& ) ), connect( job, TQT_SIGNAL( data( TDEIO::Job*, const TQByteArray& ) ),
this, TQT_SLOT( audioScrobblerSubmitData( KIO::Job*, const TQByteArray& ) ) ); this, TQT_SLOT( audioScrobblerSubmitData( TDEIO::Job*, const TQByteArray& ) ) );
} }
@ -663,7 +663,7 @@ void ScrobblerSubmitter::scheduledTimeReached()
/** /**
* Called when handshake TransferJob has finished and data is received. * Called when handshake TransferJob has finished and data is received.
*/ */
void ScrobblerSubmitter::audioScrobblerHandshakeResult( KIO::Job* job ) //SLOT void ScrobblerSubmitter::audioScrobblerHandshakeResult( TDEIO::Job* job ) //SLOT
{ {
m_prevSubmitTime = TQDateTime::currentDateTime( Qt::UTC ).toTime_t(); m_prevSubmitTime = TQDateTime::currentDateTime( Qt::UTC ).toTime_t();
m_inProgress = false; m_inProgress = false;
@ -674,7 +674,7 @@ void ScrobblerSubmitter::audioScrobblerHandshakeResult( KIO::Job* job ) //SLOT
return; return;
} }
KIO::StoredTransferJob* const storedJob = static_cast<KIO::StoredTransferJob*>( job ); TDEIO::StoredTransferJob* const storedJob = static_cast<TDEIO::StoredTransferJob*>( job );
m_submitResultBuffer = TQString::fromUtf8( storedJob->data().data(), storedJob->data().size() ); m_submitResultBuffer = TQString::fromUtf8( storedJob->data().data(), storedJob->data().size() );
// debug() // debug()
@ -743,7 +743,7 @@ void ScrobblerSubmitter::audioScrobblerHandshakeResult( KIO::Job* job ) //SLOT
/** /**
* Called when submit TransferJob has finished and data is received. * Called when submit TransferJob has finished and data is received.
*/ */
void ScrobblerSubmitter::audioScrobblerSubmitResult( KIO::Job* job ) //SLOT void ScrobblerSubmitter::audioScrobblerSubmitResult( TDEIO::Job* job ) //SLOT
{ {
m_prevSubmitTime = TQDateTime::currentDateTime( Qt::UTC ).toTime_t(); m_prevSubmitTime = TQDateTime::currentDateTime( Qt::UTC ).toTime_t();
m_inProgress = false; m_inProgress = false;
@ -810,7 +810,7 @@ void ScrobblerSubmitter::audioScrobblerSubmitResult( KIO::Job* job ) //SLOT
* Receives the data from the TransferJob. * Receives the data from the TransferJob.
*/ */
void ScrobblerSubmitter::audioScrobblerSubmitData( void ScrobblerSubmitter::audioScrobblerSubmitData(
KIO::Job*, const TQByteArray& data ) //SLOT TDEIO::Job*, const TQByteArray& data ) //SLOT
{ {
// Append new chunk of string // Append new chunk of string
m_submitResultBuffer += TQString::fromUtf8( data, data.size() ); m_submitResultBuffer += TQString::fromUtf8( data, data.size() );
@ -940,7 +940,7 @@ SubmitItem* ScrobblerSubmitter::dequeueItem()
* Enqueues items associated with the job. This is used when the job * Enqueues items associated with the job. This is used when the job
* has failed (e.g. network problems). * has failed (e.g. network problems).
*/ */
void ScrobblerSubmitter::enqueueJob( KIO::Job* job ) void ScrobblerSubmitter::enqueueJob( TDEIO::Job* job )
{ {
SubmitItem *lastItem = 0; SubmitItem *lastItem = 0;
SubmitItem *item = 0; SubmitItem *item = 0;
@ -964,7 +964,7 @@ void ScrobblerSubmitter::enqueueJob( KIO::Job* job )
* Deletes items associated with the job. This is used when the job * Deletes items associated with the job. This is used when the job
* has succeeded. * has succeeded.
*/ */
void ScrobblerSubmitter::finishJob( KIO::Job* job ) void ScrobblerSubmitter::finishJob( TDEIO::Job* job )
{ {
SubmitItem *firstItem = 0; SubmitItem *firstItem = 0;
SubmitItem *item = 0; SubmitItem *item = 0;

@ -17,7 +17,7 @@
//some setups require this //some setups require this
#undef PROTOCOL_VERSION #undef PROTOCOL_VERSION
namespace KIO { class Job; } namespace TDEIO { class Job; }
class TQStringList; class TQStringList;
class SubmitItem; class SubmitItem;
@ -51,15 +51,15 @@ class Scrobbler : public TQObject, public EngineObserver
void engineTrackPositionChanged( long /*position*/ , bool /*userSeek*/ ); void engineTrackPositionChanged( long /*position*/ , bool /*userSeek*/ );
private slots: private slots:
void audioScrobblerSimilarArtistsResult( KIO::Job* /*job*/ ); void audioScrobblerSimilarArtistsResult( TDEIO::Job* /*job*/ );
void audioScrobblerSimilarArtistsData( void audioScrobblerSimilarArtistsData(
KIO::Job* /*job*/, const TQByteArray& /*data*/ ); TDEIO::Job* /*job*/, const TQByteArray& /*data*/ );
private: private:
TQTimer m_timer; //works around xine bug TQTimer m_timer; //works around xine bug
//http://sourceforge.net/tracker/index.php?func=detail&aid=1401026&group_id=9655&atid=109655 //http://sourceforge.net/tracker/index.php?func=detail&aid=1401026&group_id=9655&atid=109655
TQByteArray m_similarArtistsBuffer; TQByteArray m_similarArtistsBuffer;
KIO::Job* m_similarArtistsJob; TDEIO::Job* m_similarArtistsJob;
TQString m_artist; TQString m_artist;
bool m_validForSending; bool m_validForSending;
long m_startPos; long m_startPos;
@ -135,17 +135,17 @@ class ScrobblerSubmitter : public TQObject
private slots: private slots:
void scheduledTimeReached(); void scheduledTimeReached();
void audioScrobblerHandshakeResult( KIO::Job* /*job*/ ); void audioScrobblerHandshakeResult( TDEIO::Job* /*job*/ );
void audioScrobblerSubmitResult( KIO::Job* /*job*/ ); void audioScrobblerSubmitResult( TDEIO::Job* /*job*/ );
void audioScrobblerSubmitData( void audioScrobblerSubmitData(
KIO::Job* /*job*/, const TQByteArray& /*data*/ ); TDEIO::Job* /*job*/, const TQByteArray& /*data*/ );
private: private:
bool canSubmit() const; bool canSubmit() const;
void enqueueItem( SubmitItem* /* item */ ); void enqueueItem( SubmitItem* /* item */ );
SubmitItem* dequeueItem(); SubmitItem* dequeueItem();
void enqueueJob( KIO::Job* /* job */ ); void enqueueJob( TDEIO::Job* /* job */ );
void finishJob( KIO::Job* /* job */ ); void finishJob( TDEIO::Job* /* job */ );
void announceSubmit( void announceSubmit(
SubmitItem* /* item */, int /* tracks */, bool /* success */ ) const; SubmitItem* /* item */, int /* tracks */, bool /* success */ ) const;
void saveSubmitQueue(); void saveSubmitQueue();

@ -398,7 +398,7 @@ StatusBar::newProgressOperation( TQObject *owner )
} }
ProgressBar& ProgressBar&
StatusBar::newProgressOperation( KIO::Job *job ) StatusBar::newProgressOperation( TDEIO::Job *job )
{ {
SHOULD_BE_GUI SHOULD_BE_GUI
@ -407,9 +407,9 @@ StatusBar::newProgressOperation( KIO::Job *job )
if(!allDone()) if(!allDone())
toggleProgressWindowButton()->show(); toggleProgressWindowButton()->show();
connect( job, TQT_SIGNAL(result( KIO::Job* )), TQT_SLOT(endProgressOperation()) ); connect( job, TQT_SIGNAL(result( TDEIO::Job* )), TQT_SLOT(endProgressOperation()) );
//TODO connect( job, TQT_SIGNAL(infoMessage( KIO::Job *job, const TQString& )), TQT_SLOT() ); //TODO connect( job, TQT_SIGNAL(infoMessage( TDEIO::Job *job, const TQString& )), TQT_SLOT() );
connect( job, TQT_SIGNAL(percent( KIO::Job*, unsigned long )), TQT_SLOT(setProgress( KIO::Job*, unsigned long )) ); connect( job, TQT_SIGNAL(percent( TDEIO::Job*, unsigned long )), TQT_SLOT(setProgress( TDEIO::Job*, unsigned long )) );
return bar; return bar;
} }
@ -418,9 +418,9 @@ void
StatusBar::endProgressOperation() StatusBar::endProgressOperation()
{ {
TQObject *owner = TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>( sender() )); //HACK deconsting it TQObject *owner = TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>( sender() )); //HACK deconsting it
KIO::Job *job = dynamic_cast<KIO::Job*>( owner ); TDEIO::Job *job = dynamic_cast<TDEIO::Job*>( owner );
//FIXME doesn't seem to work for KIO::DeleteJob, it has it's own error handler and returns no error too //FIXME doesn't seem to work for TDEIO::DeleteJob, it has it's own error handler and returns no error too
// if you try to delete http urls for instance <- KDE SUCKS! // if you try to delete http urls for instance <- KDE SUCKS!
if( job && job->error() ) if( job && job->error() )
@ -513,7 +513,7 @@ StatusBar::setProgress( int steps )
} }
void void
StatusBar::setProgress( KIO::Job *job, unsigned long percent ) StatusBar::setProgress( TDEIO::Job *job, unsigned long percent )
{ {
setProgress( static_cast<TQObject*>( job ), percent ); setProgress( static_cast<TQObject*>( job ), percent );
} }

@ -29,7 +29,7 @@
class TQLabel; class TQLabel;
class TQTimer; class TQTimer;
namespace KIO { class Job; } namespace TDEIO { class Job; }
//TODO //TODO
// * concept of a temporary message that is removed when a qobject parent is deleted // * concept of a temporary message that is removed when a qobject parent is deleted
@ -64,7 +64,7 @@ namespace KDE
* the progress for this progress operation. Only one progress operation per * the progress for this progress operation. Only one progress operation per
* TQObject! * TQObject!
* *
* You can also follow KIO::Jobs, with built in error handling, and * You can also follow TDEIO::Jobs, with built in error handling, and
* ThreadManager::Jobs have built in thread-safe progress handling. * ThreadManager::Jobs have built in thread-safe progress handling.
* *
* You can show long status/error messages using longMessage(), these are * You can show long status/error messages using longMessage(), these are
@ -98,9 +98,9 @@ namespace KDE
ProgressBar &newProgressOperation( TQObject *owner ); ProgressBar &newProgressOperation( TQObject *owner );
/** /**
* Monitor progress for a KIO::Job, very handy. * Monitor progress for a TDEIO::Job, very handy.
*/ */
ProgressBar &newProgressOperation( KIO::Job* ); ProgressBar &newProgressOperation( TDEIO::Job* );
void incrementProgressTotalSteps( const TQObject *owner, int inc = 1 ); void incrementProgressTotalSteps( const TQObject *owner, int inc = 1 );
void incrementProgress( const TQObject *owner ); void incrementProgress( const TQObject *owner );
@ -171,8 +171,8 @@ namespace KDE
void abortAllProgressOperations(); void abortAllProgressOperations();
private slots: private slots:
/** For internal use against KIO::Jobs */ /** For internal use against TDEIO::Jobs */
void setProgress( KIO::Job*, unsigned long percent ); void setProgress( TDEIO::Job*, unsigned long percent );
void showMainProgressBar(); void showMainProgressBar();
void hideMainProgressBar(); void hideMainProgressBar();
void updateProgressAppearance(); void updateProgressAppearance();

@ -378,7 +378,7 @@ void TagDialog::init()
// delete itself when closing // delete itself when closing
setWFlags( getWFlags() | TQt::WDestructiveClose ); setWFlags( getWFlags() | TQt::WDestructiveClose );
KConfig *config = Amarok::config( "TagDialog" ); TDEConfig *config = Amarok::config( "TagDialog" );
kTabWidget->addTab( summaryTab, i18n( "Summary" ) ); kTabWidget->addTab( summaryTab, i18n( "Summary" ) );
kTabWidget->addTab( tagsTab, i18n( "Tags" ) ); kTabWidget->addTab( tagsTab, i18n( "Tags" ) );

@ -134,7 +134,7 @@ TQString FileNameScheme::composeRegExp( const TQString &s ) const
{ {
TQMap<TQString, TQString> substitutions; TQMap<TQString, TQString> substitutions;
KConfigGroup config(TDEGlobal::config(), "TagGuesser"); TDEConfigGroup config(TDEGlobal::config(), "TagGuesser");
substitutions[ "title" ] = config.readEntry( "Title regexp", "([\\w\\s'&_,\\.]+)" ); substitutions[ "title" ] = config.readEntry( "Title regexp", "([\\w\\s'&_,\\.]+)" );
substitutions[ "artist" ] = config.readEntry( "Artist regexp", "([\\w\\s'&_,\\.]+)" ); substitutions[ "artist" ] = config.readEntry( "Artist regexp", "([\\w\\s'&_,\\.]+)" );
@ -195,9 +195,9 @@ TQStringList TagGuesser::schemeStrings()
void TagGuesser::setSchemeStrings( const TQStringList &schemes ) void TagGuesser::setSchemeStrings( const TQStringList &schemes )
{ {
KConfig *cfg = TDEGlobal::config(); TDEConfig *cfg = TDEGlobal::config();
{ {
KConfigGroupSaver saver( cfg, "TagGuesser" ); TDEConfigGroupSaver saver( cfg, "TagGuesser" );
cfg->writeEntry( "Filename schemes", schemes ); cfg->writeEntry( "Filename schemes", schemes );
} }
cfg->sync(); cfg->sync();

@ -47,7 +47,7 @@
<entry <entry
>amarokconfig.cpp</entry> >amarokconfig.cpp</entry>
<entry <entry
>KConfig-XT</entry> >TDEConfig-XT</entry>
</row> </row>
<row> <row>

@ -47,7 +47,7 @@
<entry <entry
>amarokconfig.cpp</entry> >amarokconfig.cpp</entry>
<entry <entry
>KConfig-XT</entry> >TDEConfig-XT</entry>
</row> </row>
<row> <row>

@ -47,7 +47,7 @@
<entry <entry
>amarokconfig.cpp</entry> >amarokconfig.cpp</entry>
<entry <entry
>KConfig-XT</entry> >TDEConfig-XT</entry>
</row> </row>
<row> <row>

@ -47,7 +47,7 @@
<entry <entry
>amarokconfig.cpp</entry> >amarokconfig.cpp</entry>
<entry <entry
>KConfig-XT</entry> >TDEConfig-XT</entry>
</row> </row>
<row> <row>

@ -47,7 +47,7 @@
<entry <entry
>amarokconfig.cpp</entry> >amarokconfig.cpp</entry>
<entry <entry
>KConfig-XT</entry> >TDEConfig-XT</entry>
</row> </row>
<row> <row>

Loading…
Cancel
Save