diff -r fd30d51f876b -r b6db4fd4947b clock/clockui/clockwidget/clockwidgetimpl/inc/analogclockwidget.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/clock/clockui/clockwidget/clockwidgetimpl/inc/analogclockwidget.h Mon Jun 28 15:22:02 2010 +0530 @@ -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 +#include + +// 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 mTimer; + QPointer mClockBackground; + QPointer mClockHourHand; + QPointer mClockMinuteHand; + QPointer mClockSecondHand; +}; + +#endif + +// End of file --Don't remove this.