|
1 /* |
|
2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Header of private wrapper class which speaks to HDMI and |
|
15 * also observes TVout connections |
|
16 * |
|
17 */ |
|
18 #ifndef GLXTVOUTWRAPPERPRIVATE_P_H |
|
19 #define GLXTVOUTWRAPPERPRIVATE_P_H |
|
20 |
|
21 #include <QAbstractItemModel> |
|
22 #include <fbs.h> |
|
23 #include <QMetaType> |
|
24 |
|
25 class GlxTvOutWrapper; |
|
26 class CGlxConnectionObserver; |
|
27 class CGlxHdmiController; |
|
28 |
|
29 // Converting the QVariant to CFbsBitmap* |
|
30 Q_DECLARE_METATYPE(CFbsBitmap*); |
|
31 |
|
32 class GlxTvOutWrapperPrivate |
|
33 { |
|
34 public: |
|
35 /* |
|
36 * Static method to create an instance |
|
37 */ |
|
38 static GlxTvOutWrapperPrivate* Instance(GlxTvOutWrapper* aTvOutWrapper, |
|
39 QAbstractItemModel* aModel); |
|
40 |
|
41 /* |
|
42 * destructor |
|
43 */ |
|
44 ~GlxTvOutWrapperPrivate(); |
|
45 |
|
46 /* |
|
47 * HandleConnectionChange |
|
48 * @param1 true if connected, false if disconnected |
|
49 * Note this is only being done for HDMI as there is no |
|
50 * implementation for Analog TV. |
|
51 */ |
|
52 void HandleConnectionChange(bool aConnected); |
|
53 |
|
54 /* |
|
55 * SetImagetoHDMI() |
|
56 */ |
|
57 void SetImagetoHDMI(); |
|
58 |
|
59 /* |
|
60 * Sets HDMI to cloning mode |
|
61 */ |
|
62 void SetToCloningMode(); |
|
63 |
|
64 /* |
|
65 * Sets HDMI to Native posting mode |
|
66 */ |
|
67 void SetToNativeMode(); |
|
68 |
|
69 /* |
|
70 * views should call this if for any item it doesnt want to move to |
|
71 * HDMI posting mode |
|
72 */ |
|
73 void ItemNotSupported(); |
|
74 |
|
75 /* |
|
76 * Activate zoom in posting mode |
|
77 */ |
|
78 void ActivateZoom(bool autoZoomOut); |
|
79 |
|
80 /* |
|
81 * Deactivate zoom in posting mode. |
|
82 */ |
|
83 void DeactivateZoom(); |
|
84 private: |
|
85 /* |
|
86 * constructor |
|
87 */ |
|
88 GlxTvOutWrapperPrivate(GlxTvOutWrapper* aTvOutWrapper, |
|
89 QAbstractItemModel* aModel); |
|
90 |
|
91 /* |
|
92 * constructL() |
|
93 */ |
|
94 void ConstructL(); |
|
95 |
|
96 /* |
|
97 * SetNewImage |
|
98 * Get the uri and bmp from the media model |
|
99 * and pass it to HDMI controller |
|
100 */ |
|
101 void SetNewImage(); |
|
102 private: |
|
103 GlxTvOutWrapper* iTvOutWrapper; // Instance of the Tv Wrapper |
|
104 QAbstractItemModel* iModel; // Instance of the model |
|
105 CGlxConnectionObserver* iConnectionObserver; // Symbian connection observer |
|
106 CGlxHdmiController* iHdmiController; // Symbian Hdmi Controller |
|
107 |
|
108 bool iHdmiConnected; // To check if the HDMI is connected |
|
109 bool isImageSetToHdmi; // to check if the image is set to HDMI |
|
110 }; |
|
111 |
|
112 #endif //GLXTVOUTWRAPPERPRIVATE_P_H |
|
113 |
|
114 // End of file |