qtinternetradio/ui/src/irnowplayingview.cpp
changeset 11 f683e24efca3
parent 8 3b03c28289e6
child 12 608f67c22514
equal deleted inserted replaced
8:3b03c28289e6 11:f683e24efca3
    65  * Description : constructor
    65  * Description : constructor
    66  */
    66  */
    67 IRNowPlayingView::IRNowPlayingView(IRApplication* aApplication, TIRViewId aViewId) :
    67 IRNowPlayingView::IRNowPlayingView(IRApplication* aApplication, TIRViewId aViewId) :
    68     IRBaseView(aApplication, aViewId),
    68     IRBaseView(aApplication, aViewId),
    69     iStatisticsReporter(NULL),
    69     iStatisticsReporter(NULL),
    70     iNetworkController(NULL),
       
    71     iStationShare(NULL),
    70     iStationShare(NULL),
    72     iPlayStopAction(NULL),
    71     iPlayStopAction(NULL),
    73     iLaunchActionNeeded(false),
    72     iLaunchActionNeeded(false),
    74     iLogoDownloadState(EIdle),    
    73     iLogoDownloadState(EIdle),    
    75     iSongName(NULL),
    74     iSongName(NULL),
    99 /*
    98 /*
   100  * Description : destructor
    99  * Description : destructor
   101  */
   100  */
   102 IRNowPlayingView::~IRNowPlayingView()
   101 IRNowPlayingView::~IRNowPlayingView()
   103 {
   102 {
   104     if(iNetworkController)
       
   105     {
       
   106         iNetworkController->closeInstance();
       
   107     }
       
   108     
       
   109     if (iStatisticsReporter)
   103     if (iStatisticsReporter)
   110     {
   104     {
   111         iStatisticsReporter->closeInstance();
   105         iStatisticsReporter->closeInstance();
   112     }
   106     }
   113     
   107     
   384     if (!initCompleted())
   378     if (!initCompleted())
   385     {
   379     {
   386         IRBaseView::lazyInit();
   380         IRBaseView::lazyInit();
   387         
   381         
   388         iStatisticsReporter = IRQStatisticsReporter::openInstance();
   382         iStatisticsReporter = IRQStatisticsReporter::openInstance();
   389         iNetworkController = IRQNetworkController::openInstance();
       
   390             
   383             
   391         connect(iPlayController, SIGNAL(metaDataAvailable(IRQMetaData*)), this, SLOT(updateMetaData(IRQMetaData*)));
   384         connect(iPlayController, SIGNAL(metaDataAvailable(IRQMetaData*)), this, SLOT(updateMetaData(IRQMetaData*)));
   392         connect(iPlayController, SIGNAL(playingStarted()), this, SLOT(handlePlayStarted()));
   385         connect(iPlayController, SIGNAL(playingStarted()), this, SLOT(handlePlayStarted()));
   393         connect(iPlayController, SIGNAL(playingStopped()), this, SLOT(handlePlayStopped()));
   386         connect(iPlayController, SIGNAL(playingStopped()), this, SLOT(handlePlayStopped()));
   394 
   387