|
1 /* |
|
2 * Copyright (c) 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: Stub test class |
|
15 * |
|
16 */ |
|
17 |
|
18 // Version : %version: % |
|
19 |
|
20 // INCLUDE FILES |
|
21 #include "testviewplugin.h" |
|
22 #include "mpxvideo_debug.h" |
|
23 |
|
24 // --------------------------------------------------------------------------- |
|
25 // Constructor |
|
26 // --------------------------------------------------------------------------- |
|
27 // |
|
28 TestViewPlugin::TestViewPlugin() |
|
29 : mActive(false) |
|
30 { |
|
31 MPX_DEBUG(_L("TestViewPlugin::TestViewPlugin()")); |
|
32 } |
|
33 |
|
34 // --------------------------------------------------------------------------- |
|
35 // Destructor |
|
36 // --------------------------------------------------------------------------- |
|
37 // |
|
38 TestViewPlugin::~TestViewPlugin() |
|
39 { |
|
40 MPX_DEBUG(_L("TestViewPlugin::~TestViewPlugin()")); |
|
41 } |
|
42 |
|
43 // --------------------------------------------------------------------------- |
|
44 // Create view |
|
45 // --------------------------------------------------------------------------- |
|
46 // |
|
47 void TestViewPlugin::createView() |
|
48 { |
|
49 MPX_DEBUG(_L("TestViewPlugin::createView()")); |
|
50 } |
|
51 |
|
52 // --------------------------------------------------------------------------- |
|
53 // Destroy view |
|
54 // --------------------------------------------------------------------------- |
|
55 // |
|
56 void TestViewPlugin::destroyView() |
|
57 { |
|
58 MPX_DEBUG(_L("TestViewPlugin::destroyView()")); |
|
59 } |
|
60 |
|
61 // --------------------------------------------------------------------------- |
|
62 // Activate view |
|
63 // --------------------------------------------------------------------------- |
|
64 // |
|
65 void TestViewPlugin::activateView() |
|
66 { |
|
67 MPX_DEBUG(_L("TestViewPlugin::activateView()")); |
|
68 mActive = true; |
|
69 } |
|
70 |
|
71 // --------------------------------------------------------------------------- |
|
72 // Activate view |
|
73 // --------------------------------------------------------------------------- |
|
74 // |
|
75 bool TestViewPlugin::activated() |
|
76 { |
|
77 MPX_DEBUG(_L("TestViewPlugin::activateView() ret %d"), mActive); |
|
78 return mActive; |
|
79 } |
|
80 |
|
81 // --------------------------------------------------------------------------- |
|
82 // Deactivate view |
|
83 // --------------------------------------------------------------------------- |
|
84 // |
|
85 void TestViewPlugin::deactivateView() |
|
86 { |
|
87 MPX_DEBUG(_L("TestViewPlugin::deactivateView()")); |
|
88 mActive = false; |
|
89 } |
|
90 |
|
91 // --------------------------------------------------------------------------- |
|
92 // Get view |
|
93 // --------------------------------------------------------------------------- |
|
94 // |
|
95 QGraphicsWidget* TestViewPlugin::getView() |
|
96 { |
|
97 MPX_DEBUG(_L("TestViewPlugin::getView()")); |
|
98 return 0; |
|
99 } |
|
100 |
|
101 // --------------------------------------------------------------------------- |
|
102 // Get view |
|
103 // --------------------------------------------------------------------------- |
|
104 // |
|
105 MpxViewPlugin* TestViewPlugin::viewPlugin() |
|
106 { |
|
107 MPX_DEBUG(_L("TestViewPlugin::viewPlugin()")); |
|
108 return this; |
|
109 } |
|
110 |
|
111 // --------------------------------------------------------------------------- |
|
112 // Slot: Orientation change |
|
113 // --------------------------------------------------------------------------- |
|
114 // |
|
115 void TestViewPlugin::orientationChange( Qt::Orientation orientation ) |
|
116 { |
|
117 MPX_DEBUG(_L("TestViewPlugin::orientationChange()")); |
|
118 Q_UNUSED( orientation ); |
|
119 } |
|
120 |
|
121 // --------------------------------------------------------------------------- |
|
122 // Slot: back |
|
123 // --------------------------------------------------------------------------- |
|
124 // |
|
125 void TestViewPlugin::back() |
|
126 { |
|
127 MPX_DEBUG(_L("TestViewPlugin::back()")); |
|
128 } |
|
129 |
|
130 // end of file |