13 * |
13 * |
14 * Description: Stub-implementation of HbInstance |
14 * Description: Stub-implementation of HbInstance |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 // Version : %version: % |
18 // Version : %version: da1mmcf#7 % |
19 |
19 |
20 #include <hbmainwindow.h> |
20 #include <hbmainwindow.h> |
21 |
21 |
22 #include "stub/inc/hbinstance.h" |
22 #include "stub/inc/hbinstance.h" |
23 #include "mpxvideo_debug.h" |
23 #include "mpxvideo_debug.h" |
24 |
24 |
25 bool initialised = false; |
25 bool initialised = false; |
26 HbInstance* mInstance = 0; |
26 HbInstance* mInstance = 0; |
27 QList<HbInstance *> mInstances; |
27 QList<HbInstance *> mInstances; |
28 |
28 |
|
29 // ------------------------------------------------------------------------------------------------- |
|
30 // HbInstance::HbInstance() |
|
31 // ------------------------------------------------------------------------------------------------- |
|
32 // |
29 HbInstance::HbInstance() |
33 HbInstance::HbInstance() |
30 { |
34 { |
31 MPX_DEBUG(_L("HbInstance::HbInstance()")); |
35 MPX_DEBUG(_L("HbInstance::HbInstance()")); |
32 } |
36 } |
33 |
37 |
|
38 // ------------------------------------------------------------------------------------------------- |
|
39 // HbInstance::~HbInstance() |
|
40 // ------------------------------------------------------------------------------------------------- |
|
41 // |
34 HbInstance::~HbInstance() |
42 HbInstance::~HbInstance() |
35 { |
43 { |
36 MPX_DEBUG(_L("HbInstance::~HbInstance()")); |
44 MPX_DEBUG(_L("HbInstance::~HbInstance()")); |
37 } |
45 } |
38 |
46 |
|
47 // ------------------------------------------------------------------------------------------------- |
|
48 // HbInstance::instance() |
|
49 // ------------------------------------------------------------------------------------------------- |
|
50 // |
39 HbInstance* HbInstance::instance() |
51 HbInstance* HbInstance::instance() |
40 { |
52 { |
41 MPX_ENTER_EXIT(_L("TestVideoServices::instance()")); |
53 MPX_ENTER_EXIT(_L("TestVideoServices::instance()")); |
42 |
54 |
43 if (!initialised) |
55 if ( ! initialised ) |
44 { |
56 { |
45 mInstance = new HbInstance(); |
57 mInstance = new HbInstance(); |
46 initialised = true; |
58 initialised = true; |
47 mInstances.append(mInstance); |
59 mInstances.append(mInstance); |
48 } |
60 } |
|
61 |
49 return mInstance; |
62 return mInstance; |
50 } |
63 } |
51 |
64 |
|
65 // ------------------------------------------------------------------------------------------------- |
|
66 // HbInstance::primaryWindow() |
|
67 // ------------------------------------------------------------------------------------------------- |
|
68 // |
52 HbInstance* HbInstance::primaryWindow() const |
69 HbInstance* HbInstance::primaryWindow() const |
53 { |
70 { |
54 MPX_DEBUG(_L("HbInstance::primaryWindow()")); |
71 MPX_DEBUG(_L("HbInstance::primaryWindow()")); |
55 return mInstance; |
72 return mInstance; |
56 } |
73 } |
57 |
74 |
|
75 // ------------------------------------------------------------------------------------------------- |
|
76 // HbInstance::allMainWindows() |
|
77 // ------------------------------------------------------------------------------------------------- |
|
78 // |
58 QList<HbInstance *> HbInstance::allMainWindows() const |
79 QList<HbInstance *> HbInstance::allMainWindows() const |
59 { |
80 { |
60 MPX_DEBUG(_L("HbInstance::allMainWindows()")); |
81 MPX_DEBUG(_L("HbInstance::allMainWindows()")); |
61 return mInstances; |
82 return mInstances; |
62 } |
83 } |
63 |
84 |
|
85 // ------------------------------------------------------------------------------------------------- |
|
86 // HbInstance::removeView() |
|
87 // ------------------------------------------------------------------------------------------------- |
|
88 // |
64 void HbInstance::removeView( QGraphicsWidget* ) |
89 void HbInstance::removeView( QGraphicsWidget* ) |
65 { |
90 { |
66 MPX_DEBUG(_L("HbInstance::removeView()")); |
91 MPX_DEBUG(_L("HbInstance::removeView()")); |
67 } |
92 } |
68 |
93 |
|
94 // ------------------------------------------------------------------------------------------------- |
|
95 // HbInstance::addView() |
|
96 // ------------------------------------------------------------------------------------------------- |
|
97 // |
69 void HbInstance::addView( QGraphicsWidget* ) |
98 void HbInstance::addView( QGraphicsWidget* ) |
70 { |
99 { |
71 MPX_DEBUG(_L("HbInstance::addView()")); |
100 MPX_DEBUG(_L("HbInstance::addView()")); |
72 } |
101 } |
73 |
102 |
|
103 // ------------------------------------------------------------------------------------------------- |
|
104 // HbInstance::setCurrentView() |
|
105 // ------------------------------------------------------------------------------------------------- |
|
106 // |
74 void HbInstance::setCurrentView( HbView*, bool animation ) |
107 void HbInstance::setCurrentView( HbView*, bool animation ) |
75 { |
108 { |
76 MPX_DEBUG(_L("HbInstance::setCurrentView()")); |
109 MPX_DEBUG(_L("HbInstance::setCurrentView()")); |
|
110 Q_UNUSED( animation ); |
77 } |
111 } |
78 |
112 |