homescreenapp/stateplugins/hshomescreenstateplugin/tsrc/t_hshomescreenstateplugin/src/t_hshomescreenmain.cpp
equal
deleted
inserted
replaced
34 #include "hsconfiguration.h" |
34 #include "hsconfiguration.h" |
35 |
35 |
36 #include "hswidgetpositioningonorientationchange.h" |
36 #include "hswidgetpositioningonorientationchange.h" |
37 #include "hswidgetpositioningonwidgetadd.h" |
37 #include "hswidgetpositioningonwidgetadd.h" |
38 #include "hswidgetpositioningonwidgetmove.h" |
38 #include "hswidgetpositioningonwidgetmove.h" |
|
39 #include "hsdbupdatethread.h" |
39 |
40 |
40 #ifdef Q_OS_SYMBIAN |
41 #ifdef Q_OS_SYMBIAN |
41 #include <e32base.h> |
42 #include <e32base.h> |
42 #endif |
43 #endif |
43 |
44 |
65 |
66 |
66 HsDatabase::setInstance(new HsDatabase); |
67 HsDatabase::setInstance(new HsDatabase); |
67 |
68 |
68 HsConfiguration::setInstance(new HsConfiguration); |
69 HsConfiguration::setInstance(new HsConfiguration); |
69 |
70 |
|
71 // HsDbUpdateThread *updateThread = new HsDbUpdateThread("mockme","mockme"); |
|
72 // HsDbUpdateThread::setInstance(updateThread); |
|
73 // updateThread->start(); |
70 } |
74 } |
71 |
75 |
72 void HomeScreenStatePluginTest::cleanupTestCase() |
76 void HomeScreenStatePluginTest::cleanupTestCase() |
73 { |
77 { |
74 |
78 // HsDbUpdateThread::instance()->quit(); |
|
79 // HsDbUpdateThread::setInstance(0); |
75 } |
80 } |
76 |
81 |
77 void HomeScreenStatePluginTest::cleanup() |
82 void HomeScreenStatePluginTest::cleanup() |
78 { |
83 { |
79 //Scene already deleted as child of mainwindow |
84 //Scene already deleted as child of mainwindow |
81 delete scene; |
86 delete scene; |
82 } |
87 } |
83 |
88 |
84 void HomeScreenStatePluginTest::init() |
89 void HomeScreenStatePluginTest::init() |
85 { |
90 { |
86 |
91 |
87 } |
92 } |
88 |
93 |
89 void HomeScreenStatePluginTest::createSceneAndWindow(int pageCount, int defaultPageIndex, int maximumPageCount) |
94 void HomeScreenStatePluginTest::createSceneAndWindow(int pageCount, int defaultPageIndex, int maximumPageCount) |
90 { |
95 { |
91 HSCONFIGURATION_SET(setMaximumPageCount, maximumPageCount); |
96 HSCONFIGURATION_SET(setMaximumPageCount, maximumPageCount); |