clock/clockui/clockwidget/inc/digitalclock.h
changeset 18 c198609911f9
equal deleted inserted replaced
0:f979ecb2b13e 18:c198609911f9
       
     1 /*
       
     2 * Copyright (c) 2009 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: 
       
    15 *
       
    16 */
       
    17 
       
    18 // digitalclock.h
       
    19 
       
    20 #ifndef DIGITALCLOCK_H
       
    21 #define DIGITALCLOCK_H
       
    22 
       
    23 #include <QObject>
       
    24 
       
    25 #include <hbwidget.h>
       
    26 #include <hbeffect.h>
       
    27 
       
    28 class QGraphicsLinearLayout;
       
    29 class QGraphicsWidget;
       
    30 class HbIconItem;
       
    31 class HbLabel;
       
    32 
       
    33 class DigitalClock : public HbWidget
       
    34 {
       
    35     Q_OBJECT
       
    36 
       
    37 public:
       
    38     DigitalClock(QGraphicsWidget *parent = 0);
       
    39     ~DigitalClock();
       
    40 
       
    41 public:
       
    42     void updateDisplay();
       
    43 
       
    44 public slots:
       
    45 	void fadeBackIn(const HbEffect::EffectStatus &status);
       
    46 
       
    47 private:
       
    48     void constructImages();
       
    49 
       
    50 private:
       
    51     QGraphicsLinearLayout *mDigitalClockLayout;
       
    52     QGraphicsLinearLayout *mWidgetLayout;
       
    53     QGraphicsWidget *mDummyWidget;
       
    54 
       
    55     HbIconItem *mPositionOne;
       
    56     HbIconItem *mPositionTwo;
       
    57     HbIconItem *mPositionThree;
       
    58     HbIconItem *mPositionFour;
       
    59     HbIconItem *mSeperator;
       
    60     HbLabel *mAmPmLabel;
       
    61 
       
    62     bool m24HourFormat;
       
    63 };
       
    64 
       
    65 #endif // DIGITALCLOCK_H
       
    66 
       
    67 // End of file