diff -r 03646e8da489 -r 30f14686fb04 homescreenapp/hsdomainmodel/inc/hswallpaperloaderthread.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/homescreenapp/hsdomainmodel/inc/hswallpaperloaderthread.h Wed Jun 23 18:03:36 2010 +0300 @@ -0,0 +1,62 @@ +/* +* Copyright (c) 2010 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 HSWALLPAPERLOADERTHREAD_H +#define HSWALLPAPERLOADERTHREAD_H + +#include +#include +#include +#include "hsdomainmodel_global.h" +#include "hstest_global.h" + +HOMESCREEN_TEST_CLASS(TestHsDomainModel) + +class HSDOMAINMODEL_EXPORT HsWallpaperLoaderThread : public QThread +{ + Q_OBJECT + +public: + HsWallpaperLoaderThread(QObject *parent = 0); + ~HsWallpaperLoaderThread(); + + void setSourcePath(const QString &path) { mSourcePath = path; } + QString sourcePath() const { return mSourcePath; } + + void setTargetPath(const QString &path) { mTargetPath = path; } + QString targetPath() const { return mTargetPath; } + + void setTargetSize(const QSize &size) { mTargetSize = size; } + QSize targetSize() const { return mTargetSize; } + + bool result() const { return mResult; } + +protected: + void run(); + +private: + Q_DISABLE_COPY(HsWallpaperLoaderThread) + +private: + QString mSourcePath; + QString mTargetPath; + QSize mTargetSize; + bool mResult; + HOMESCREEN_TEST_FRIEND_CLASS(TestHsDomainModel) +}; + +#endif // HSWALLPAPERLOADERTHREAD_H