202 connect(openWebAddressAction, SIGNAL(triggered()), this, SLOT(handleGoToStationAction())); |
203 connect(openWebAddressAction, SIGNAL(triggered()), this, SLOT(handleGoToStationAction())); |
203 connect(shareStationAction, SIGNAL(triggered()), this, SLOT(handleShareStationAction())); |
204 connect(shareStationAction, SIGNAL(triggered()), this, SLOT(handleShareStationAction())); |
204 connect(settings, SIGNAL(triggered()), this, SLOT(handleSettingAction())); |
205 connect(settings, SIGNAL(triggered()), this, SLOT(handleSettingAction())); |
205 connect(exitAction, SIGNAL(triggered()), iApplication, SIGNAL(quit())); |
206 connect(exitAction, SIGNAL(triggered()), iApplication, SIGNAL(quit())); |
206 connect(songRecAction, SIGNAL(triggered()), this, SLOT(handleIdentifySongAction())); |
207 connect(songRecAction, SIGNAL(triggered()), this, SLOT(handleIdentifySongAction())); |
|
208 |
|
209 if(iApplication->isEmbeddedInstance()) |
|
210 { |
|
211 HbMenu *viewMenu = menu(); |
|
212 disconnect(openWebAddressAction, SIGNAL(triggered()), this, SLOT(handleGoToStationAction())); |
|
213 disconnect(settings, SIGNAL(triggered()), this, SLOT(handleSettingAction())); |
|
214 disconnect(songRecAction, SIGNAL(triggered()), this, SLOT(handleIdentifySongAction())); |
|
215 viewMenu->removeAction(openWebAddressAction); |
|
216 viewMenu->removeAction(settings); |
|
217 viewMenu->removeAction(songRecAction); |
|
218 } |
207 } |
219 } |
208 |
220 |
209 /* |
221 /* |
210 * Description : create tool bar for now playing view |
222 * Description : create tool bar for now playing view |
211 */ |
223 */ |
535 return; |
547 return; |
536 } |
548 } |
537 |
549 |
538 |
550 |
539 |
551 |
540 const unsigned char * logoRawData = aPreset->logoData.Ptr(); |
|
541 QPixmap logoPixmap; |
552 QPixmap logoPixmap; |
542 if( logoPixmap.loadFromData(logoRawData, aPreset->logoData.Length()) ) |
553 if( logoPixmap.loadFromData((const unsigned char*)aPreset->logoData.constData(), aPreset->logoData.size()) ) |
543 { |
554 { |
544 if( EDownloadLogo == iLogoDownloadState ) |
555 if( EDownloadLogo == iLogoDownloadState ) |
545 { |
556 { |
546 saveStationLogo(logoPixmap); |
557 saveStationLogo(logoPixmap); |
547 QPixmap newLogoPixmap = |
558 QPixmap newLogoPixmap = |
834 LOG_METHOD; |
845 LOG_METHOD; |
835 IRQPreset *nowPlayingPreset = iPlayController->getNowPlayingPreset(); |
846 IRQPreset *nowPlayingPreset = iPlayController->getNowPlayingPreset(); |
836 int retValue = iFavorites->addPreset(*nowPlayingPreset); |
847 int retValue = iFavorites->addPreset(*nowPlayingPreset); |
837 HbNotificationDialog *add2FavNote = new HbNotificationDialog(); |
848 HbNotificationDialog *add2FavNote = new HbNotificationDialog(); |
838 add2FavNote->setModal(true); |
849 add2FavNote->setModal(true); |
|
850 add2FavNote->setTimeout(HbPopup::ConfirmationNoteTimeout); |
839 add2FavNote->setAttribute(Qt::WA_DeleteOnClose); |
851 add2FavNote->setAttribute(Qt::WA_DeleteOnClose); |
840 switch (retValue) |
852 switch (retValue) |
841 { |
853 { |
842 case EIRQErrorNone: |
854 case EIRQErrorNone: |
843 #ifdef SUBTITLE_STR_BY_LOCID |
855 #ifdef SUBTITLE_STR_BY_LOCID |