screensaver/screensaverplugins/snsrbigclockscreensaverplugin/snsrclockwidgets/inc/snsranalogclockwidget.h
changeset 97 66b5fe3c07fd
parent 95 32e56106abf2
child 98 e6f74eb7f69f
equal deleted inserted replaced
95:32e56106abf2 97:66b5fe3c07fd
     1 /*
       
     2 * Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Analog Clock Widget.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef SNSRANALOGCLOCKWIDGET_H
       
    19 #define SNSRANALOGCLOCKWIDGET_H
       
    20 
       
    21 #include <hbwidget.h>
       
    22 #include "snsrtest_global.h"
       
    23 
       
    24 SCREENSAVER_TEST_CLASS(T_SnsrClockWidgets)
       
    25 
       
    26 class HbIconItem;
       
    27 
       
    28 class SnsrAnalogClockWidget: public HbWidget
       
    29 {
       
    30     Q_OBJECT
       
    31 
       
    32 public:
       
    33 
       
    34     explicit SnsrAnalogClockWidget(QGraphicsItem *parent = 0);
       
    35     virtual ~SnsrAnalogClockWidget();
       
    36 
       
    37 public slots:
       
    38 
       
    39     void tick();
       
    40 
       
    41 private:
       
    42 
       
    43     void resizeEvent (QGraphicsSceneResizeEvent *event);
       
    44     void createPrimitives();
       
    45     void updatePrimitives();
       
    46     void polish( HbStyleParameters& params );
       
    47 
       
    48 private:
       
    49 
       
    50     HbIconItem *mClockBackground;
       
    51     HbIconItem *mClockHourHand;
       
    52     HbIconItem *mClockMinuteHand;
       
    53     HbIconItem *mClockSecondHand;
       
    54 
       
    55     Q_DISABLE_COPY(SnsrAnalogClockWidget)
       
    56     SCREENSAVER_TEST_FRIEND_CLASS(T_SnsrClockWidgets)
       
    57 
       
    58 };
       
    59 
       
    60 #endif // SNSRANALOGCLOCKWIDGET_H