--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/homescreenapp/hsutils/src/hspropertyanimationwrapper.cpp Fri Jul 09 14:36:01 2010 +0300
@@ -0,0 +1,91 @@
+/*
+* 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:
+*
+*/
+
+#include <QPropertyAnimation>
+#include "hspropertyanimationwrapper.h"
+
+/*!
+ \class HsMessageBoxWrapper
+ \ingroup group_hsutils
+ \brief
+*/
+
+struct HsPropertyAnimationWrapperImpl
+{
+public:
+ QPropertyAnimation *mPropertyAnimation;
+};
+
+/*!
+
+*/
+HsPropertyAnimationWrapper::HsPropertyAnimationWrapper(QObject *parent)
+ : QObject(parent),mImpl(new HsPropertyAnimationWrapperImpl)
+{
+ mImpl->mPropertyAnimation = new QPropertyAnimation(parent);
+ connect(mImpl->mPropertyAnimation,SIGNAL(finished()),SIGNAL(finished()));
+}
+
+/*!
+
+*/
+HsPropertyAnimationWrapper::~HsPropertyAnimationWrapper()
+{
+
+}
+
+/*!
+
+*/
+void HsPropertyAnimationWrapper::setTargetObject(QObject *target)
+{
+ mImpl->mPropertyAnimation->setTargetObject(target);
+}
+/*!
+
+*/
+void HsPropertyAnimationWrapper::setPropertyName(const QByteArray &propertyName)
+{
+ mImpl->mPropertyAnimation->setPropertyName(propertyName);
+}
+
+bool HsPropertyAnimationWrapper::isRunning()
+{
+ return (mImpl->mPropertyAnimation->state() == QAbstractAnimation::Running);
+}
+void HsPropertyAnimationWrapper::setEndValue(const QVariant &value)
+{
+ mImpl->mPropertyAnimation->setEndValue(value);
+}
+void HsPropertyAnimationWrapper::setDuration(int msecs)
+{
+ mImpl->mPropertyAnimation->setDuration(msecs);
+}
+/*!
+
+*/
+void HsPropertyAnimationWrapper::start()
+{
+ mImpl->mPropertyAnimation->start();
+}
+/*!
+
+*/
+void HsPropertyAnimationWrapper::stop()
+{
+ mImpl->mPropertyAnimation->stop();
+}