19 #define GLXTVOUTWRAPPERPRIVATE_P_H |
19 #define GLXTVOUTWRAPPERPRIVATE_P_H |
20 |
20 |
21 #include <QAbstractItemModel> |
21 #include <QAbstractItemModel> |
22 #include <fbs.h> |
22 #include <fbs.h> |
23 #include <QMetaType> |
23 #include <QMetaType> |
|
24 #include <QSize> |
24 |
25 |
25 class GlxTvOutWrapper; |
26 class GlxTvOutWrapper; |
26 class CGlxConnectionObserver; |
27 class CGlxConnectionObserver; |
27 class CGlxHdmiController; |
28 class CGlxHdmiController; |
28 |
29 |
29 // Converting the QVariant to CFbsBitmap* |
30 // Converting the QVariant to CFbsBitmap* |
30 Q_DECLARE_METATYPE(CFbsBitmap*) |
31 Q_DECLARE_METATYPE(CFbsBitmap*) |
31 |
32 |
|
33 /** |
|
34 * Class Description This is Private Wrapper class for HDMI |
|
35 * |
|
36 * Client shouldnt access this directly, instead access through GlxTvOutWrapper |
|
37 * |
|
38 */ |
|
39 |
32 class GlxTvOutWrapperPrivate |
40 class GlxTvOutWrapperPrivate |
33 { |
41 { |
34 public: |
42 public: |
35 /* |
43 /** |
36 * Static method to create an instance |
44 * Static method to create an instance |
37 * @param3 - to On the Effects of Slideshow - currently only fade in fade out |
45 * @param aTvOutWrapper GlxTvOutWrapper Instance |
|
46 * @param aModel item model |
|
47 * @param aScreenSize screensize of the phone |
|
48 * @param aEfectsOn to ON the Effects for Slideshow on TV- currently only |
|
49 * fade in fade out is supported |
|
50 * |
|
51 * @return GlxTvOutWrapperPrivate Instance |
38 */ |
52 */ |
39 static GlxTvOutWrapperPrivate* Instance(GlxTvOutWrapper* aTvOutWrapper, |
53 static GlxTvOutWrapperPrivate* Instance(GlxTvOutWrapper* aTvOutWrapper, |
40 QAbstractItemModel* aModel,bool aEfectsOn); |
54 QAbstractItemModel* aModel,QSize aScreenSize,bool aEfectsOn); |
41 |
55 |
42 /* |
56 /** |
43 * destructor |
57 * destructor |
44 */ |
58 */ |
45 ~GlxTvOutWrapperPrivate(); |
59 ~GlxTvOutWrapperPrivate(); |
46 |
60 |
47 /* |
61 /** |
48 * HandleConnectionChange |
62 * HandleConnectionChange |
49 * @param1 true if connected, false if disconnected |
63 * @param aConnected true if connected, false if disconnected |
50 * Note this is only being done for HDMI as there is no |
64 * Note this is only being done for HDMI as there is no |
51 * implementation for Analog TV. |
65 * implementation for Analog TV. |
52 */ |
66 */ |
53 void HandleConnectionChange(bool aConnected); |
67 void HandleConnectionChange(bool aConnected); |
54 |
68 |
55 /* |
69 /** |
56 * SetImagetoHDMI() |
70 * SetImagetoHDMI |
57 */ |
71 */ |
58 void SetImagetoHDMI(); |
72 void SetImagetoHDMI(); |
59 |
73 |
60 /* |
74 /** |
61 * Sets HDMI to cloning mode |
75 * Sets HDMI to cloning mode |
62 */ |
76 */ |
63 void SetToCloningMode(); |
77 void SetToCloningMode(); |
64 |
78 |
65 /* |
79 /** |
66 * Sets HDMI to Native posting mode |
80 * Sets HDMI to Native posting mode |
67 */ |
81 */ |
68 void SetToNativeMode(); |
82 void SetToNativeMode(); |
69 |
83 |
70 /* |
84 /** |
71 * views should call this if for any item it doesnt want to move to |
85 * views should call this if for any item it doesnt want to move to |
72 * HDMI posting mode |
86 * HDMI posting mode |
73 */ |
87 */ |
74 void ItemNotSupported(); |
88 void ItemNotSupported(); |
75 |
89 |
76 /* |
90 /** |
77 * Activate zoom in posting mode |
91 * Activate zoom in posting mode |
78 */ |
92 */ |
79 void ActivateZoom(bool autoZoomOut); |
93 void ActivateZoom(bool autoZoomOut); |
80 |
94 |
81 /* |
95 /** |
82 * Deactivate zoom in posting mode. |
96 * Deactivate zoom in posting mode. |
83 */ |
97 */ |
84 void DeactivateZoom(); |
98 void DeactivateZoom(); |
85 |
99 |
86 /* |
100 /** |
87 * Fadeing of the Surface |
101 * Fadeing of the Surface |
88 * @param1 ETrue - FadeIn ( as in gaining brightness ) |
102 * @param aFadeInOut - ETrue - FadeIn ( as in gaining brightness ) |
89 * EFalse - FadeOut ( as in loosing brightness ) |
103 * EFalse - FadeOut ( as in loosing brightness ) |
90 */ |
104 */ |
91 void FadeSurface(bool aFadeInOut); |
105 void FadeSurface(bool aFadeInOut); |
92 |
106 |
93 private: |
107 private: |
94 /* |
108 /** |
95 * constructor |
109 * constructor |
|
110 * @param tvoutwrapper GlxTvOutWrapper instance |
|
111 * @param model QAbstractItemModel instance |
96 */ |
112 */ |
97 GlxTvOutWrapperPrivate(GlxTvOutWrapper* aTvOutWrapper, |
113 GlxTvOutWrapperPrivate(GlxTvOutWrapper* aTvOutWrapper, |
98 QAbstractItemModel* aModel); |
114 QAbstractItemModel* aModel); |
99 |
115 |
100 /* |
116 /** |
101 * constructL() |
117 * constructL() |
102 * @param1 - to On the Effects of Slideshow - currently only fade in fade out |
118 * @param aScreenSize screensize |
|
119 * @param aEffectsOn to On the Effects of Slideshow - currently only fade in fade out |
103 */ |
120 */ |
104 void ConstructL(bool aEfectsOn); |
121 void ConstructL(QSize aScreenSize,bool aEfectsOn); |
105 |
122 |
106 /* |
123 /** |
107 * SetNewImage |
124 * SetNewImage |
108 * Get the uri and bmp from the media model |
125 * Get the uri and bmp from the media model |
109 * and pass it to HDMI controller |
126 * and pass it to HDMI controller |
110 */ |
127 */ |
111 void SetNewImage(); |
128 void SetNewImage(); |
112 |
129 |
113 /* |
130 /** |
114 * getsubstate |
131 * getsubstate |
115 */ |
132 */ |
116 int getSubState(); |
133 int getSubState(); |
117 private: |
134 private: |
118 GlxTvOutWrapper* iTvOutWrapper; // Instance of the Tv Wrapper |
135 GlxTvOutWrapper* iTvOutWrapper; // Instance of the Tv Wrapper |