diff -r e6f74eb7f69f -r ba1b7e218624 homescreenapp/hsdomainmodel/inc/hsdbupdatethread.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/homescreenapp/hsdomainmodel/inc/hsdbupdatethread.h Wed Oct 20 15:25:39 2010 +0300 @@ -0,0 +1,59 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + +#ifndef HSDBUPDATETHREAD_H +#define HSDBUPDATETHREAD_H + +#include +#include + +#include "hsdomainmodel_global.h" +#include "hstest_global.h" + +HOMESCREEN_TEST_CLASS(TestHsDomainModel) + +class HSDOMAINMODEL_EXPORT HsDbUpdateThread : public QThread +{ + Q_OBJECT + +public: + HsDbUpdateThread(const QString &connectionName, const QString &databaseName, QObject *parent = 0); + ~HsDbUpdateThread(); +public: + static HsDbUpdateThread *instance(); + static void setInstance(HsDbUpdateThread *instance); + +signals: + void updateWidgetZValues(const QHash &data, Qt::Orientation orientation); +public slots: + + void slotUpdateWidgetZValues(const QHash &data, Qt::Orientation orientation); + +protected: + void run(); + +private: + Q_DISABLE_COPY(HsDbUpdateThread) + +private: + QString mConnectionName; + QString mDatabaseName; + static HsDbUpdateThread *mInstance; + HOMESCREEN_TEST_FRIEND_CLASS(TestHsDomainModel) +}; + +#endif // HSDBUPDATETHREAD_H