equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef HSWALLPAPERLOADERTHREAD_H |
|
19 #define HSWALLPAPERLOADERTHREAD_H |
|
20 |
|
21 #include <QThread> |
|
22 #include <QString> |
|
23 #include <QRect> |
|
24 #include "hsdomainmodel_global.h" |
|
25 #include "hstest_global.h" |
|
26 |
|
27 HOMESCREEN_TEST_CLASS(TestHsDomainModel) |
|
28 |
|
29 class HSDOMAINMODEL_EXPORT HsWallpaperLoaderThread : public QThread |
|
30 { |
|
31 Q_OBJECT |
|
32 |
|
33 public: |
|
34 HsWallpaperLoaderThread(QObject *parent = 0); |
|
35 ~HsWallpaperLoaderThread(); |
|
36 |
|
37 void setSourcePath(const QString &path) { mSourcePath = path; } |
|
38 QString sourcePath() const { return mSourcePath; } |
|
39 |
|
40 void setTargetPath(const QString &path) { mTargetPath = path; } |
|
41 QString targetPath() const { return mTargetPath; } |
|
42 |
|
43 void setTargetSize(const QSize &size) { mTargetSize = size; } |
|
44 QSize targetSize() const { return mTargetSize; } |
|
45 |
|
46 bool result() const { return mResult; } |
|
47 |
|
48 protected: |
|
49 void run(); |
|
50 |
|
51 private: |
|
52 Q_DISABLE_COPY(HsWallpaperLoaderThread) |
|
53 |
|
54 private: |
|
55 QString mSourcePath; |
|
56 QString mTargetPath; |
|
57 QSize mTargetSize; |
|
58 bool mResult; |
|
59 HOMESCREEN_TEST_FRIEND_CLASS(TestHsDomainModel) |
|
60 }; |
|
61 |
|
62 #endif // HSWALLPAPERLOADERTHREAD_H |