equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2009 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 HSPROPERTYANIMATIONWRAPPER_H |
|
19 #define HSPROPERTYANIMATIONWRAPPER_H |
|
20 |
|
21 #include <QScopedPointer> |
|
22 #include "hsutils_global.h" |
|
23 |
|
24 #include "hstest_global.h" |
|
25 HOMESCREEN_TEST_CLASS(t_hsUtils) |
|
26 |
|
27 struct HsPropertyAnimationWrapperImpl; |
|
28 class HSUTILS_EXPORT HsPropertyAnimationWrapper : public QObject |
|
29 { |
|
30 Q_OBJECT |
|
31 |
|
32 public: |
|
33 HsPropertyAnimationWrapper(QObject *parent=0); |
|
34 ~HsPropertyAnimationWrapper(); |
|
35 |
|
36 void setTargetObject(QObject *target); |
|
37 void setPropertyName(const QByteArray &propertyName); |
|
38 bool isRunning(); |
|
39 void setEndValue(const QVariant &value); |
|
40 void setDuration(int msecs); |
|
41 signals: |
|
42 void finished(); |
|
43 |
|
44 public slots: |
|
45 void start(); |
|
46 void stop(); |
|
47 |
|
48 private: |
|
49 Q_DISABLE_COPY(HsPropertyAnimationWrapper) |
|
50 |
|
51 |
|
52 private: |
|
53 QScopedPointer<HsPropertyAnimationWrapperImpl> mImpl; |
|
54 HOMESCREEN_TEST_FRIEND_CLASS(t_hsUtils) |
|
55 }; |
|
56 |
|
57 #endif // HSPAGEINDICATOR_H |