ganeswidgets/inc/hglongpressvisualizer.h
changeset 0 89c329efa980
child 6 1cdcc61142d2
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ganeswidgets/inc/hglongpressvisualizer.h	Mon Apr 19 14:40:06 2010 +0300
@@ -0,0 +1,47 @@
+/*
+* 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 HGLONGPRESSVISUALIZER_H
+#define HGLONGPRESSVISUALIZER_H
+
+#include <QTime>
+#include <hbwidget.h>
+#include <hgwidgets/hgwidgets.h>
+
+#include "hgmediawalldataprovider.h"
+#include "hgdrag.h"
+#include "hgspring.h"
+
+class HgLongPressVisualizer : public HbWidget
+{
+public:
+    HgLongPressVisualizer(QGraphicsItem* parent=0);
+    virtual ~HgLongPressVisualizer();
+
+    void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget=0);
+    QRectF boundingRect() const;
+    
+    void start(const QPointF& pos);
+    void stop();
+    void setFrame(int frame);
+private:
+    QRectF rect;    
+    bool active;
+    qreal spanAngle;
+};
+
+#endif