|
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 Wrapper class exposed to Views for HDMI |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef GLXTVOUTWRAPPER_H |
|
19 #define GLXTVOUTWRAPPER_H |
|
20 |
|
21 #include <QAbstractItemModel> |
|
22 |
|
23 // forward decleration |
|
24 class GlxTvOutWrapperPrivate; |
|
25 |
|
26 #ifdef BUILD_TVOUTWRAPPER |
|
27 #define GLX_TVOUTWRAPPER_EXPORT Q_DECL_EXPORT |
|
28 #else |
|
29 #define GLX_TVOUTWRAPPER_EXPORT Q_DECL_IMPORT |
|
30 #endif |
|
31 |
|
32 class GLX_TVOUTWRAPPER_EXPORT GlxTvOutWrapper |
|
33 { |
|
34 public: |
|
35 /* |
|
36 * Constructor |
|
37 */ |
|
38 GlxTvOutWrapper(); |
|
39 |
|
40 /* |
|
41 * Destructor |
|
42 */ |
|
43 ~GlxTvOutWrapper(); |
|
44 |
|
45 /* |
|
46 * Setting the model |
|
47 * This also creates the private instance of the wrapper |
|
48 * to pass the model |
|
49 */ |
|
50 void setModel(QAbstractItemModel* aModel); |
|
51 |
|
52 /* |
|
53 * Set the image on to HDMI |
|
54 */ |
|
55 void setImagetoHDMI(); |
|
56 |
|
57 /* |
|
58 * Sets HDMI to cloning mode |
|
59 */ |
|
60 void setToCloningMode(); |
|
61 |
|
62 /* |
|
63 * Sets HDMI to Native posting mode |
|
64 */ |
|
65 void setToNativeMode(); |
|
66 |
|
67 /* |
|
68 * views should call this if for any item it doesnt want to move to |
|
69 * HDMI posting mode |
|
70 */ |
|
71 void itemNotSupported(); |
|
72 |
|
73 /* |
|
74 * Activate zoom in posting mode |
|
75 * This can be called if the zoom animation in HDMI(bounce back effect) |
|
76 * needs to be shown |
|
77 * @param1 - send true if want to auto zoom out on animation effect |
|
78 */ |
|
79 void activateZoom(bool autoZoomOut); |
|
80 |
|
81 /* |
|
82 * Deactivate zoom in posting mode. |
|
83 * This can be called when zoom animation needs to bounce back. |
|
84 * Note : This function is not required if bounce back effect finishes automatically |
|
85 */ |
|
86 void deactivateZoom(); |
|
87 private: |
|
88 GlxTvOutWrapperPrivate* mTvOutWrapperPrivate; |
|
89 }; |
|
90 |
|
91 #endif //GLXTVOUTWRAPPER_H |
|
92 // End of file |