videoplayerapp/videoplayerengine/tsrc/testvideoplayerengine/stub/src/hbinstance.cpp
equal
deleted
inserted
replaced
13 * |
13 * |
14 * Description: Stub-implementation of HbInstance |
14 * Description: Stub-implementation of HbInstance |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
|
18 // Version : %version: % |
|
19 |
|
20 #include <hbmainwindow.h> |
|
21 |
18 #include "stub/inc/hbinstance.h" |
22 #include "stub/inc/hbinstance.h" |
19 #include <hbmainwindow.h> |
23 #include "mpxvideo_debug.h" |
20 |
24 |
21 bool initialised = false; |
25 bool initialised = false; |
22 HbInstance* mInstance = 0; |
26 HbInstance* mInstance = 0; |
23 QList<HbInstance *> mInstances; |
27 QList<HbInstance *> mInstances; |
24 |
28 |
25 HbInstance::HbInstance() |
29 HbInstance::HbInstance() |
26 { |
30 { |
|
31 MPX_DEBUG(_L("HbInstance::HbInstance()")); |
27 } |
32 } |
28 |
33 |
29 HbInstance::~HbInstance() |
34 HbInstance::~HbInstance() |
30 { |
35 { |
|
36 MPX_DEBUG(_L("HbInstance::~HbInstance()")); |
31 } |
37 } |
32 |
38 |
33 HbInstance* HbInstance::instance() |
39 HbInstance* HbInstance::instance() |
34 { |
40 { |
|
41 MPX_ENTER_EXIT(_L("TestVideoServices::instance()")); |
|
42 |
35 if (!initialised) |
43 if (!initialised) |
36 { |
44 { |
37 mInstance = new HbInstance(); |
45 mInstance = new HbInstance(); |
38 initialised = true; |
46 initialised = true; |
39 mInstances.append(mInstance); |
47 mInstances.append(mInstance); |
41 return mInstance; |
49 return mInstance; |
42 } |
50 } |
43 |
51 |
44 HbInstance* HbInstance::primaryWindow() const |
52 HbInstance* HbInstance::primaryWindow() const |
45 { |
53 { |
|
54 MPX_DEBUG(_L("HbInstance::primaryWindow()")); |
46 return mInstance; |
55 return mInstance; |
47 } |
56 } |
48 |
57 |
49 QList<HbInstance *> HbInstance::allMainWindows() const |
58 QList<HbInstance *> HbInstance::allMainWindows() const |
50 { |
59 { |
|
60 MPX_DEBUG(_L("HbInstance::allMainWindows()")); |
51 return mInstances; |
61 return mInstances; |
52 } |
62 } |
53 |
63 |
54 void HbInstance::removeView( QGraphicsWidget* ) |
64 void HbInstance::removeView( QGraphicsWidget* ) |
55 { |
65 { |
|
66 MPX_DEBUG(_L("HbInstance::removeView()")); |
56 } |
67 } |
57 |
68 |
58 void HbInstance::addView( QGraphicsWidget* ) |
69 void HbInstance::addView( QGraphicsWidget* ) |
59 { |
70 { |
|
71 MPX_DEBUG(_L("HbInstance::addView()")); |
60 } |
72 } |
61 |
73 |
62 void HbInstance::setCurrentView( HbView*, bool animation ) |
74 void HbInstance::setCurrentView( HbView*, bool animation ) |
63 { |
75 { |
|
76 MPX_DEBUG(_L("HbInstance::setCurrentView()")); |
64 } |
77 } |
65 |
78 |