diff -r e6f74eb7f69f -r ba1b7e218624 homescreenapp/hsdomainmodel/tsrc/t_hsdomainmodel/src/t_hsdomainmodel.cpp --- a/homescreenapp/hsdomainmodel/tsrc/t_hsdomainmodel/src/t_hsdomainmodel.cpp Mon Oct 18 10:20:15 2010 +0300 +++ b/homescreenapp/hsdomainmodel/tsrc/t_hsdomainmodel/src/t_hsdomainmodel.cpp Wed Oct 20 15:25:39 2010 +0300 @@ -29,7 +29,7 @@ #include "caservice.h" #include "hsconfiguration.h" #include "hswallpaper.h" - +#include "hsdbupdatethread.h" QTM_USE_NAMESPACE #ifdef Q_OS_SYMBIAN @@ -77,6 +77,7 @@ HsWidgetPositioningOnWidgetAdd::setInstance( new HsAnchorPointInBottomRight); + } // --------------------------------------------------------------------------- @@ -96,6 +97,7 @@ delete HsShortcutService::mInstance; HsShortcutService::mInstance = 0; + } void TestHsDomainModel::init() @@ -112,13 +114,18 @@ db->setConnectionName("homescreen.dbc"); db->setDatabaseName(dbFile); db->open(); - + + HsDbUpdateThread *dbUpdateThread = new HsDbUpdateThread("homescreen.dbc",dbFile); + HsDbUpdateThread::setInstance(dbUpdateThread); + //dbUpdateThread->start(); mWallpaperTypeScene = true; } void TestHsDomainModel::cleanup() { // cleanup all the pages and widgets + // HsDbUpdateThread::instance()->quit(); + HsDbUpdateThread::setInstance(0); HsDatabase::setInstance(0); QString path = QDir(WIDGET_PLUGIN_PATH).absolutePath(); QApplication::addLibraryPath( path );