diff -r fd30d51f876b -r a949c2543c15 clock/clockui/clockwidget/inc/analogclock.h --- a/clock/clockui/clockwidget/inc/analogclock.h Mon May 03 12:30:32 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,77 +0,0 @@ -/* -* 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: -* -*/ - -// analogclock.h - -#ifndef ANALOGCLOCK_H -#define ANALOGCLOCK_H - -#include - -#include -#include - -class QGraphicsWidget; -class QStyleOptionGraphicsItem; -class QPainter; -class HbIconItem; -class HbStackedLayout; - -class AnalogClock : public HbWidget -{ - Q_OBJECT - -public: - AnalogClock(QGraphicsWidget *parent = 0); - ~AnalogClock(); - -public: - void showNext(); - void showPrev(); - -public slots: - void updateDisplay(); - -protected: - void paint(QPainter *painter, - const QStyleOptionGraphicsItem *option, - QWidget *widget = 0); - -private: - void constructImages(); - -private slots: - void widget_hidden(const HbEffect::EffectStatus &status); - -private: - QString mFaceName; - QString mHourName; - QString mMinuteName; - - HbIconItem *mClockFace; - HbIconItem *mHourHand; - HbIconItem *mMinuteHand; - HbStackedLayout* mParentLayout; - - bool mIsDay; - bool mFirstDraw; - int mCurrentClock; -}; - -#endif // ANALOGCLOCK_P_H - -// End of file