equal
deleted
inserted
replaced
37 iStationName(NULL),iDescription(NULL), |
37 iStationName(NULL),iDescription(NULL), |
38 iGenres(NULL),iLanguage(NULL), |
38 iGenres(NULL),iLanguage(NULL), |
39 iCountry(NULL),iBitRate(NULL), |
39 iCountry(NULL),iBitRate(NULL), |
40 iNowPlayingUrl(NULL) |
40 iNowPlayingUrl(NULL) |
41 { |
41 { |
42 //this view won't be starting view, don't need lazy init |
|
43 IRBaseView::lazyInit(); |
|
44 setInitCompleted(true); |
|
45 |
42 |
46 createDetails(); |
43 createDetails(); |
47 connect( getViewManager(), SIGNAL( orientationChanged(Qt::Orientation) ), |
44 connect( getViewManager(), SIGNAL( orientationChanged(Qt::Orientation) ), |
48 this, SLOT( handleOrientationChanged(Qt::Orientation) ) ); |
45 this, SLOT( handleOrientationChanged(Qt::Orientation) ) ); |
49 handleOrientationChanged(getViewManager()->orientation()); |
|
50 } |
46 } |
51 |
47 |
52 IRStationDetailsView::~IRStationDetailsView() |
48 IRStationDetailsView::~IRStationDetailsView() |
53 { |
49 { |
54 } |
50 } |
73 if (urlList != NULL) |
69 if (urlList != NULL) |
74 { |
70 { |
75 iNowPlayingUrl->setPlainText(urlList->at(KChannelURLIndex)); |
71 iNowPlayingUrl->setPlainText(urlList->at(KChannelURLIndex)); |
76 } |
72 } |
77 delete urlList; |
73 delete urlList; |
|
74 handleOrientationChanged(getViewManager()->orientation()); |
78 } |
75 } |
79 |
76 |
80 /* |
77 /* |
81 * Description : update the station information. |
78 * Description : update the station information. |
82 */ |
79 */ |
88 iLanguage->setPlainText(nowPlayingPreset->languageName); |
85 iLanguage->setPlainText(nowPlayingPreset->languageName); |
89 iCountry->setPlainText(nowPlayingPreset->countryName); |
86 iCountry->setPlainText(nowPlayingPreset->countryName); |
90 iBitRate->setPlainText(QString::number(iPlayController->getNowPlayingBitRate()) + QString("kbps")); |
87 iBitRate->setPlainText(QString::number(iPlayController->getNowPlayingBitRate()) + QString("kbps")); |
91 iDescription->setPlainText(nowPlayingPreset->description); |
88 iDescription->setPlainText(nowPlayingPreset->description); |
92 iNowPlayingUrl->setPlainText(iPlayController->getNowPlayingUrl()); |
89 iNowPlayingUrl->setPlainText(iPlayController->getNowPlayingUrl()); |
|
90 handleOrientationChanged(getViewManager()->orientation()); |
93 } |
91 } |
94 |
92 |
95 /* |
93 /* |
96 * Description : create the details of this widget. |
94 * Description : create the details of this widget. |
97 */ |
95 */ |