clock/clockui/clockwidget/clockwidgetimpl/inc/analogclockwidget.h
changeset 26 a949c2543c15
child 55 2c54b51f39c4
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/clock/clockui/clockwidget/clockwidgetimpl/inc/analogclockwidget.h	Fri May 14 15:51:09 2010 +0300
@@ -0,0 +1,57 @@
+/*
+* 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:  Clock widget
+*
+*/
+
+#ifndef ANALOGCLOCKWIDGET_H
+#define ANALOGCLOCKWIDGET_H
+
+// User includes 
+#include <hbwidget.h>
+#include <QPointer>
+
+// Forward declarations
+class HbIconItem;
+class QTimer;
+
+class AnalogClockWidget : public HbWidget
+{
+    Q_OBJECT
+
+public:
+    AnalogClockWidget(QGraphicsItem *parent = 0);
+    virtual ~AnalogClockWidget();
+
+public slots:
+    void tick();
+
+protected:
+    void resizeEvent(QGraphicsSceneResizeEvent *event);
+    void polish(HbStyleParameters& params);
+
+private:    
+    void updatePrimitives();
+
+private:
+    QPointer<QTimer>     mTimer;
+    QPointer<HbIconItem> mClockBackground;
+    QPointer<HbIconItem> mClockHourHand;
+    QPointer<HbIconItem> mClockMinuteHand;
+    QPointer<HbIconItem> mClockSecondHand;
+};
+
+#endif
+
+// End of file  --Don't remove this.