radioapp/radiowidgets/src/radiowindow.cpp
changeset 38 f8c3d4e6102c
parent 34 bc10a61bd7d3
child 47 74b7c6e79031
--- a/radioapp/radiowidgets/src/radiowindow.cpp	Thu Jul 08 12:44:18 2010 +0300
+++ b/radioapp/radiowidgets/src/radiowindow.cpp	Fri Jul 23 10:16:59 2010 +0300
@@ -68,14 +68,10 @@
 /*!
  *
  */
-void RadioWindow::init( QSystemDeviceInfo* deviceInfo )
+void RadioWindow::init()
 {
-    mDeviceInfo.reset( deviceInfo );
-
     Radio::connect( this,                   SIGNAL(viewReady()),
                     this,                   SLOT(initView()) );
-    Radio::connect( mDeviceInfo.data(),     SIGNAL(currentProfileChanged(QSystemDeviceInfo::Profile)),
-                    this,                   SLOT(queryOfflineUsage(QSystemDeviceInfo::Profile)) );
 
     activateMainView();
 }
@@ -211,28 +207,6 @@
 }
 
 /*!
- * Private slot
- *
- */
-void RadioWindow::queryOfflineUsage( QSystemDeviceInfo::Profile profile )
-{
-    if ( profile == QSystemDeviceInfo::OfflineProfile ) {
-        bool okToContinue = false;
-        HbDeviceMessageBox box( hbTrId( "txt_rad_info_continue_using_the_radio_in_offline" ), HbMessageBox::MessageTypeQuestion );
-        box.setTimeout( HbPopup::NoTimeout );
-        box.exec();
-
-        okToContinue = box.isAcceptAction( box.triggeredAction() );
-
-        if ( okToContinue ) {
-            // Radio stays on
-        } else {
-            qApp->quit(); // Close radio
-        }
-    } // other profiles are not interesting
-}
-
-/*!
  *
  */
 void RadioWindow::activateView( RadioViewBase* aMember, const QString& docmlFile, Hb::ViewSwitchFlags flags )