void AmazonStore::polish() { DEBUG_BLOCK; if( !m_polished ) { m_polished = true; initTopPanel(); initBottomPanel(); initView(); connect( m_itemView, SIGNAL(itemSelected(QModelIndex)), this, SLOT(itemSelected(QModelIndex)) ); connect( m_itemView, SIGNAL(itemDoubleClicked(QModelIndex)), this, SLOT(itemDoubleClicked(QModelIndex)) ); connect( m_itemView, SIGNAL(searchForAlbum(QModelIndex)), this, SLOT(searchForAlbum(QModelIndex)) ); m_amazonInfoParser = new AmazonInfoParser(); setInfoParser( m_amazonInfoParser ); m_amazonInfoParser->showFrontPage(); AmazonUrlRunner *runner = new AmazonUrlRunner(); connect( runner, SIGNAL(search(QString)), this, SLOT(newSearchRequest(QString)) ); The::amarokUrlHandler()->registerRunner( runner, runner->command() ); } }
void Mp3tunesService::polish() { initTopPanel(); initBottomPanel(); if ( !m_authenticated && !m_authenticationFailed ) authenticate( m_email, m_password ); }