equal
deleted
inserted
replaced
19 #define _RADIOWINDOW_H_ |
19 #define _RADIOWINDOW_H_ |
20 |
20 |
21 // System includes |
21 // System includes |
22 #include <HbMainWindow> |
22 #include <HbMainWindow> |
23 #include <HbEffect> |
23 #include <HbEffect> |
24 #include <QPointer> |
24 #include <QWeakPointer> |
25 #include <QScopedPointer> |
25 #include <QScopedPointer> |
26 #include <QSharedPointer> |
26 #include <QSharedPointer> |
27 #include <qsysteminfo.h> |
27 #include <qsysteminfo.h> |
28 using namespace QtMobility; // has to be here to be able to connect SLOT queryOfflineUsage |
28 using namespace QtMobility; // has to be here to be able to connect SLOT queryOfflineUsage |
29 |
29 |
37 class HbMessageBox; |
37 class HbMessageBox; |
38 |
38 |
39 typedef QScopedPointer<HbVolumeSliderPopup> VolumeSliderPtr; |
39 typedef QScopedPointer<HbVolumeSliderPopup> VolumeSliderPtr; |
40 |
40 |
41 /** |
41 /** |
42 * QPointer is used to store the views because it tracks the deletion of the object and nulls |
42 * QWeakPointer is used to store the views because it tracks the deletion of the object and nulls |
43 * the reference. Transient view like RadioHistoryView is destroyed after they are closed |
43 * the reference. Transient view like RadioHistoryView is destroyed after they are closed |
44 * and QPointer will notice it. |
44 * and QWeakPointer will notice it. |
45 */ |
45 */ |
46 typedef QPointer<RadioViewBase> ViewPtr; |
46 typedef QWeakPointer<RadioViewBase> ViewPtr; |
47 |
47 |
48 // Class declaration |
48 // Class declaration |
49 class WIDGETS_DLL_EXPORT RadioWindow : public HbMainWindow |
49 class WIDGETS_DLL_EXPORT RadioWindow : public HbMainWindow |
50 { |
50 { |
51 Q_OBJECT |
51 Q_OBJECT |