qtinternetradio/ui/src/irplsview.cpp
changeset 12 608f67c22514
parent 5 0930554dc389
child 14 896e9dbc5f19
equal deleted inserted replaced
11:f683e24efca3 12:608f67c22514
    73     }
    73     }
    74     
    74     
    75     setUseNetworkReason(EIR_UseNetwork_NoReason);
    75     setUseNetworkReason(EIR_UseNetwork_NoReason);
    76 }
    76 }
    77 
    77 
       
    78 #ifdef HS_WIDGET_ENABLED
       
    79 void IRPlsView::itemAboutToBeSelected(bool &aNeedNetwork)
       
    80 {
       
    81     aNeedNetwork =  true;
       
    82     
       
    83     int currentRow = iListView->currentIndex().row();
       
    84     iPlayController->setConnectingStationName(iPlsModel->getTitle(currentRow));
       
    85 }
       
    86 #endif
       
    87 
    78 void IRPlsView::handleItemSelected()
    88 void IRPlsView::handleItemSelected()
    79 {
    89 {
    80     int currentRow = iListView->currentIndex().row();
    90     int currentRow = iListView->currentIndex().row();
    81     IRQChannelServerURL server;
    91     IRQChannelServerURL server;
    82     server.bitrate = 0;
    92     server.bitrate = 0;
    99     Q_UNUSED(aItem);
   109     Q_UNUSED(aItem);
   100     Q_UNUSED(aCoords);
   110     Q_UNUSED(aCoords);
   101     
   111     
   102     HbMenu *contextMenu = new HbMenu;
   112     HbMenu *contextMenu = new HbMenu;
   103     contextMenu->setAttribute(Qt::WA_DeleteOnClose);
   113     contextMenu->setAttribute(Qt::WA_DeleteOnClose);
       
   114 #ifdef SUBTITLE_STR_BY_LOCID
   104     HbAction *action = contextMenu->addAction(hbTrId("txt_common_menu_delete"));
   115     HbAction *action = contextMenu->addAction(hbTrId("txt_common_menu_delete"));
       
   116 #else
       
   117     HbAction *action = contextMenu->addAction(hbTrId("Delete"));    
       
   118 #endif
   105     action->setObjectName(KActionDeleteName);
   119     action->setObjectName(KActionDeleteName);
   106     contextMenu->open();
   120     contextMenu->open();
   107     connect(contextMenu, SIGNAL(triggered(HbAction*)), this, SLOT(actionClicked(HbAction*)));
   121     connect(contextMenu, SIGNAL(triggered(HbAction*)), this, SLOT(actionClicked(HbAction*)));
   108 }
   122 }
   109 
   123