homescreenapp/hsutils/inc/hspropertyanimationwrapper.h
changeset 69 87476091b3f5
parent 63 52b0f64eeb51
child 71 1db7cc813a4e
equal deleted inserted replaced
67:474929a40a0f 69:87476091b3f5
    17 
    17 
    18 #ifndef HSPROPERTYANIMATIONWRAPPER_H
    18 #ifndef HSPROPERTYANIMATIONWRAPPER_H
    19 #define HSPROPERTYANIMATIONWRAPPER_H
    19 #define HSPROPERTYANIMATIONWRAPPER_H
    20 
    20 
    21 #include <QScopedPointer>
    21 #include <QScopedPointer>
       
    22 
    22 #include "hsutils_global.h"
    23 #include "hsutils_global.h"
       
    24 #include "hstest_global.h"
    23 
    25 
    24 #include "hstest_global.h"
       
    25 HOMESCREEN_TEST_CLASS(t_hsUtils)
    26 HOMESCREEN_TEST_CLASS(t_hsUtils)
    26 
    27 
    27 struct HsPropertyAnimationWrapperImpl;
    28 struct HsPropertyAnimationWrapperImpl;
    28 class HSUTILS_EXPORT HsPropertyAnimationWrapper : public QObject
    29 class HSUTILS_EXPORT HsPropertyAnimationWrapper : public QObject
    29 {
    30 {
    36     void setTargetObject(QObject *target);
    37     void setTargetObject(QObject *target);
    37     void setPropertyName(const QByteArray &propertyName);
    38     void setPropertyName(const QByteArray &propertyName);
    38     bool isRunning();
    39     bool isRunning();
    39     void setEndValue(const QVariant &value);
    40     void setEndValue(const QVariant &value);
    40     void setDuration(int msecs);
    41     void setDuration(int msecs);
       
    42     void setForward();
       
    43     void setBackward();
       
    44     bool isForward() const;
       
    45 
    41 signals:
    46 signals:
    42     void finished();
    47     void finished();
    43 
    48 
    44 public slots:
    49 public slots:
    45     void start();
    50     void start();