qtinternetradio/ui/src/irstationsview.cpp
changeset 12 608f67c22514
parent 8 3b03c28289e6
child 14 896e9dbc5f19
equal deleted inserted replaced
11:f683e24efca3 12:608f67c22514
   155     }
   155     }
   156     
   156     
   157     return ret;
   157     return ret;
   158 }
   158 }
   159 
   159 
       
   160 #ifdef HS_WIDGET_ENABLED
       
   161 void IRStationsView::itemAboutToBeSelected(bool &aNeedNetwork)
       
   162 {
       
   163     aNeedNetwork =  true;
       
   164     
       
   165     int index = iListView->currentIndex().row();
       
   166     iPlayController->setConnectingStationName(iChannelModel->getChannelItemByIndex(index)->channelName);
       
   167 }
       
   168 #endif
       
   169 
   160 //                                      slots functions
   170 //                                      slots functions
   161 
   171 
   162 /*
   172 /*
   163  * Description : slot function when an item in a list is clicked.
   173  * Description : slot function when an item in a list is clicked.
   164  *               issue a listen request to isds client
   174  *               issue a listen request to isds client
   249 void IRStationsView::operationException(IRQError aError)
   259 void IRStationsView::operationException(IRQError aError)
   250 {
   260 {
   251     iApplication->stopLoadingAnimation();
   261     iApplication->stopLoadingAnimation();
   252 
   262 
   253     disconnectIsdsClient();
   263     disconnectIsdsClient();
       
   264 #ifdef SUBTITLE_STR_BY_LOCID
   254     QString errorString = hbTrId("txt_irad_info_failed_to_connect");
   265     QString errorString = hbTrId("txt_irad_info_failed_to_connect");
       
   266 #else
       
   267     QString errorString = hbTrId("Connecting failed");    
       
   268 #endif
   255     
   269     
   256     switch (aError)
   270     switch (aError)
   257     {   
   271     {   
   258     case EIRQErrorNotFound:
   272     case EIRQErrorNotFound:
   259         errorString = hbTrId("txt_irad_info_no_matching_stations_found");
   273 #ifdef SUBTITLE_STR_BY_LOCID
       
   274         errorString = hbTrId("txt_irad_info_no_matching_station_found");
       
   275 #else
       
   276         errorString = hbTrId("No matching station found");        
       
   277 #endif
   260         if (iConnectTimer->isActive())
   278         if (iConnectTimer->isActive())
   261         {
   279         {
   262             iConnectTimer->stop();
   280             iConnectTimer->stop();
   263         }
   281         }
   264         break;
   282         break;
   411 
   429 
   412 void IRStationsView::connectTimeOut()
   430 void IRStationsView::connectTimeOut()
   413 {    
   431 {    
   414     iConnectTimer->stop();
   432     iConnectTimer->stop();
   415     cancelRequest();   
   433     cancelRequest();   
       
   434 #ifdef SUBTITLE_STR_BY_LOCID
   416     popupNote(hbTrId("txt_irad_info_connecting_timout"), HbMessageBox::MessageTypeWarning);
   435     popupNote(hbTrId("txt_irad_info_connecting_timout"), HbMessageBox::MessageTypeWarning);
   417 }
   436 #else
       
   437     popupNote(hbTrId("Connecting timeout"), HbMessageBox::MessageTypeWarning);    
       
   438 #endif
       
   439 }