radioapp/radiowidgets/src/radiohistoryview.cpp
changeset 34 bc10a61bd7d3
parent 28 075425b8d9a4
child 36 ba22309243a1
child 37 451b2e1545b2
equal deleted inserted replaced
28:075425b8d9a4 34:bc10a61bd7d3
   215  * Private slot
   215  * Private slot
   216  *
   216  *
   217  */
   217  */
   218 void RadioHistoryView::openOtherStore()
   218 void RadioHistoryView::openOtherStore()
   219 {
   219 {
   220     QString msg = "To be implemented: Open other store. Artist: %1, Title: %2";
       
   221     HbMessageBox::information( msg.arg( mSelectedItem->artist() ).arg( mSelectedItem->title() ) );
       
   222     mUiEngine->openMusicStore( *mSelectedItem, RadioUiEngine::OtherStore );
   220     mUiEngine->openMusicStore( *mSelectedItem, RadioUiEngine::OtherStore );
   223 }
   221 }
   224 
   222 
   225 /*!
   223 /*!
   226  * Private slot
   224  * Private slot
   251  *
   249  *
   252  */
   250  */
   253 void RadioHistoryView::init()
   251 void RadioHistoryView::init()
   254 {
   252 {
   255     LOG_METHOD;
   253     LOG_METHOD;
       
   254     loadSection( DOCML::FILE_HISTORYVIEW, DOCML::SECTION_LAZY_LOAD );
   256 
   255 
   257     RadioHistoryModel* historyModel = &mUiEngine->historyModel();
   256     RadioHistoryModel* historyModel = &mUiEngine->historyModel();
   258     historyModel->setShowDetails( mOrientation == Qt::Horizontal );
   257     historyModel->setShowDetails( mOrientation == Qt::Horizontal );
   259 
   258 
   260     if ( !mNonTaggedIcon.isNull() && !mTaggedIcon.isNull() ) {
   259     if ( !mNonTaggedIcon.isNull() && !mTaggedIcon.isNull() ) {
   292     // Context menu actions
   291     // Context menu actions
   293     connectXmlElement( DOCML::HV_NAME_TOGGLE_TAG_ACTION,    SIGNAL(triggered()),
   292     connectXmlElement( DOCML::HV_NAME_TOGGLE_TAG_ACTION,    SIGNAL(triggered()),
   294                        this,                                SLOT(toggleTagging()) );
   293                        this,                                SLOT(toggleTagging()) );
   295     connectXmlElement( DOCML::HV_NAME_OVI_STORE_ACTION,     SIGNAL(triggered()),
   294     connectXmlElement( DOCML::HV_NAME_OVI_STORE_ACTION,     SIGNAL(triggered()),
   296                        this,                                SLOT(openOviStore()) );
   295                        this,                                SLOT(openOviStore()) );
       
   296     connectXmlElement( DOCML::HV_NAME_OTHER_STORE_ACTION,   SIGNAL(triggered()),
       
   297                        this,                                SLOT(openOtherStore()) );
   297     initBackAction();
   298     initBackAction();
   298 
   299 
   299     updateViewMode();
   300     updateViewMode();
   300 
   301 
   301     // BEGIN TEMPORARY TEST CODE
   302     // BEGIN TEMPORARY TEST CODE